Commit Graph

90623 Commits

Author SHA1 Message Date
TreeHugger Robot
a6cc562629 Merge "Fix fillwindow destory() throwing IllegalStateException if update is never called." 2019-02-25 23:16:16 +00:00
Keun-young Park
3ada2d8614 Merge "Add startUserInForegroundWithListener to IActivityManager" 2019-02-25 21:52:26 +00:00
TreeHugger Robot
52480bee82 Merge "Fix Battery Saver location bugs." 2019-02-25 21:33:36 +00:00
TreeHugger Robot
5daa6d5c67 Merge "Added a DeviceConfig property for Content Capture idle timeout to unbind from system server." 2019-02-25 21:10:50 +00:00
Android Build Merger (Role)
c29cb878ec Merge "Merge "Update RulesManagerService after APEX files" am: ee15067180 am: 7421a00bb0 am: efaa3e6801" 2019-02-25 21:10:47 +00:00
TreeHugger Robot
1dd0cb9898 Merge "Clarify brightness correction API" 2019-02-25 21:07:48 +00:00
Neil Fuller
08151535a8 Merge "Update RulesManagerService after APEX files" am: ee15067180 am: 7421a00bb0
am: efaa3e6801

Change-Id: I12b6017fdd0c280b5e023269fb8a52f717528c1c
2019-02-25 13:04:14 -08:00
Mehdi Alizadeh
6d4ce1e5bb Merge "Make ShortcutInfo@getPersons() systemApi" 2019-02-25 21:02:11 +00:00
TreeHugger Robot
a984bb74b1 Merge "Enforce MANAGE_APP_PREDICTIONS on hasShareTargets" 2019-02-25 20:54:55 +00:00
TreeHugger Robot
3d66fc9d6b Merge "Trigger augmented autofill when the app is not important for autofill." 2019-02-25 20:34:44 +00:00
Feng Cao
cb9c96ae96 Fix fillwindow destory() throwing IllegalStateException if update is never called.
Fixes: 126118917
Test: atest android.autofillservice.cts.augmented.AugmentedLoginActivityTest

Change-Id: I87d0436e0aa2088a3272eadb26e7d69777612320
2019-02-25 11:54:25 -08:00
Nandana Dutt
3267e6513a Merge "Add a new error code for disallowing concurrent bugreports" am: 2badc1e434 am: 1ae35be3e3
am: a973019596

Change-Id: Ie9a4bdc744a103b10a30df415524c94e46957ee5
2019-02-25 11:52:59 -08:00
TreeHugger Robot
4a79c63722 Merge changes from topic "view_tree_batch"
* changes:
  Changed Content Catpure workflow so it notifies when multiple changes are made.
  Improved how Content Capture events are flushed when activity is resumed / paused.
2019-02-25 19:22:05 +00:00
TreeHugger Robot
3d61f89275 Merge "Address API council feedback" 2019-02-25 19:21:52 +00:00
Neil Fuller
efaa3e6801 Merge "Update RulesManagerService after APEX files" am: ee15067180
am: 7421a00bb0

Change-Id: I86bba886037d93723957a33f913f6fa0c05e8b0f
2019-02-25 10:34:33 -08:00
Nandana Dutt
a973019596 Merge "Add a new error code for disallowing concurrent bugreports" am: 2badc1e434
am: 1ae35be3e3

Change-Id: I7440be8e4605466958d072dd977e0019f13b2193
2019-02-25 10:20:50 -08:00
TreeHugger Robot
2451425051 Merge "Linkify CLASSIFICATION_AMBIGUOUS_GESTURE" 2019-02-25 17:56:08 +00:00
Felipe Leme
e764fa2892 Added a DeviceConfig property for Content Capture idle timeout to unbind from system server.
Test: manual verification
Bug: 111276913

Change-Id: I3c8f0ffc5fbadfc033ef6574cab7e0ec1419b38e
2019-02-25 09:42:14 -08:00
Paul Duffin
869f5c42a0 Merge "Update backwards compatibility support for android.test.base" am: 617e556477 am: f4dfe50594
am: 70828b499b

