49289 Commits

Author SHA1 Message Date
Felipe Leme
24aae15218 Added a new AutofillCallback.EVENT_INPUT_UNAVAILABLE event.
This event is called when:

- After notifyViewEntered() when autofill is disabled.
- After service returns an "empty" FillResponse to FillCallback.onSuccess().

BUG: 36056207

Test: LoginActivityTest.testAutofillCallbackDisabled
Test: LoginActivityTest.testAutofillCallbackNoDatasets
Test: VirtualContainerActivityTest.testAutofillCallbackDisabled
Test: VirtualContainerActivityTest.testAutofillCallbackNoDatasets

Change-Id: I7b8636473f738bf600aa96b28c77827b2cc78815
2017-03-16 19:40:22 -07:00
Karthik Ravi Shankar
e6ccc3e816 Merge "Add API to get compatibility display id" 2017-03-17 02:34:07 +00:00
Philip P. Moltmann
389d1c2b43 Merge "TRON log important auto-fill events" 2017-03-17 02:23:35 +00:00
TreeHugger Robot
85fcc0bde8 Merge "IBiometricsFingerprint uses "default" service name" 2017-03-17 01:19:51 +00:00
TreeHugger Robot
bdc813a6ea Merge "Change vold cryptkeeper permissions to be more sensible" 2017-03-17 01:15:11 +00:00
Yifan Hong
d8f3fe9421 Merge "Start android.frameworks.sensorservice@1.0 in system_server" 2017-03-17 00:58:14 +00:00
Fyodor Kupolov
ef1ab44024 Merge "Handle stopped users in onCleanupUser" 2017-03-17 00:14:03 +00:00
Andrew Zeng
18a8af21b5 Merge "Fix NPE in LockSettingsService." into cw-f-dev am: 4aff3d53ef am: a01e2212c8
am: d4e88e2642

Change-Id: Ie7d409e8ef3ec5c3201bcaf0ae125ca71dc10c08
2017-03-16 23:52:44 +00:00
Andrew Zeng
d4e88e2642 Merge "Fix NPE in LockSettingsService." into cw-f-dev am: 4aff3d53ef
am: a01e2212c8

Change-Id: Id333403e3a989e233a97760b716055b3abd186d6
2017-03-16 23:40:09 +00:00
Glenn Kasten
24b7831f8b Merge "USB audio: fix imports" 2017-03-16 23:37:42 +00:00
Andrew Zeng
a01e2212c8 Merge "Fix NPE in LockSettingsService." into cw-f-dev
am: 4aff3d53ef

Change-Id: I17880622c489df79eeea5116b3afe3c462b06554
2017-03-16 23:22:05 +00:00
Tadashi G. Takaoka
576de9fb77 Merge "Add has-feature shell command to PackageManagerService" 2017-03-16 23:17:15 +00:00
TreeHugger Robot
cd1c654af1 Merge "Dont send broadcasts to manifest-receivers in IA" 2017-03-16 23:16:34 +00:00
Andrew Zeng
4aff3d53ef Merge "Fix NPE in LockSettingsService." into cw-f-dev 2017-03-16 23:03:06 +00:00
Glenn Kasten
967e832200 Merge "Add units to variable names" 2017-03-16 23:00:29 +00:00
Philip P. Moltmann
7b77116802 TRON log important auto-fill events
Example log from
android.autofillservice.cts.LoginActivityTest#testAutoFill#testAutoFillOneDatasetAndSave
(translated from numbers of human readable string):

AUTOFILL_SESSION_STARTED
   package=android.autofillservice.cts
AUTOFILL_REQUEST
   type=TYPE_SUCCESS
   package=android.autofillservice.cts
   FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_DATASETS=1
AUTOFILL_FILL_UI
   type=TYPE_ACTION
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_DATASETS=1
   FIELD_AUTOFILL_FILTERTEXT_LEN=0
AUTOFILL_DATASET_APPLIED
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_VALUES=2
   FIELD_AUTOFILL_NUM_VIEWS_FILLED=2
AUTOFILL_SAVE_UI
   package=android.autofillservice.cts
   FIELD_AUTOFILL_NUM_IDS=2
AUTOFILL_DATA_SAVE_REQUEST
   type=TYPE_SUCCESS
   package=android.autofillservice.cts
   FIELD_AUTOFILL_SERVICE=android.autofillservice.cts
AUTOFILL_SESSION_FINISHED
   package=android.autofillservice.cts

Test: Ran auto-fill tests and looked at event log.
Change-Id: I58aaa58e4435e7d04c8cd91878411943d3eb13de
2017-03-16 15:41:33 -07:00
Yifan Hong
25d5eaa14c IBiometricsFingerprint uses "default" service name
The getService() and registerAsService() methods of interface objects
now have default parameters of "default" for the service name. HALs
will not have to use any service name unless they want to register
more than one service.

