Commit Graph

4912 Commits

Author SHA1 Message Date
Kevin Chyn
81ebf42e2e Merge "Update BiometricPrompt API naming" 2019-03-05 18:25:27 +00:00
Michal Karpinski
666631b28e Add temporary packageName-based whitelist for allowing
background activity launches

Necessary for early stages of enabling the feature in
enforcing mode - we'll need to temporarily whitelist
apps like Duo, so dogfooders can still use them.

Bug: 123354556
Test: atest WmTests:ActivityStarterTests
Test: adb shell settings put global background_activity_starts_package_names_whitelist com.ejc.bbc:com.whatever.dude
Change-Id: I2515b8ba334e87e7f201569ba5a6bb1b79395354
2019-03-05 14:30:43 +00:00
Kevin Chyn
e64d74ecaf Update BiometricPrompt API naming
Fixes: 126190552

Test: make -j56 update-api
Test: make -j56
Change-Id: I1c0700106e46b8dbfb825df341a8196a33f8bc83
2019-03-04 22:34:07 -08:00
Jeff Sharkey
004dd4d4fc Merge "Include UUID in MediaStore version." 2019-03-05 01:12:54 +00:00
Michael Wright
9c57ba2010 Merge "Add DisplayModeDirector to determine set of allowed modes." 2019-03-04 23:07:25 +00:00
Matt Pape
782a75a688 Merge "Remove interfaces for namespaces used in native code." 2019-03-04 20:47:28 +00:00
Jackal Guo
748d1b9ba2 Merge "Add Intent and permission for a11y service toggle screen" 2019-03-04 03:35:56 +00:00
TreeHugger Robot
a1f8604603 Merge "Change Easy Connect intent naming" 2019-03-03 16:17:34 +00:00
Christian Wailes
adb444f742 Merge "Renamed blastula to unspecialized app process (usap)" 2019-03-02 01:38:11 +00:00
Kweku Adams
f6410681b9 Merge "Adding new Battery Saver location mode." 2019-03-01 22:17:29 +00:00
Chris Wailes
7e797b6f26 Renamed blastula to unspecialized app process (usap)
Bug: 123017829
Test: make & boot & launch apps
Change-Id: Icfb9f8f4ebabacece817735d60d232cf3afb4e08
2019-03-01 13:18:48 -08:00
Jeff Sharkey
1b404bef1d Include UUID in MediaStore version.
This allows apps to detect when a user clears data on MediaProvider,
or when the internal database is wiped due to corruption.

Bug: 126274540
Test: atest android.provider.cts.MediaStoreTest
Change-Id: Idfcdbf441aea82c581b7270a6d4663136b8931e2
2019-03-01 11:31:33 -07:00
Michael Wright
a3dab23529 Add DisplayModeDirector to determine set of allowed modes.
SurfaceFlinger now knows how to automatically schedule between various
display modes, so we need to tell it what modes are available to switch
between based on overall system state as well as display specific
properties. To capture all of this system state we've introduced
DisplayModeDirector which monitors all of the various inputs for
deciding display mode and notifies the rest of the display
infrastructure when they change.

Bug: 123727652
Test: manual
Change-Id: I83184664bf63c99ebd31889764720bb55c2e15a8
2019-03-01 16:34:40 +00:00
Matt Pape
7b040522e8 Merge "Add defaultValue to javadocs for typed getters." 2019-03-01 15:30:08 +00:00
Jeff Sharkey
a09312df67 Merge "All Parcelable CREATOR fields are @NonNull." 2019-03-01 14:58:28 +00:00
Andrei-Valentin Onea
b9fadbfc94 Merge "Add statslog logging for hidden api usage" 2019-03-01 11:47:15 +00:00
Jeff Sharkey
9e8f83db6d All Parcelable CREATOR fields are @NonNull.
If they were null, then the Parcelable would fail to work.