Change-Id: Ic8b18c2e4fc86717e0fe5c3090c5e7cbaf9b05d6
2019-02-25 09:26:13 -08:00
Sooraj Sasindran
0acab502a0 Merge "Allow UiAutomation to adopt the shell permission indentity" am: 9f0115bb6e
am: 178684530b

Change-Id: If21a26f16b8c88f1dab56ac7fa7a804a1e9077b0
2019-02-25 09:25:50 -08:00
Kenny Guy
0a9e341940 Clarify brightness correction API
Add annotations to clarify the brightness
correction API.

Bug: 125347154
Test: atest android.display.cts.BrightnessTest
Test: manual, flash phone, get app using API to push corrections, adb shell dumpsys display
Change-Id: Icbb61bb542a49c49f279b865d69d59a542c0e42b
2019-02-25 17:10:37 +00:00
TreeHugger Robot
d138be09df Merge "Add Foldable feature flag" 2019-02-25 16:57:50 +00:00
Howard Chen
dbfc7f4ef2 Merge "Add feature flag for Dynamic Android" am: c1e55147c9
am: 3e51385d47

Change-Id: I2372a014bfe359dd84d43c0ddff8c662ce8684fd
2019-02-25 08:56:18 -08:00
Paul Duffin
70828b499b Merge "Update backwards compatibility support for android.test.base" am: 617e556477
am: f4dfe50594

Change-Id: I9ad5a85431e0ea747fff208430b3a61826674b62
2019-02-25 08:43:04 -08:00
Dario Freni
7d98a45672 Merge "Add "Staged" to API related to staged sessions." 2019-02-25 15:23:17 +00:00
Dario Freni
60a96c1791 Add "Staged" to API related to staged sessions.
Also, throw an IllegalArgumentException is these APIs are called on
sessions that are not marked as staged.

Test: tested new apis with an ad-hoc app. atest RollbackTest
StagedRollbackTest
Fix: 124507718

Change-Id: I3529aaff404d644ab6dad98f29411141e8df865d
2019-02-25 13:09:48 +00:00
Ivan Chiang
a46ade3cc1 Add @RequiresPermission annotations to getCahce and putCache
Add @RequiresPermission annotations to the methods so that
it's clear what permission is protecting these APIs.

Test: make
Change-Id: I203ce997319c7fc8a13e91b55f3c55d844429be8
Fix: 123661724
2019-02-25 11:30:34 +08:00
Siarhei Vishniakou
6e1cdb635f Linkify CLASSIFICATION_AMBIGUOUS_GESTURE
Add a doc link to MotionEvent#CLASSIFICATION_AMBIGUOUS_GESTURE, to make
it easier for readers to cross-reference documentation.

Bug: 125800452
Test: m doc-comment-check-docs
Change-Id: Ic7a5a14d30c0cc3aa57f8bcd6af34e2e684f0437
2019-02-23 22:15:52 -06:00
Ricky Wai
b9616408ad Merge "Do not return AppDetailsActivity in PackageInfo" 2019-02-23 12:00:12 +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
TreeHugger Robot
370b0da014 Merge "Fix View#performHapticFeedback() can block UI thread" 2019-02-23 03:39:53 +00:00
TreeHugger Robot
05675bc0cf Merge "Made AbstractRemoteService.getRemoteRequestMillis() optional." 2019-02-23 03:25:46 +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
Qasid Sadiq
62b67c26c9 Merge "Revert "Fix a11y cache correctness bug"" into pi-dev am: 987ec033ab
am: 24f953a6c2

Change-Id: I38d80cd355ebf044696848d1d4697521cd78183f
2019-02-22 17:23:08 -08:00
TreeHugger Robot
3f9eff103e Merge "Re-throw reflective exceptions" 2019-02-23 01:10:32 +00: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
Ricky Wai
905908f743 Do not return AppDetailsActivity in PackageInfo
Also, update javadoc for LauncherApps.getActivityList()