Test: fingerprint works

Bug: 33844934
Change-Id: Ie5c03ff0e2fc38a1e41e2c292fc76b7592c33eb7
2017-03-16 15:25:43 -07:00
Fyodor Kupolov
d249e0892a Merge "Clear mGuestRestrictions before loading from disk" 2017-03-16 21:40:32 +00:00
Bryce Lee
6b9b130c98 Merge "Fix AppWindowTokenTests#testLandscapeSeascapeRotationByPolicy" 2017-03-16 21:39:21 +00:00
TreeHugger Robot
4fd6eb6192 Merge "Avoid trying to grant non-ephemeral permissions to instant apps" 2017-03-16 21:27:38 +00:00
Chad Brubaker
abd2b66e96 Dont send broadcasts to manifest-receivers in IA
Instant Apps should only be started via user interaction and only
support having runtime receivers.

Test: Broadcast not sent to an Instant App
Change-Id: Ic2cfb33e8ca6a99045ad1cfd6c79f7d3e8d41001
2017-03-16 14:04:18 -07:00
Fyodor Kupolov
b9da4e4637 Handle stopped users in onCleanupUser
This will also take care of the case when the user is removed.

Previously CE database wasn't closed after user was stopped.

Bug: 35988361
Test: Create u10 - switch - add account - switch to u0 - stop u10
Test: Create u10 - switch - add account - switch to u0 - remove u10
Change-Id: I6df61a8b1d00b28f2985d60861dd1b74e3e5942b
2017-03-16 13:01:12 -07:00
Yifan Hong
26b421f8e0 Start android.frameworks.sensorservice@1.0 in system_server
Bug: 35219747
Test: marlin boots
Test: lshal -ipm | grep android.frameworks.sensorservice@1.0

Change-Id: I67dfb217d1b568e140cefce0bdba3f8f4dbe679c
2017-03-16 12:15:05 -07:00
TreeHugger Robot
0ff074047d Merge "Allow non-fullscreen activities to set requested orientation." 2017-03-16 18:29:28 +00:00
Calin Juravle
e1d8f2da83 Merge "Set pm.BackgroundDexOptService as the source of true" 2017-03-16 17:59:32 +00:00
TreeHugger Robot
587b60282e Merge "frameworks/base: Add APCT tests to the device-tests suite." 2017-03-16 17:35:12 +00:00
TreeHugger Robot
da3aaf7707 Merge "Protect against weird null case" 2017-03-16 16:41:02 +00:00
Jorim Jaggi
453cae3692 Protect against weird null case
No time to figure out what's going on, but this null check helps

Test: Dock app, make fullscreen, hammer home button
Change-Id: I3eb94a8138bc1483b1711556696bcbbaee6084e7
Bug: 36339388
2017-03-16 15:01:05 +00:00
Julia Reynolds
9bfba59417 Better deletions
- Allow apps to delete notification groups (which cascade to delete all
channels therein)
- Allow apps to get their groups, so they know what they might want to
delete
- Don't throw if someone tries to delete something that already doesn't
exist.

Change-Id: I5f6e25497c5da1e57b52737586e86097332f88f9
Fixes: 36245468
Fixes: 36127382
Test: runtest systemui-notification, cts
2017-03-16 14:32:50 +00:00
Julia Reynolds
41103f4212 Support for showing deleted channel count in settings.
Bug: 36119790
Test: runtest systemui-notification
Change-Id: Ie30243314d64ded66267d0dc85cc0ad940d917f8
2017-03-16 14:24:17 +00:00
Julia Reynolds
1d97e6a0c1 Remove resource id channel/group name fields
Apps can listen for the LOCALE_CHANGED broadcast to
change names if needed.

Fixes: 35336590
Test: runtest systemui-notification, cts, manual
Change-Id: I62d2778f61e99200692755a6f268828a374837e6
2017-03-16 14:20:28 +00:00
TreeHugger Robot
87f0f83442 Merge "Fix SynthethicPassowrdManager unit tests" 2017-03-16 13:49:16 +00:00
Rubin Xu
8b30ec3f49 Fix SynthethicPassowrdManager unit tests
Mock DevicePolicyManager in the unit tests.

Bug: 34600579
Test: runtest frameworks-services -c com.android.server.SyntheticPasswordTests
Change-Id: Ieca30a74d7d9d867994e912d188231510f54e76c
2017-03-16 11:55:27 +00:00
Rob Carr
287452cf40 Merge "Delete some SurfaceView support code." 2017-03-16 05:07:10 +00:00
Erik Kline
b7a55f4a4b Merge "Add blocking and retrying wrappers for INetd uses." am: ba8c613e16 am: 143d0853a2
am: 300c56a977