Bug: 126726802
Test: manual
Change-Id: I7929ffa2f20e5de1c8e68e8263cca99496e9d014
Exempt-From-Owner-Approval: Trivial API annotations
2019-02-28 23:29:04 -07:00
Jeff Sharkey
a30e5c389f To be @Nullable or @NonNull, that is the question.
Bug: 126699288, 126699496, 126700389
Bug: 126700085, 126701638, 126702005, 126700497
Test: manual
Change-Id: Idcbc2722ddcf014a9e5cef14321b4e2ce30adf9c
2019-03-01 06:26:39 +00:00
Yueming Wang
e17f278913 Merge "Create a constant for enterprise root uri." 2019-03-01 01:41:27 +00:00
Sudheer Shanka
d5f4165e97 Merge "Address API feedback." 2019-02-28 23:24:45 +00:00
Kweku Adams
4fb074e7f4 Adding new Battery Saver location mode.
When this new mode (LOCATION_MODE_THROTTLE_REQUESTS_WHEN_SCREEN_OFF) is
enabled, LocationManagerService will avoid sending almost all
LocationRequests to providers. The only requests that will continue to
be sent will be providers are the requests that ignore location
settings.

Bug: 121256487
Bug: 122849003
Bug: 119261320
Test: atest android.os.cts.batterysaving.BatterySaverLocationTest
Change-Id: Iee95a6fb5ca11d4db7a0f0661bf3cb1051a5d710
2019-02-28 14:55:39 -08:00
Matt Pape
becd5aa030 Remove interfaces for namespaces used in native code.
Migrate them to string constants defined directly in DeviceConfig
instead of interfaces. None of these required property names to be
defined in DeviceConfig (or Java code at all) so we don't need to touch
any of the code used by clients of Device Config to migrate these
particular namespaces.

Bug: 126411407
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I66cabbce23b9765f4ce78bd33b8a08fe07720319
2019-02-28 14:08:51 -08:00
Matt Pape
d891a3700d Merge "Update ActivityManager DeviceConfig flag definitions." 2019-02-28 21:20:22 +00:00
Matt Pape
40074dadd1 Update ActivityManager DeviceConfig flag definitions.
1. Remove the interface from DeviceConfig.
2. Add a string constant for the namespace to DeviceConfig, including
them in the System API.
3. Add string constants for flag names to ActivityManagerConstants, and
AppCompactor. (These are removed from the System API).

Bug: 126411407
Test: atest AppCompactorTest
      atest FrameworksCoreTests:DeviceConfigTest

Change-Id: I3167a4267e2ea0277f19f7d5211ab92e2b1f6285
2019-02-28 12:34:03 -08:00
Sudheer Shanka
0f6069e666 Address API feedback.
Fixes: 126699828
Fixes: 126700458
Fixes: 126702364
Test: n/a
Change-Id: I20d415ee4fdcce97054f3b68986a65500e64fb2d
2019-02-28 12:18:11 -08:00
Jeff Sharkey
bb833bd87a Merge "Hide "Pending" APIs based on feedback." 2019-02-28 19:29:21 +00:00
Matt Pape
fc5389abd5 Add defaultValue to javadocs for typed getters.
Bug: 126415338
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I1ac08f02c2553df635c3395b1df26e2e95b57201
2019-02-28 11:05:03 -08:00
Matt Pape
c7181066e6 Merge "Add typed getters to DeviceConfig API." 2019-02-28 18:31:06 +00:00
yuemingw
67b215095f Create a constant for enterprise root uri.
Test: atest CalendarProvider2Test
Bug: 123631240
Change-Id: I4db3f02f3bd9d1e0decff83eb490dc9a8d53451e
2019-02-28 18:08:17 +00:00
Jeff Sharkey
d0d26958f4 Hide "Pending" APIs based on feedback.
We've been advised that the current API design strategy is to
implement new APIs in the support library, and leave the core OS to
be bare minimal APIs.

