Commit Graph

90124 Commits

Author SHA1 Message Date
Hui Yu
b8dcbeeff1 Add IntDef annotation to parameter foregroundServiceType.
For methods Service.startForeground(int, Notification, int).
Also add IntDef annotation on return value of
ServiceInfo.getForegroundServiceType().

Change-Id: I3f0df5ff44dfb1b0cf2150d6e40d39ac0cd2b2b5
Fix: 124331268
Test: NA.
2019-02-15 11:49:48 -08:00
Haoyu Zhang
2c282d75db Merge "Add trackingBug number for UnsupportedAppUsage of mMarquee" 2019-02-11 18:28:54 +00:00
TreeHugger Robot
da17a20286 Merge "TextClock registerContentObserver with UserHandle" 2019-02-11 17:24:58 +00:00
Sergey Vasilinets
0f5d4fe906 Merge "Make InputDevice.isExternal() public" 2019-02-11 15:53:30 +00:00
TreeHugger Robot
71d9277b21 Merge "Revert addition of add/removeAnimationListener" 2019-02-11 14:20:29 +00:00
Mihai Popa
3df49260c4 Make ProgressBar#getCurrentDrawable() public
The CL adds ProgressBar#getCurrentDrawable() to the public API, and
transitions mCurrentDrawable in ProgressBar to dark gray list.
Developers can use getCurrentDrawable(), setProgressDrawable() and
setIndeterminateDrawable() instead of accessing mCurrentDrawable
directly.

Bug: 123769441
Test: none
Change-Id: Ia9876f97dc2ec2c69902b8281cd7876b516dbdd4
2019-02-11 10:11:52 +00:00
TreeHugger Robot
2148e7f009 Merge "Add default for music and gallery app." 2019-02-11 09:34:32 +00:00
TreeHugger Robot
44b8309ea2 Merge "Surface <overlayable> info in Java AssetManager" 2019-02-11 03:55:13 +00:00
TreeHugger Robot
7bd4ed2703 Merge "Close access to WindowGlobalManager.trimMemory starting with Q" 2019-02-11 00:49:11 +00:00
Sergey Vasilinets
f5c83bba8d Merge "Disallow reflection on Display.getDisplayInfo and Display.displayCutout" 2019-02-11 00:41:39 +00:00
Matvei Malkov
b0bd3e7a04 Epicenter API for ListPopupWindow
Introduced epicenter API for ListPopupWindow to mirror the same API that we've made for PopupWindow (b/123768589). Also add mutability protection to PopupWindow epicenter rects

Bug: b/124094855

Test: All widgets tests passed. getter / setter tests introduced in
I648c169b67972c80befbeae9c37c2819eaad27d4
Change-Id: I2b79a16039d345c9c8893b815735a2811543cf60
2019-02-10 21:52:30 +00:00
Ralston Da Silva
0671c44a85 Merge "Removing hidden api usage from AutoCompleteTextView" 2019-02-10 05:10:22 +00:00
TreeHugger Robot
9eb7476d6a Merge "KeyChain: Improve key override documentation." 2019-02-09 23:15:24 +00:00
TreeHugger Robot
e921cb7a9b Merge "Suggest ADD_CONTACT action by default" 2019-02-09 14:45:24 +00:00
TreeHugger Robot
5333f25e37 Merge "Fix for Hidden API Landroid/widget/ImageView;->mDrawMatrix:Landroid/graphics/Matrix; in ligt-grey list" 2019-02-09 06:12:43 +00:00
TreeHugger Robot
45d5afbf30 Merge "Added maxTargetSdk and tracking bug to USE_VSYNC flag in choreographer" 2019-02-09 04:22:21 +00:00
Shep Shapard
cdc95009df Merge "Prevent reflection - ScaleGestureDetector#mMinSpan" 2019-02-09 03:28:27 +00:00
Nate Fischer
0db208d078 Merge "WebView: propose myself as OWNER" am: 9fdd759e40 am: 0424bd04bf
am: 0c6ecd8406

Change-Id: I32ed52d50cc3a568621cc7d0d5cfeba6ae8afb68
2019-02-08 18:35:20 -08:00
Nate Fischer
0c6ecd8406 Merge "WebView: propose myself as OWNER" am: 9fdd759e40
am: 0424bd04bf

Change-Id: If9b14720c02587fd336ee8c052916b9df5958b8d
2019-02-08 18:24:55 -08:00
TreeHugger Robot
631587faed Merge "Allow update from pre-release to release targetSDK" 2019-02-09 02:17:48 +00:00
Nate Fischer
0424bd04bf Merge "WebView: propose myself as OWNER"
am: 9fdd759e40

