Commit Graph

3524 Commits

Author SHA1 Message Date
Jeff Davidson
91c3d07fd9 Implement remaining core eUICC APIs.
Includes:

-getDefaultDownloadableSubscriptionList, which returns a list of
default subscriptions available for the device.
-getEuiccInfo, which returns an EuiccInfo object containing
non-sensitive information about the eUICC device.
-deleteSubscription, to delete a subscription.
-switchToSubscription, to switch to (or away from) a subscription.
-updateSubscriptionNickname, to update the nickname of a subscription
which is saved to the eUICC.
-eraseSubscriptions, to factory reset the eUICC.
-Settings.Global#DEFAULT_SM_DP_PLUS, a default SM-DP+ server which is
used to query for default subscriptions in
getDefaultDownloadableSubscriptionList.

These APIs follow the template of the APIs which have already been
implemented.

This completes the baseline implementation as designed; any additional
APIs or tweaks to the APIs will be tracked as separate bugs.

Fixes: 33075886
Test: Build/boot
Change-Id: I8057757c874f94e0c816af1ca071d656c8f145b9
2017-05-14 10:57:00 -07:00
Chris Wren
e96b36922f Merge changes from topic 'b/36021111' into oc-dev am: 69ab8e1d56
am: 68c7ccc94d

Change-Id: Iaa6782cb3354c7ac0219ea18b254577ecf0d9733
2017-05-12 08:44:46 +00:00
Chris Wren
68c7ccc94d Merge changes from topic 'b/36021111' into oc-dev
am: 69ab8e1d56

Change-Id: I4bf9b7425c86a8725e9d7c055ab4c4f389fe3a2b
2017-05-12 05:57:40 +00:00
Chris Wren
89aa226190 add a global control for badging
Content observer callbacks don't specify the user,
so scan all the users we know about. User switches
will also trigger an update which will explicitly
check the setting for the (now) current user.

Migrate tests to TestableContext to allow the test
to safely override secure settings.

Bug: 36021111
Test: runtest systemui-notification
Change-Id: I588068382912955da114cc351df7a1e7b4f0733f
2017-05-11 17:19:01 -04:00
Jeremy Joslin
f4491b7103 Merge "Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev am: b569eedf37" into oc-dev-plus-aosp
am: 3f3a19183e

Change-Id: I01a5285918e355004d25cc9fbb04c70926a28cfa
2017-05-11 06:18:28 +00:00
Makoto Onuki
70dfa834ee Merge "Reconnect to DAService after binding is dead" into oc-dev am: ef5700667f
am: 0d9425e3e4

Change-Id: I597a3a5382ebf9798b322fc8bb3c88749d117170
2017-05-11 06:09:05 +00:00
Stanley Tng
09dae065c5 Merge "Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317 am: 1755a4af45 am: 6682651b2b" into oc-dev-plus-aosp
am: 4c47458094

Change-Id: I5a19fd8f898c726d8d94df7a15cfac0161fd28b0
2017-05-11 04:09:24 +00:00
Jeremy Joslin
fb94305b33 Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev
am: b569eedf37

Change-Id: Id4e9f4644bc470d1a3b8813502eb3e1e2ca45f05
2017-05-11 00:18:48 +00:00
Makoto Onuki
0d9425e3e4 Merge "Reconnect to DAService after binding is dead" into oc-dev
am: ef5700667f

Change-Id: I03049914406ed38f92c3a6a43a82f55504c6e518
2017-05-11 00:15:47 +00:00
TreeHugger Robot
b569eedf37 Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev 2017-05-11 00:05:52 +00:00
Stanley Tng
508f9bcb9d Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317 am: 1755a4af45
am: 6682651b2b

Change-Id: I6dd36520e8a0cf09c75788eda2e03b4309acea9e
2017-05-10 22:32:32 +00:00
Stanley Tng
6682651b2b Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317
am: 1755a4af45

Change-Id: I6a143760d9acef0fb5f28680ca1538e346ebd81f
2017-05-10 22:04:24 +00:00
Makoto Onuki
09c529a9bc Reconnect to DAService after binding is dead
- When the DO/PO process crashes twice with a short interval, AM gives up
and the binding will be "died".  Once binding is in this state it'll never
be re-connected.

(Still, DO/PO can disable and re-enable their DAS to force DPMS to bind again
though.)

- Detect this and re-connect after one hour.

- Back-off time will be exponentially increased and never reset until DPMS
explicitly re-connects, which happens when:
-- the device rebooted,
-- the user stopped and re-started, or
-- the DAS is disabled and re-enabled.

Test: adb shell am instrument -e class com.android.server.am.PersistentConnectionTest -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyConstantsTest -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest

Bug 37711907

Change-Id: Ie0b227a94e6ce85d72a969a4dea1020baf734e2f
2017-05-10 11:57:19 -07:00
Stanley Tng
767f05feea Add Save and Restore of BluetoothOn setting
This change will automatically save the Bluetooth On setting when
the user chooses to backup the phone settings into the cloud. This
setting is restored by the Setup Wizard (SUW) when configuring the
phone and this change will enable or disable the Bluetooth based
on this restored setting.