Bug: 126636931
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I9488f0fd789bab08cd376f86056badcbcfb6cc2e
2019-02-27 23:00:20 -07:00
Arc Wang
f53e94929d Change Easy Connect intent naming
1. From ACTION_PROCESS_WIFI_EASY_CONNECT_QR_CODE to ACTION_PROCESS_WIFI_EASY_CONNECT_URI
2. Remove EXTRA_QR_CODE and use data Uri to specify Easy Connect bootstrapping information string

Bug: 125874365
Test: atest AvailableIntentsTest
      WifiDppChooseSavedWifiNetworkFragmentTest
      WifiDppConfiguratorActivityTest
      WifiNetworkListFragmentTest

Change-Id: I7ec52c73a2ba1b6b8588f6daa8d73725f115ba0f
2019-02-28 10:29:15 +08:00
Gustav Sennton
c81eb67413 Merge "Move NotificationAssistant flags into SystemUi namespace." 2019-02-27 19:09:33 +00:00
Gustav Sennton
ddd78b2d4f Move NotificationAssistant flags into SystemUi namespace.
Create SystemUi DeviceConfig namespace and add a class to store all its
flags in. These flags will be shared between the SystemUi package and
other Notification packages - like ExtServices and
NotificationManagerService.

Performing experiments across different packages is much more involved
than performed single-package experiments. Therefore, we put flags
related to Notifications into the System UI experiment flag package.

Bug: 120792826
Test: atest AssistantSettingsTest
Change-Id: I83992291e660ab092bed8d22d1abaaa2bd9d6f9a
2019-02-27 16:51:47 +00:00
Andrei Onea
e8e150dbff Add statslog logging for hidden api usage
Statslog logging is done alongside the old logging, with different
sampling rates.

Test: cts-tradefed run cts-dev -m CtsStatsdHostTestCases -t \
        android.cts.statsd.atom.UidAtomTests#testHiddenApiUsed
Bug: 119217680
Change-Id: If7c38eaee3a3c08434c2e4f2dac45c659ea9cb12
2019-02-27 16:16:44 +00:00
Issei Suzuki
f2d13673f4 Merge "Move AmbientDisplayConfiguration class out of internal package." 2019-02-27 14:28:36 +00:00
Michal Karpinski
750c23d541 Merge "Default ACTIVITY_STARTS_LOGGING_ENABLED flag to 1" 2019-02-27 13:10:12 +00:00
Narayan Kamath
01794b570b Merge "Drop support for device configurable "compatibility WAL"." 2019-02-27 11:03:29 +00:00
Issei Suzuki
ca19e6e3ef Move AmbientDisplayConfiguration class out of internal package.
Test: m droid (run full build), atest SystemUITests
Bug: 126327497
Change-Id: Ife8303924bd02e9639008293bf9028f4871a9b16
2019-02-27 10:34:17 +01:00
Matt Pape
043437cfd7 Add typed getters to DeviceConfig API.
Typed getters for String, boolean, int, double, and float. These new
methods take default_value params and return them in the event that
either a flag does not exist, or does not parse correctly.

Bug: 126415338
Test: atest FrameworksCoreTests:DeviceConfigTest
Change-Id: I10523a7b591d9f062d5de88c5fc4edd8c7c73ee0
2019-02-26 14:52:03 -08:00
Dongwon Kang
2ee0891fdc Add documentation on MediaNative.NAMESPACE
Test: build
Bug: 126180197
Change-Id: I94796781b30e1361fdd222bb510762b34501ca26
2019-02-26 14:16:08 -08:00
Michal Karpinski
dbd7154348 Merge "Rework adding bg activity starts whitelisting token for broadcasts" 2019-02-26 21:10:10 +00:00
Yiwen Chen
5624e4f021 Merge "Remove @hide from comment of apply_ramping_ringer so that it can be accessed from setting intelligence." 2019-02-26 18:17:12 +00:00
Michal Karpinski
4b8aef21b2 Rework adding bg activity starts whitelisting token for broadcasts
Add token around the places we call scheduleTempWhitelistLocked().