Change-Id: I908fb894e288d53d4cc8d3bd19580db4d99de278
2019-02-08 18:15:32 -08:00
Jeff Sharkey
1e9e973153 Merge changes from topic "columnz"
* changes:
  Resolve symlinks when listing scan paths.
  Use newly defined columns for directory names.
2019-02-09 02:08:14 +00:00
Treehugger Robot
9fdd759e40 Merge "WebView: propose myself as OWNER" 2019-02-09 01:59:29 +00:00
TreeHugger Robot
dbabb7fba4 Merge "@InspectableProperty annotations for WebView" 2019-02-09 01:48:18 +00:00
Felipe Leme
aa4eecad07 Merge changes from topics "kill_switch", "disabled_by_device_config"
* changes:
  Reverted ContentCapture kill-switch mechanism.
  Disable ContentCapture at runtime when it's disabled by DeviceConfig.
2019-02-09 01:45:06 +00:00
TreeHugger Robot
c649af94c3 Merge "Fix for Hidden API Landroid/widget/ScrollView;->mOverflingDistance:I in ligt-grey list" 2019-02-09 01:36:34 +00:00
TreeHugger Robot
f8896f8d60 Merge "Fix for Hidden API Landroid/widget/ScrollView;->mMinimumVelocity:I in ligt-grey list" 2019-02-09 01:12:16 +00:00
TreeHugger Robot
ad7b649bd0 Merge "Fix Test Harness Mode to work with new ADB file" 2019-02-09 01:02:54 +00:00
TreeHugger Robot
2ba126cbc7 Merge "Fix javadoc for enabling backup in DevicePolicyManager" 2019-02-09 00:59:20 +00:00
shepshapard
ba6dbff3f5 Prevent reflection - ScaleGestureDetector#mMinSpan
Also makes "minScalingSpan" accessible to developers
via ViewConfiguration in case developers were accessing
mMinSpan in order to simply read the value of the field,
since that was previously the only way to read the value.

Fixes: 123768938
Test: android.view.cts.ViewConfigurationTest

Change-Id: Ib179aa153f00a55b6913c7497a1e43bd101f41d3
2019-02-08 16:48:52 -08:00
Ralston Da Silva
ccec37e1d1 Removing hidden api usage from AutoCompleteTextView
doBeforeTextChanged() and doAfterTextChanged() were being called to
trigger a refresh of the autocomplete suggestions when the refresh
was not automatically triggered by text input.

An androidx usage example is in SearchView, where we need to trigger
the autocomplete results manually.
https://cs.corp.google.com/aosp-kitkat/frameworks/support/v7/appcompat/src/android/support/v7/widget/SearchView.java?rcl=197708fc4fc0a6a5ede2da2479613382b561f028&l=1199
https://cs.corp.google.com/aosp-kitkat/frameworks/support/v7/appcompat/src/android/support/v7/widget/SearchView.java?rcl=197708fc4fc0a6a5ede2da2479613382b561f028&l=895

I feel this is a valid use case and added a new public api refreshAutoCompleteResults()

Bug: 123768711
Bug: 123768433

Test: Added new CTS tests for newly added api

Change-Id: Icfa6287889b4f63c00aa2ad6450e47942a9adda5
2019-02-09 00:47:48 +00:00
Nader Jawad
21a4f7c88c Added maxTargetSdk and tracking bug to USE_VSYNC flag in choreographer
It is not clear what an application would do differently with this flag
considering that VSYNC has been enabled by default on Android for a
number of years.

Change-Id: Id307bce0beebaad63a693222dffe940d640f89cd
Fixes: 123769497
Test: N/A
2019-02-09 00:38:05 +00:00
Kevin Chyn
eb8c06d65d Merge "Rename setEnableFallback to setAllowDeviceCredential" 2019-02-09 00:37:44 +00:00
Rahul Ravikumar
cd946ba2c9 Fix for Hidden API Landroid/widget/ImageView;->mDrawMatrix:Landroid/graphics/Matrix; in ligt-grey list
* Use ImageView#getImageMatrix() and setImageMatrix() instead.

Test: N/A
Change-Id: I34b489ee872e470358be225528f4b576c753b290
Fixes: b/124051687
2019-02-08 16:32:40 -08:00
TreeHugger Robot
6686d19fc7 Merge "Prevent access to MotionEvent#mNativePtr" 2019-02-09 00:10:50 +00:00
Rahul Ravikumar
420654a90d Fix for Hidden API Landroid/widget/ScrollView;->mOverflingDistance:I in ligt-grey list
* Use ViewConfiguration#getScaledOverflingDistance() instead.
* Use ViewConfiguration#getScaledOverscrollDistance() instead.