Bug: 35657817
Test: Manual test with Sailfish
Change-Id: Ie4518593af63f96f8c363f98941ca5260a3ec4bb
2017-05-10 16:28:47 +00:00
Jeremy Joslin
45caa2538e Adding a new config and Setting for WiFi Wakeup.
Created a new config for WiFi Wakeup (config_wifi_wakeup_available)
and defaulted it to NOT_AVAILABLE.

Also added a new global Settings constant (WIFI_WAKEUP_AVAILABLE)
and defaulted it to the value of the new config noted above.

Bug: 37987491
Bug: 38036968
Test: Built, flashed and confirmed proper config value.
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/SettingsProviderTest.java
Change-Id: I0cdca4262a0ef473fcbbf7da8d960c41dfafb11f
2017-05-05 15:12:26 -07:00
Ajay Panicker
0a3411a29b resolve merge conflicts of 06b8324d02 to master
Test: I solemnly swear I tested this conflict resolution.
Change-Id: I29b117df6803fd59faafe97a02b8ab2d34741f0e
2017-05-04 17:12:27 -07:00
Ajay Panicker
06b8324d02 Merge "Limit btsnoop file size (3/9)" into oc-dev
am: 4d1fb218f4

Change-Id: I587722c6408067b45331f10a7bfbb55c53c6317f
2017-05-04 23:22:30 +00:00
Ajay Panicker
4d1fb218f4 Merge "Limit btsnoop file size (3/9)" into oc-dev 2017-05-04 22:56:21 +00:00
Ajay Panicker
4d71437598 Limit btsnoop file size (3/9)
Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
2017-05-04 09:56:50 -07:00
Neil Fuller
d25a198c5a Merge "More time zone update API classes" am: c301339498 am: 9798dc47b1 am: 2cf4771469
am: aac434b431

Change-Id: I9d37119e5b6952bad07bcb99c9606b0c76516b30
2017-05-04 15:06:25 +00:00
Neil Fuller
aac434b431 Merge "More time zone update API classes" am: c301339498 am: 9798dc47b1
am: 2cf4771469

Change-Id: Ic82572f406fd56dd11afce108e14ff0dcb45557e
2017-05-04 14:59:58 +00:00
Neil Fuller
2cf4771469 Merge "More time zone update API classes" am: c301339498
am: 9798dc47b1

Change-Id: Ia85f1ec883b8ac8cb9a93dfbfabacd1589aafe8f
2017-05-04 14:53:53 +00:00
Treehugger Robot
c301339498 Merge "More time zone update API classes" 2017-05-04 14:41:10 +00:00
Geoffrey Pitsch
439d921955 Merge "Developer setting to show toast for notifications without a channel" into oc-dev am: 3c0e3d8a36
am: 44448d640a

Change-Id: Ie2a407039d2df43da24f10047e91a7d98a85eaba
2017-05-04 14:21:44 +00:00
TreeHugger Robot
3c0e3d8a36 Merge "Developer setting to show toast for notifications without a channel" into oc-dev 2017-05-04 14:09:03 +00:00
Neil Fuller
a8889fa7fa More time zone update API classes
This class forms the contract between the updater app
(the app provided by and triggered by the system)
and the data app (the app provided by the OEM to
provide time zone data).

Bug: 31008728
Test: make only, just constants
Change-Id: I687b75954e132884aec962fcf8955f3f38a00b2f
2017-05-04 14:11:09 +01:00
Antony Sargent
0f1972d667 Merge "Add persistent state for Bluetooth high quality audio support" into oc-dev am: d53a71f443
am: dc62fbe81b

Change-Id: I56c2eb9a3dca6e8dad1cbddeabe4ebbe471b4758
2017-05-04 01:51:05 +00:00
TreeHugger Robot
d53a71f443 Merge "Add persistent state for Bluetooth high quality audio support" into oc-dev 2017-05-04 01:37:07 +00:00
Geoffrey Pitsch
4c6eef21fd Developer setting to show toast for notifications without a channel
Bug: 37945054
Test: runtest systemui-notification
Change-Id: I264913c3d7ef6fcd83129b0692e96d3218bc7217
2017-05-03 13:41:21 -04:00
Christine Franks
3fcdfa1b96 Merge "Night display status restores on reboot/user change" into oc-dev am: 78e03b44c3
am: 0bd001e95c

Change-Id: I83536aa49173091ed5fe8ad96e8f752a5313ef93
2017-05-03 17:14:52 +00:00
Christine Franks
e5bb03e2ea Night display status restores on reboot/user change
Fixes: 30086742
Test: runtest -c com.android.server.NightDisplayServiceTest \
      frameworks-services
Change-Id: I264be077e607baf8e19496f0c57549a907668005
2017-05-03 15:00:43 +00:00
Antony Sargent
f5772c6121 Add persistent state for Bluetooth high quality audio support
Defines the flags used in code and the Settings.Global key names for
persisting the following state for Bluetooth A2DP Sink devices:
-Whether the device supports optional codecs or not
-Whether optional codecs should be turned on for the device

