4 Commits

Author SHA1 Message Date
Anton Hansson
a3e79fbb8c frameworks/base: Set LOCAL_SDK_VERSION where possible.
This change sets LOCAL_SDK_VERSION for all packages where
this is possible without breaking the build, and
LOCAL_PRIVATE_PLATFORM_APIS := true otherwise.

Setting one of these two will be made required soon, and this
is a change in preparation for that. Not setting LOCAL_SDK_VERSION
makes the app implicitly depend on the bootclasspath, which is
often not required. This change effectively makes depending on
private apis opt-in rather than opt-out.

Test: make relevant packages
Bug: 73535841
Change-Id: Ibcffec873a693d1c792ca210fb597d2bf37e9068
Merged-In: I4233b9091d9066c4fa69f3d24aaf367ea500f760
2018-02-28 17:15:21 +00:00
Peter Qiu
b0bb4949f8 Osu2: add class for managing Wi-Fi network connection
Also setup a test app for unit tests, with few test
cases added for NetworkConnection.

Bug: 62388032
Test: start OSU app with Boigno OSU provider via adb,
      verify the OSU app is started and connected to
      the Boingo OSU AP.
Test: frameworks/base/packages/Osu2/tests/runtests.sh

Change-Id: Id60bc85871f3251d83d779d430e1dd1eff47d86e
2017-06-16 13:10:23 -07:00
Peter Qiu
5c65738e89 Osu2: setup ProvisionService
ProvisionService will be started when the OSU app is
started with "Provision" command.  This service will
run on a separate thread from the Main thread, to avoid
blocking on the Main thread.  This service doesn't
extend IntentService since it requires to perform
async operations.

Bug: 62388032
Test: am start -n com.android.osu/.MainActivity --es
      "com.android.osu.extra.COMMAND" "Provision"

Change-Id: I32c4eb53830a6b0404af085da98f9533346203eb
2017-06-16 12:41:56 -07:00
Peter Qiu
da277b23c3 Osu2: basic app setup
This defines MainActivity, which is the entry point
to the app.  All the resource files are copied from
the legacy Osu/ app, and might be updated in the future.

Bug: 62388032
Test: Manually start activity via adb
      "am start -n com.android.osu/.MainActivity"

Change-Id: I5b81fb8fc58fd94d5de2dbdb1e46b7ff6a40760b
2017-06-14 09:34:45 -07:00