Test: N/A
Change-Id: I3d2edb8d197f1b6fc4515c8f175b9862e8f8236c
Fixes: b/124050903
2019-02-08 15:23:33 -08:00
Rahul Ravikumar
8065e8e915 Fix for Hidden API Landroid/widget/ScrollView;->mMinimumVelocity:I in ligt-grey list
* Use ViewConfiguration#getScaledMinimumFlingVelocity() instead.

Test: N/A
Change-Id: I1604032f206414171ea4a4c92fcf19dacbfbefe1
Fixes: b/124051125
2019-02-08 15:16:08 -08:00
Hai Zhang
9ba3196af4 Add default for music and gallery app.
Also rearrange the order of the roles to be consistent.

Bug: 123994674
Test: manual
Change-Id: I2e51ad02925bb7032e9575a024ec50b6715a3428
2019-02-08 15:04:50 -08:00
Rahul Ravikumar
400d99a807 Merge "Fix Hidden API Landroid/widget/AbsListView;->trackMotionScroll(II)Z in ligt-grey list" 2019-02-08 22:56:29 +00:00
Felipe Leme
6c7c87bb4e Merge "Fixed sendEvent() so it can merge TYPE_VIEW_DISAPPEARED with multiple ids." 2019-02-08 22:31:25 +00:00
Abodunrinwa Toki
aa0fc10c7a Merge "TextClassifier: normalize uri for browser intent." 2019-02-08 21:39:09 +00:00
Jeff Sharkey
858b311cee Resolve symlinks when listing scan paths.
Some paths like /product might be symlinks to /system/product.

Bug: 124070462, 124074176, 124074218, 124074430
Test: atest CtsMediaTestCases
Change-Id: Ic0aa388f385d13a124ae170686dea18e716016e0
2019-02-08 14:39:01 -07:00
Sumir Kataria
07d709cf78 Merge "Disallow reflection access to AdapterView#mDataChanged after P." 2019-02-08 21:11:05 +00:00
Jeff Sharkey
d8dc4bcdcc Use newly defined columns for directory names.
Instead of using Uri query parameters to configure directory names,
this moves to using real columns that we recently added.

Bug: 123967243, 115377970
Test: atest MediaProviderTests
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore*
Change-Id: I8aa2c65a7b3552cd1ef0b6371dfd52c0798db218
2019-02-08 14:03:40 -07:00
William Hester
99a7d633b3 Fix Test Harness Mode to work with new ADB file
Because the ADB keys are now stored in adb_temp_keys.xml as well, Test
Harness Mode should back up and restore that file. To resolve a comment
in the initial CL, it uses a LocalService to actually interact with the
AdbService to retrieve the file, so any future changes in file location
should be immediately propagated to Test Harness Mode.

There were also two minor bugs fixed in this CL:
1) When serializing the adb keys to the XML file, if the allowedTime was
   0, they were all removed
2) If all keys are removed, the file was only an XML header and therefore
   invalid XML

Test: adb shell cmd testharness enable
Test: adb shell settings put global adb_allowed_connection_time 1;
unplug device, plug device back in, adb shell cat
/data/misc/adb/adb_temp_keys.xml (should return 'No such file or
directory')
Change-Id: I09e2998a0b80660486502f7486d4c838219c342c
2019-02-08 12:38:08 -08:00
Ashley Rose
22f0d530b6 @InspectableProperty annotations for WebView
Test: m framework
Bug: 120492712
Change-Id: I087e5d40e362171cce71e56755b72cad789a87ae
2019-02-08 20:07:23 +00:00
Kevin Chyn
45d1f9d311 Rename setEnableFallback to setAllowDeviceCredential
Also adds BIOMETRIC_ERROR_NO_DEVICE_CREDENTIAL constant

Fixes: 123725101

Test: Demo app
Test: CtsVerifier Biometric Test
Change-Id: Ib4d25438946c0ce476de8ef416d07e3c58152da9
2019-02-08 11:34:42 -08:00
TreeHugger Robot
b9f1cae5f8 Merge "Restrict access to AbsListView internals." 2019-02-08 19:33:35 +00:00
Beverly Tai
f4b2b512be Merge "By default, all notifications can be bubbled" 2019-02-08 19:06:06 +00:00
Felipe Leme
14ef461fc2 Reverted ContentCapture kill-switch mechanism.
Fixes: 121153631
Fixes: 121144410

Test: atest CtsContentCaptureServiceTestCases

Change-Id: Ic0e3fe6e93a8c2aff12eebcf9872f0082a361589
2019-02-08 10:45:50 -08:00