For each of these two properties we model the state in the code as
yes/no/unknown, so that we can tailor the UI and behavior
accordingly.

Bug=37441685
Test: manually

Change-Id: I6bcd02fd7c95bef989575f3b13d4788dab61971a
2017-05-03 04:36:51 +00:00
Michael Dooley
ea1bc75d98 Merge "Adding voicemail transcription state to the database" into oc-dev am: 4794cbf574
am: bc06988d8b

Change-Id: Ie25fb987b0013625b697098ea518ccc4b40f8999
2017-05-02 22:20:45 +00:00
Michael Dooley
4794cbf574 Merge "Adding voicemail transcription state to the database" into oc-dev 2017-05-02 22:01:18 +00:00
Colin Cross
316c9ce694 Add missing symbol
Bug: 35998031
Test: builds
Change-Id: Ie085b4058c5714df9913ceb9fd03fb4658168520
2017-05-01 15:02:50 +00:00
Dianne Hackborn
8a40a4ca27 Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
2017-04-30 17:44:10 +00:00
Dianne Hackborn
83b40f69be Work on issue #36891897: Need to ensure foreground services can't...
...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user.  We ensure they are shown to the user for at least 30 seconds
(configurable).  If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't.  By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior.  There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
2017-04-29 19:41:12 -07:00
Jeff Sharkey
15971f8328 Merge "Remove FontVariationAxis.InvalidFormatException." into oc-dev am: 408ec0b463
am: 11188aee8a

Change-Id: I49be72bd46caf9d3a9e71fb68326ade9ffd5826f
2017-04-29 16:53:35 +00:00
Jeff Sharkey
408ec0b463 Merge "Remove FontVariationAxis.InvalidFormatException." into oc-dev 2017-04-29 16:39:39 +00:00
Philip P. Moltmann
9432516fe4 Merge "Add constant for autofill-service-add URL" into oc-dev am: 09d8db0381
am: b29e0906f9

Change-Id: I163d68c15984cf43aa07371a7ee07ee6e662c346
2017-04-29 05:32:32 +00:00
Philip P. Moltmann
09d8db0381 Merge "Add constant for autofill-service-add URL" into oc-dev 2017-04-29 05:14:41 +00:00
Lifu Tang
a771ca7bab Merge "Throttle location update rate in proximity alert" into oc-dev am: 23a66d44ea
am: 2307be9c47

Change-Id: If946fae16c1db2038f752a4837d5fb9ac0e14a2e
2017-04-29 03:00:12 +00:00
Lifu Tang
c94ef4ddfd Throttle location update rate in proximity alert
Bug: 36197768
Test: manual
Change-Id: I2427ed7e77e9153c20e7c65e8f861de4c7ffeac6
2017-04-28 15:42:52 -07:00
Seigo Nonaka
0f07dd5b14 Remove FontVariationAxis.InvalidFormatException.
Use IllegalArgumentException instead.

Bug: 37769084
Bug: 37765945
Test: am instrument -w -e class android.widget.cts.TextViewTest
      android.widget.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.TypefaceTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.PaintTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.FontVariationAxisTest
      android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.text.VariationParserTest
      com.android.frameworks.coretests/\
      android.support.test.runner.AndroidJUnitRunner

Change-Id: I50b70e3e7e37585c937dcce2416a83353de62a5d
2017-04-28 15:24:40 -07:00
Renat Aksitov
2c4201448e Voice Messaging Intent API.
Removing EXTRA_SENDER_ACCOUNT_HASH, needs more work.

Bug 37747843

Test: make -j11 docs

Change-Id: I3046611510f85cf69ceff7c2274cda3b692581b9
2017-04-28 13:35:35 -07:00
Chad Brubaker
5d614ad11f Merge "Expose missing accessibility settings to instant apps" into oc-dev am: 4108aa77e8
am: 29e4c12dca

Change-Id: Id715372c4e1d6da43576cecee8866aca11f917bb
2017-04-28 02:00:03 +00:00
Wei Wang
3ad5340e5c Merge "Throttle wifi scan requests from background apps (1/2)." into oc-dev am: afd8d9e2b2
am: 5c1469e5cc

Change-Id: I0fb64287061f5323db066b484db7b96b5f1979ea
2017-04-28 01:25:06 +00:00
Seigo Nonaka
726e8739b7 Merge "Remove FontsContract.buildTypeface with weight/italic argument." into oc-dev am: 2b6bf2f221
am: a02972ed41

Change-Id: Id2b00a68a52ee9721f4eea42be49601811da885c
2017-04-28 01:22:58 +00:00
TreeHugger Robot
4108aa77e8 Merge "Expose missing accessibility settings to instant apps" into oc-dev 2017-04-28 00:41:28 +00:00
TreeHugger Robot
afd8d9e2b2 Merge "Throttle wifi scan requests from background apps (1/2)." into oc-dev 2017-04-27 23:38:28 +00:00