Change-Id: Ia9d45d8fd636e918c8299b26163de0650f8ddac5
2017-03-16 02:58:10 +00:00
Erik Kline
300c56a977 Merge "Add blocking and retrying wrappers for INetd uses." am: ba8c613e16
am: 143d0853a2

Change-Id: I8957b3506f92257cfa052580156d7a87645d11b2
2017-03-16 02:54:02 +00:00
Erik Kline
143d0853a2 Merge "Add blocking and retrying wrappers for INetd uses."
am: ba8c613e16

Change-Id: Iae8ea51852ed6991e3b9ed89297c8a932b9224f3
2017-03-16 02:49:36 +00:00
Treehugger Robot
ba8c613e16 Merge "Add blocking and retrying wrappers for INetd uses." 2017-03-16 02:42:17 +00:00
Tadashi G. Takaoka
be5782f4f8 Add has-feature shell command to PackageManagerService
This PackageManagerService's has-feature shell command may be useful
to write host-side CTS test.

Bug: 35336548
Test: Run "adb shell cmd package has-feature android.hardware.nfc 0" and
      verify that it prints true on Nexus 5X.
Test: Run "adb shell cmd package has-feature android.hardware.gamepad" and
      verify that it prints false on Nexus 5X.

Change-Id: Icacfd0ad2b83a3c276e711a1f22d4d66112ba932
2017-03-16 11:00:29 +09:00
Calin Juravle
91d40f1baa Set pm.BackgroundDexOptService as the source of true
The real dexopt maintainance job is
com.android.server.pm.BackgroundDexOptService, and not
com.android.server.BackgroundDexOptJobService

Partial revert of commit 096d304ae3d85c1bfcda1a1d9cd4eb13d0815500.

Test: manual inspection
Bug: 36140426
Change-Id: I983ac91117f107282095fa7eefdbce08e0dcfce3
2017-03-15 18:55:25 -07:00
TreeHugger Robot
5bf03b7640 Merge "Allow users to manually request Autofill." 2017-03-16 01:33:46 +00:00
Fyodor Kupolov
eafee02fdc Clear mGuestRestrictions before loading from disk
Only guest user restrictions that are set to true are saved in
writeUserListLP. When loading <guestRestrictions>, they are applied
on top of mGuestRestrictions filled with default values.
Restrictions set to false are reset and this was causing the issue.

Bug: 33250860
Test: Manual
Change-Id: I6e5c792a3adcf2116bb26fd5feba551d7edcb28e
2017-03-15 18:14:58 -07:00
Casey Burkhardt
98d1dba2ab Merge "Display magnification via the nav bar Accessibility Button" 2017-03-16 00:26:53 +00:00
Chad Brubaker
64814139ad Avoid trying to grant non-ephemeral permissions to instant apps
Fixes: 36272655
Test: `adb install -g --ephemeral` does not crash if an app requests a
non-ephemeral permission

Change-Id: I18a6fa7697528a2a35b42e36f7010b687be23f73
2017-03-15 16:00:37 -07:00
TreeHugger Robot
1176f7b2b0 Merge "More whitelisting" 2017-03-15 22:13:26 +00:00
Simran Basi
473a16e492 frameworks/base: Add APCT tests to the device-tests suite.
This CL adds the APCT tests within this project to
a similar suite as CTS known as device-tests.

The current method of running APCT tests in the infrastructure
is unaffected.

Bug: 35882476
Test: `make dist device-tests -j` and local builds of
      continuous_instrumentation_tests & continuous_native_tests

Change-Id: Ifa382fe691842c1cd76897775b9e2a1653449eb5
2017-03-15 14:46:27 -07:00
Robert Carr
d0a2cd3061 Delete some SurfaceView support code.
repositionChild, performDeferredDestroy, and SurfaceControl with
background were all only used by SurfaceView and are now no longer
required in the wm.

Test: Only red.
Change-Id: Icb773572e6d6202f78a6d23b2431fbfacbe272c6
2017-03-15 14:40:20 -07:00
Casey Burkhardt
74922c63e1 Display magnification via the nav bar Accessibility Button
Adds support for invoking display magnification by first selecting
the Accessibility Button, then touching an area of the screen to
magnify.

Bug: 30960346
Test: Manual
Change-Id: Ifd8a355562f204182e34bd37f71a3637d85cf0e1
2017-03-15 14:12:51 -07:00
Winson Chung
e9a2ae61de Allow non-fullscreen activities to set requested orientation.
- The requested orientation will apply once the activity is returned to
  the fullscreen stack.

Bug: 36240543
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: testSetRequestedOrientationWhilePinned
Change-Id: I152bb77d8f9eda4ffdb64a03c16a8b014a74a0a2
2017-03-15 14:12:15 -07:00
TreeHugger Robot
588178ecb9 Merge "Clipping before keyguard dismiss animation occurs" 2017-03-15 20:49:28 +00:00