Move to a timeout-based mechanism - allow the receiver to open
activities from background for at least the time it's running,
but extend the privilege if it finished sooner than the allowed
timeout.

Also, make the timeout configurable in BroadcastConstants.

Bug: 123384391
Bug: 123711192
Bug: 110956953
Test: atest WmTests:ActivityStarterTests
Test: manual with Play "finished install" notifications that do
      broadcast trampoline, Chrome bookmarks widget, BBC News widget,
      Citymapper "get me somewhere" notification

Change-Id: I814472187bec4b4a1ce48112e7b666efd2d04ef6
2019-02-26 17:38:43 +00:00
Michal Karpinski
b639402f5b Default ACTIVITY_STARTS_LOGGING_ENABLED flag to 1
Bug: 110956953
Test: atest WmTests:ActivityStarterTests
Change-Id: I864abba208d75a131da098b77cc09e46101c4986
2019-02-26 11:34:48 +00:00
TreeHugger Robot
52480bee82 Merge "Fix Battery Saver location bugs." 2019-02-25 21:33:36 +00:00
Narayan Kamath
b8280438d8 Drop support for device configurable "compatibility WAL".
WAL as a journaling mode is no longer configurable on a
per-device basis. We preserve support for changing this value
via phenotype for now, but this will likely be removed in a
follow up once this change has been vetted.

Test: atest FrameworksCoreTests:android.database
Test: atest CtsDatabaseTestCases
Bug: 123352172
Change-Id: I163bad836b71770946ce12a8bfd19f362033ea83
2019-02-25 13:00:14 +00:00
TreeHugger Robot
7d9c08d393 Merge "Control lid behaviour with a Global setting" 2019-02-23 06:54:48 +00:00
TreeHugger Robot
fb8509a3dd Merge "Create setting screen from Notification Assistant" 2019-02-23 04:30:23 +00:00
Edward Savage-Jones
ce7a01fd78 Control lid behaviour with a Global setting
Using a global setting to specify the lid open/close behaviour
allows OEMs to support switching between windowed and windowless
lids at runtime instead of build time.

Bug: 70378569
Test: Find the hall effect sensor on the device and then using a magnet
confirm the expected behaviour for each global setting:
* No reaction from device
adb shell settings put global lid_behavior 0
* Sleep/screen off
adb shell settings put global lid_behavior 1
* Lock screen but screen stays on
adb shell settings put global lid_behavior 2
Change-Id: I53682711aeaaeb9eead7246ba83e4dd4b3c06a58
2019-02-23 10:18:21 +08:00
Kweku Adams
5e0052b1eb Fix Battery Saver location bugs.
1) Actively disabling LOCATION_MODE instead of LOCATION_PROVIDERS_ALLOWED
since the latter is deprecated and not supported.

2) The LOCATION_MODE_FOREGROUND_ONLY flag wasn't used anywhere. As
such, it was essentially no different from LOCATION_MODE_NO_CHANGE. I've
implemented the behavior in LocationManagerService so it works properly.

3) GnssLocationProvider only turned off GPS when the location mode was
LOCATION_MODE_GPS_DISABLED_WHEN_SCREEN_OFF, but not the mode was
LOCATION_MODE_ALL_DISABLED_WHEN_SCREEN_OFF. I've fixed it so GPS is
turned off in both modes.

4) PowerManager looked at the global battery saver state to determine if
the location mode should be used. This was fine for full Battery Saver,
but would be a problem with adaptive Battery Saver. The proper thing to
do is to just look at the local 'batterySaverEnabled' flag.

Bug: 121256487
Bug: 122849003
Bug: 119261320
Test: atest CtsBatterySavingTestCases
Change-Id: I8973d27fb050d9892bb97021712d9cf9743e8939
2019-02-22 17:07:08 -08:00