Bug: 119789943
Test: atest android.content.pm.cts.PackageManagerTest#testGetPackageInfo
Change-Id: I1a183207e6eb880a68811d4c2a5cf77d3f71f0b0
2019-02-23 00:26:57 +00:00
Qasid Sadiq
24f953a6c2 Merge "Revert "Fix a11y cache correctness bug"" into pi-dev
am: 987ec033ab

Change-Id: I00d421256cbda478bf413a2195f14787d09d133c
2019-02-22 15:55:50 -08:00
Chandan Nath
8715260984 Merge "[Multi-user] add PackageInstaller.installExistingPackage with IntentSender which is fired only after the asynchronous restore is complete" 2019-02-22 23:34:04 +00:00
TreeHugger Robot
a9954d9aae Merge "Fixed when ContentCapture is finished." 2019-02-22 23:30:12 +00:00
Ashley Rose
c74a113d28 Re-throw reflective exceptions
Test: atest GeneratedInspectionCompanionProviderTest
Fixes: 125800739
Change-Id: Ifea2c3dc303e255bc704ee34168e250e649519b5
2019-02-22 18:24:18 -05:00
Felipe Leme
544b39cbd2 Changed Content Catpure workflow so it notifies when multiple changes are made.
Prior to this change, it sent a pair TYPE_INITIAL_VIEW_TREE_APPEARING and
TYPE_INITIAL_VIEW_TREE_APPEARED after the initial layout, then it would send invididual events for
the views appeared / disappeared.

This change improves the workflow by also sending this pair of events after each change, which lets
the service know that a bunch of changes were made at the same layout pass.

Test: atest CtsContentCaptureServiceTestCases # which was updated to listen to the new events
Test: m update-api

Bug: 125395044

Change-Id: Ied9def9c95dd0f7711f59bccb2cc89a766fdc36b
2019-02-22 14:57:51 -08:00
John Reck
e57475e6c9 Address API council feedback
Bug: 125027187
Bug: 125026102
Bug: 125026678
Bug: 125026234
Bug: 125027586
Bug: 125026476
Bug: 125026103
Bug: 125026237
Bug: 125027248
Bug: 125026475
Bug: 125027487
Test: RenderNodeTests
Change-Id: Ic63ea7a3cfe359a7dff0c1b46e534e499f7e928b
2019-02-22 14:24:28 -08:00
Yiwei Zhang
5ccf21b382 Merge "Game Driver: process sphal libraries in GPU service" 2019-02-22 21:45:56 +00:00
Keun-young Park
42118d20ee Add startUserInForegroundWithListener to IActivityManager
Bug: 124797617
Test: Reboot the system and confirm user starting / unlocking with the call.

Change-Id: Id22cbc53a42c7a2e0bfbe006a871a6ba45e5c6d1
2019-02-22 13:11:32 -08:00
Ricky Wai
ccac071827 Merge "SystemAPI for setting app details activity state" 2019-02-22 20:19:03 +00:00
Felipe Leme
d58c1eaada Improved how Content Capture events are flushed when activity is resumed / paused.
We were flushing right after the activity resumed, but the relevant events (views added / removed)
were not generated yet, which made such flushes useless.

This CL changes the workflow to flush them after the ViewRoot finishes doing its work.

Test: atest CtsContentCaptureServiceTestCases

Bug: 125395044
Bug: 122315042

Change-Id: I05bf27069b00c285643b2d23ad6708a6ad7bc8f3
2019-02-22 12:14:36 -08:00
Fabian Kozynski
171f40d8a7 Create setting screen from Notification Assistant
Test: atest
Fixes: 120852765
Change-Id: I90b22daa67f73809697fd629dabec22ef991de54
2019-02-22 14:18:58 -05:00
Felipe Leme
6fef91e839 Fixed when ContentCapture is finished.
The initial behavior cop^H^H^H based on Autofill, which only closes the session when the activity
finishes. But for content capture we must always close the session when the activity is stopped.

Test: manual verification
Fixes: 125628737

Change-Id: I064d4ace97721dd8fb20075c02e1f059ecbf942a
2019-02-22 11:15:03 -08:00