Commit Graph

4932 Commits

Author SHA1 Message Date
Xiao Ma
d11f62d9ba Merge "add networking connectivity namespace." 2019-03-07 09:28:03 +00:00
Xiao Ma
61089ea8b5 add networking connectivity namespace.
Bug: 112869080
Test: m -j passed
Change-Id: I617257a1d8f2f0f4336e526d7fab6f8d12143d3b
2019-03-07 14:51:52 +09:00
Yiwen Chen
71c2da8aa2 Merge "Add default value for apply_ramping_ringer." 2019-03-07 03:52:00 +00:00
Matt Pape
d926ae08d6 Merge "Add DeviceConfig.Properties and return it from change listener." 2019-03-06 21:41:58 +00:00
TreeHugger Robot
9a5663c787 Merge "Migrate to DeviceConfig in TextClassifier" 2019-03-06 19:51:53 +00:00
Matt Pape
1013d298a2 Add DeviceConfig.Properties and return it from change listener.
Add a second method to the OnPropertyChangedListener which returns a
Properties object instead of a single flag. This object will hold only
one flag for now (Q) but easily supports multiple flags at a time when
we are ready to support atomic writes (R). This Properties object also
contains typed getters, so we don't force every single client to
dupliate the parsing and default value logic.

For now, the new method in the change listener has a default
implementation which calls the old method. This ensures that no one's
code is broken (because they aren't implementing the new method) and no
one's feature stops working (the old method is still being called).

This is part 1 of a 4 step migration from the single flag callback to
the new Properties callback.

Part 2 will update the OneTimeDeviceConfigListener in the gts/ repo to
override both the old and new callback methods.

Part 3 will update the DeviceConfig.OnPropertyChangedListener to provide
a default implementation for the old method instead of a default
implementation for the new method. At the same time, all implementations
of DeviceConfig.OnPropertyChangedListener in the core repo will be
updated to implement the new method instead of the old method.

Part 4 will update the OneTimeDeviceConfigListener in the gts/ repo to
override only the new callback method and delete the implementation of
the old callback method.

These 4 parts have to happen in order.

Bug: 126414261
Test: atest FrameworksCoreTests:DeviceConfigTest

Change-Id: If75bce326dcdbc38e22d95982e57ad466cbecdb6
2019-03-06 11:15:55 -08:00
David Su
80421043ad Merge "Link Probing: Update comment to reflect that link probing is enabled by default" 2019-03-06 17:35:02 +00:00
Jeff Sharkey
715b34be65 Merge "Add trivial nullability annotations." 2019-03-06 16:17:56 +00:00
Ivan Chiang
ffba15565f Update Nullability of Apis
Update Nullability of apis in DocumentsContract,
DocumentsProvider.

Test: make
Change-Id: Icc81333707bbeb9fe6d410ee35ade761e2d3b254
Fix: 126700626
Fix: 126702360
Fix: 126700352
2019-03-06 15:04:49 +08:00
Chiachang Wang
5df93de035 Merge "Update description based on API feedback" am: f397b39442 am: 784556da5b
am: d12b6c929e

Change-Id: Iae04c9f13a9bdd12b69e7780381f202a55bfc44f
2019-03-05 19:23:19 -08:00
Jeff Sharkey
ba4acd5575 Add trivial nullability annotations.
Bug: 126702077, 126701263, 126700858, 126700497
Test: manual
Change-Id: Ic6599f59e6e079097a35cb2bf24c59a87627c8b7
Exempt-From-Owner-Approval: Trivial API annotations
2019-03-05 19:48:55 -07:00
David Su
a171efbefb Link Probing: Update comment to reflect that link probing is enabled by default
Link Probing: Update comment to reflect that link probing is enabled by default

Bug: 112029045
Test: compiles
Change-Id: I40f79aec2a0898a74b2a8b9073990635c3a3009a
2019-03-05 12:38:24 -08:00
Yiwen Chen
0305b57a33 Add default value for apply_ramping_ringer.
Bug: 120789399
Test: Tested on device
Change-Id: I14a13e3c13e90a744ea52a847a93fa3140ac8184
2019-03-05 11:50:52 -08:00
Kevin Chyn
81ebf42e2e Merge "Update BiometricPrompt API naming" 2019-03-05 18:25:27 +00:00
Tony Mak
fc374578b7 Migrate to DeviceConfig in TextClassifier
ConfigParser is introduced to read the flags from DeviceConfig.
If the flag is missing, fallback to Settings.

Also, adds a new setting key: TEXT_CLASSIFIER_ACTION_MODEL_PARAMS

Test: atest frameworks/base/core/tests/coretests/src/android/view/textclassifier/
Test: adb shell cmd device_config put textclassifier system_textclassifier_enabled  false
      adb shell dumpsys textclassification, observed that the flag is updated.

BUG: 123389900
Change-Id: Icbd26ec7ed223e40b60696d12327cb123b96c4fd
2019-03-05 14:57:53 +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
Chiachang Wang
4349dc08c9 Update description based on API feedback
Bug: 126883311
Test: Build pass
      atest NetworkStackTests
Change-Id: If3d21829bbe98d125215abe96247ca7d5a66d1f3
2019-03-05 20:31:57 +08: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