314629 Commits

Author SHA1 Message Date
Andrii Kulian
7e215d763d Report correct display id in stack info
Bug: 37101202
Test: adb shell am stack list
Change-Id: I16ace089f8bae5ec1090b27e9d9a59657e9496dd
2017-04-26 18:33:28 -07:00
Daniel Sandler
f9e5395081 Merge "Avoid ClassCastException in ArrayMap." into oc-dev 2017-04-27 01:23:57 +00:00
Andrii Kulian
cadaccedac Hide onMovedToDisplay callback
There are no usages in O, so not exposing it for now.

Bug: 37638275
Test: android.server.cts.ActivityManagerDisplayTests
Change-Id: I30a8549191ac1cfad0fb1e4db71a702862c0e503
2017-04-26 18:09:54 -07:00
Felipe Leme
decd887f01 Autofill binding permission fixes.
- Removed deprecated BIND_AUTO_FILL
- Renamed BIND_AUTOFILL to BIND_AUTOFILL_SERVICE
- Kept BIND_AUTOFILL as @hide
- Fixed the permission code

The permission check was actually ignored; it was probably broken when we
introduced support to settings.

Fixes: 37723410
Bug: 37563972
Test: manual verification with existing client
Test: CtsAutoFillServiceTestCases pass

Change-Id: If3abdcb0ae850f0a327bfdbb9ca6c44a24823047
2017-04-26 17:57:53 -07:00
Andrii Kulian
1ad18abedb Merge "Check only task's override config for adjusting bounds" into oc-dev 2017-04-27 00:46:09 +00:00
TreeHugger Robot
ddd55793bc Merge "Temporary tracking of JobStatus unprepare" into oc-dev 2017-04-27 00:33:21 +00:00
Winson Chung
b54b65b001 Fixing issue with lingering dismiss PiP overlay.
- Always try and remove the dismiss overlay when animating touch ends, or
  if the input consumer is unregistered to handle cases where the
  interaction is interrupted by the pip animation.

Bug: 37309693
Test: Intermittent, enter pip and try to tap and then tap-drag the PIP
Change-Id: I05f360f1d9d264590725e13eb2cc9254a3f21eef
2017-04-26 17:20:39 -07:00
Winson Chung
ef16fa9842 Fix issue with dismiss scrim not spanning full screen
Bug: 37309741
Test: Launch PIP activity, go to landscape, drag and ensure dismiss
      overlay spans fullscreen

Change-Id: I449c9f2bdaf01357ebdb652665e884c1ada5ea46
2017-04-26 17:20:27 -07:00
Winson Chung
fef058d7d0 Prevent IME adjustment for stacks not affected by docked stack resizing
Bug: 37358175
Test: Resize docked stack while PIP is up
Change-Id: I4f057f6671e8c164624359bf3532f9a22fdf768e
2017-04-26 17:20:14 -07:00
Winson Chung
709904f800 Updating PiP API and documentation.
- Renaming PictureInPictureArgs to PictureInPictureParams, making it
  immutable and built with a builder class.  In addition, making the
  aspect ratio rational.
- Moving the check to get max number of actions to the activity to have
  more flexibility going forward
- Also ensures that enterPictureInPictureMode() returns true if the
  activity is already in PiP mode.
- Will follow up with CL to remove PictureInPictureArgs and related methods
  once this CL drops

Bug: 35765211
Bug: 37638323
Bug: 37637423
Bug: 37636674
Bug: 36342780
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: android.app.cts.PictureInPictureParamsBuilderTest

Change-Id: I54a487d55a59c9ce8ac7bd6c80c61209c8b26224
Signed-off-by: Winson Chung <winsonc@google.com>
2017-04-26 17:14:19 -07:00
Felipe Leme
62bb027d12 Merge "Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE." into oc-dev 2017-04-26 23:46:21 +00:00
Makoto Onuki
397335d926 Merge "Enhance DeviceAdminService javadoc and remove TODO." into oc-dev 2017-04-26 23:34:00 +00:00
TreeHugger Robot
73614be4c5 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-26 23:26:48 +00:00
TreeHugger Robot
62b2950374 Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-26 23:25:54 +00:00
TreeHugger Robot
16e7c7f0df Merge "Import translations. DO NOT MERGE" into oc-dev 2017-04-26 23:24:33 +00:00
Seigo Nonaka
25c2cdc052 Merge "Font API clean up" into oc-dev 2017-04-26 23:20:01 +00:00
Makoto Onuki
b4e05340e4 Merge "Only show progress log every 10%" into oc-dev 2017-04-26 23:18:49 +00:00
Makoto Onuki
e92f79450a Change IMPORTANCE_PERCEPTIBLE_DEPRECATED to IMPORTANCE_PERCEPTIBLE_PRE_26
Also make sure to return the legacy value from
RunningAppProcessInfo.importance.

Bug: 37636026

Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsAppTestCases -t 'android.app.cts.ActivityManagerTest#testGetRunningAppProcesses'
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsAppTestCases -t 'android.app.cts.ActivityManagerTest#testGetMyMemoryState'
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l INFO -m CtsAppTestCases -t 'android.app.cts.AlertWindowsTests'
Change-Id: Ie04e4dfa40c28ea391ae5ce3c769c6f8ee70a43d
2017-04-26 16:12:43 -07:00
Christopher Tate
b164f018dd Temporary tracking of JobStatus unprepare
For help diagnosing bug 37209909

Test: manual
Change-Id: If93ee0d25f462d5c8e954d3d7cbdc280b5d18c7e
2017-04-26 23:00:55 +00:00
Tony Mak
3165743c50 setAffiliationIds and getAffiliationIds uses set instead of list
Didn't use @remove because java doesn't support two methods differs from
the return type only.

Test: cts-tradefed run cts-dev --module DevicePolicyManager --test com.android.cts.devicepolicy.DeviceOwnerTest#testLockTask_unaffiliatedUser
Test: runtest -x frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: cts-tradefed run cts-dev --module DevicePolicyManager  --test com.android.cts.devicepolicy.DeviceOwnerPlusProfileOwnerTest

Change-Id: Ic7c7221ef5e680a6765f028c2ab73d4c2f908c58
Fix: 37622682
2017-04-26 22:42:19 +00:00
Phil Weaver
d7e1fb89d9 Rename FingerprintGestureCallback.onGesture
Renaming to onGestureDetected.

Deprecating onGesture. It needs to be removed for release.
Leaving it in to avoid breaking TalkBack, which is using it.

Bug: 37708057
Test: Accessibility unit and CTS tests still pass.
Change-Id: Icd66889216fc978ad6d27aa83a8c8d13869daad3
2017-04-26 15:20:24 -07:00
Doris Liu
02eabdff6b Refine JavaDocs for AnimatorSet#getCurrentPlayTime()
This is to address API concil's feedback.

BUG: 37673139
Test: make -j20 docs
Change-Id: I2e360c7996f8368c77c30c55271e006f94736f90
2017-04-26 22:08:24 +00:00
Sudheer Shanka
34217511bc Rename ActivityMonitor.onMatchIntent to onStartActivity.
Fixes: 37672383
Test: cts-tradefed run singleCommand cts-dev --module CtsAppTestCases -t \
      android.app.cts.Instrumentation_ActivityMonitorTest

Change-Id: Ic3fdba576232f0a05454dde8ea482ea714aeee3d
2017-04-26 14:52:56 -07:00
Conrad Chen
a16d465a18 Merge "TIF: fix javadoc of recorded programs" into oc-dev 2017-04-26 21:48:01 +00:00
Rob Carr
d00cb1c48a Merge "More targeted version of "Correct animation glitch for pinned stack."" into oc-dev 2017-04-26 21:43:56 +00:00
Rob Carr
bd1ef76684 Merge "Fix logspam NPE." into oc-dev 2017-04-26 21:43:30 +00:00
George Mount
a0ffafffdd Address API council feedback.
Bug 37636027

Change FragmentTransaction#setAllowOptimization() to
FragmentTransaction#setReorderingAllowed().

Test: I729dc05bde1f6eba6ff8d38eb15f65de777c14bb
Change-Id: I24c35aad95ffa14d2e2fa092ae71d3d459e6d648
2017-04-26 14:37:57 -07:00
TreeHugger Robot
1c2964bdeb Merge "Fix BackupSettingsTest (update blacklists)" into oc-dev 2017-04-26 21:28:29 +00:00
Android Build Merger (Role)
9e3c12e173 Merge "DO NOT MERGE: change SET_DISPLAY_OFFSET namespace to com.android.permission.* This is to avoid API Level 25 CTS issues. am: 31add96517 am: a701205315 -s ours" into oc-dev 2017-04-26 21:08:11 +00:00
Alison Cichowlas
776f480c49 Merge "Use uptimeMillis instead of currentTimeMillis for interval calculation." into oc-dev 2017-04-26 21:07:55 +00:00
Julius D'souza
17fe2289a2 DO NOT MERGE: change SET_DISPLAY_OFFSET namespace to com.android.permission.* This is to avoid API Level 25 CTS issues. am: 31add96517
am: a701205315  -s ours

Change-Id: I001aea36b99da8cf3c209fb3c5c316200b0d08a2
2017-04-26 21:06:55 +00:00
Chad Brubaker
0606861de5 Allow apps to provide the Instant App installer extra information
Apps may want to provide additional context information to the instant
app installer in order to allow the installer to make smarter choices
about the context of the launch. This CL adds a bundle to
ActivityOptions that is sent to the Installer (if an Instant App is
launched) but not to any other application if something else on the
device handles the Intent instead.

Bug: 35180854
Test: manual
Change-Id: Ifc69a420a9c68041b39acd8a4b83db8a789822a6
2017-04-26 14:01:48 -07:00
Julius D'souza
4334664267 DO NOT MERGE: change SET_DISPLAY_OFFSET namespace to com.android.permission.* This is to avoid API Level 25 CTS issues. am: 31add96517
am: a701205315  -s ours

Change-Id: I2c67e135cfa5d423acd322d1a797222c7018bb2f
2017-04-26 20:54:04 +00:00
TreeHugger Robot
ddb460c18f Merge "Add ability to fling to dismiss PIP from anywhere" into oc-dev 2017-04-26 20:52:02 +00:00
Julius D'souza
a701205315 DO NOT MERGE: change SET_DISPLAY_OFFSET namespace to com.android.permission.* This is to avoid API Level 25 CTS issues.
am: 31add96517

Change-Id: Id12dd73ed18fee0b874af364bad954d39384287f
2017-04-26 20:47:26 +00:00
Abodunrinwa Toki
146d0d4f6d SmartSelection: Use downloaded model file.
This cl introduces support for reading the smart selection model
file downloaded via ConfigUpdater. It decides on whether to use this
file based on the language and version of the model file.

Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Bug: 34780396
Change-Id: Ie17b9908a0b4eac16a671b0bd633a89da7bc3fee
2017-04-26 21:31:16 +01:00
Eugene Susla
a5ccbbc169 Expose Companion API via shell command
Usage:
adb shell cmd companion_device ...

Test: Call each subcommand and ensure it works
Change-Id: I383995221384013b798fdd1c30a2846e14f7ad06
2017-04-26 20:25:27 +00:00
Hyungtae Kim
486a202164 Merge "MediaFrameworkTest: compare media type only for supported media check" into oc-dev 2017-04-26 20:05:18 +00:00
Hall Liu
f18e050007 Merge "Remove default public ctor from RttModifyStatus" into oc-dev 2017-04-26 20:04:32 +00:00
Bryce Lee
3345c4ea96 Don't call adjustFocusedActivityStackLocked on finished activity.
When an activity is finished, adjustFocusedActivityStackLocked is
already called on the associated record and the task association is
lost. Calling it again is redundant and leads to a crash as we
assume the task is still associated with the activity.

Change-Id: Ie7cc9ad8b1542d7415b7409e539c88d3b4ec8dcd
Fixes: 37329424
Test: bit FrameworksServicesTests:com.android.server.am.ActivityStackTests#testStopActivityWhenActivityDestroyed
2017-04-26 12:45:11 -07:00
TreeHugger Robot
dc088a644d Merge "Gather shared libs for split apks based on dependencies." into oc-dev 2017-04-26 19:44:20 +00:00
Robert Carr
2117aaf5ae More targeted version of "Correct animation glitch for pinned stack."
See the referenced CL "Correct animation glitch" for an explanation of
why an exception in this area is required. That CL based the exception
off the dummy animation state, however it seems we also enter this
state in various docked transitions but in that case the dummy animation
will have the incorrect transforms referenced by the original comment.
Now we target the fix on the bounds animating state instead.

Bug: 37448295
Bug: 36777039
Bug: 37511473
Test: Dock app from recents, no stretching. Auto-pip app, doesn't get stuck in top-left. Yay!
Change-Id: I5c9a7384622de9cedcc4be4dec7caacf58c683eb
2017-04-26 12:38:52 -07:00
Lucas Dupin
3fd72ff2e7 DO NOT MERGE Revert "Wallpaper color extraction API stub"
This reverts commit c40608c041b1eb8b8cb4b96347c7ca29f4f79169.

Change-Id: Ia202f4b48b8ba22497db8aa97ba53d412f7b7bd5
2017-04-26 19:28:10 +00:00
Michal Karpinski
034a83f415 Fix BackupSettingsTest (update blacklists)
Adjust blacklists to add new Settings that are not backed up.
I don't personally think any of them are candidates for being backed up.

Remove AUTOFILL_SERVICE from blacklist since it's now being backed up.

Bug: 37684646
Test: mmma -j40 frameworks/base/core/tests/coretests, then
adb install -r ${ANDROID_PRODUCT_OUT}/data/app/FrameworksCoreTests/FrameworksCoreTests.apk, then
adb shell am instrument -w -e class android.provider.SettingsBackupTest com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Change-Id: Iab8879b28289094f210c7612cc6ad1be3ca9a81c
2017-04-26 20:07:52 +01:00
Felipe Leme
bb81092a31 Provide support for optimized ACTION_REQUEST_SET_AUTOFILL_SERVICE.
Also removed obsolete 'cmd autofill save'

Bug: 2153814
Test: manual verification

Change-Id: I082e6bb098e9be5d9e26d0941efcf6f28ab01e1d
2017-04-26 12:07:17 -07:00
Makoto Onuki
cbc0d11d21 Enhance DeviceAdminService javadoc and remove TODO.
Test: Javadoc only
Bug: 37706621
Change-Id: Iac09675ca923adf40aef8f1871ddd0de797d4a08
2017-04-26 12:03:59 -07:00
Andrii Kulian
9425116bd7 Check only task's override config for adjusting bounds
We're only using task override when setting bounds, so no need
to update if merged override config is non-empty but task override
is empty.

Bug: 37648662
Test: Existing tests still pass
Change-Id: I73fd91983bf562dc888081b2a3d590b629aad255
2017-04-26 18:51:34 +00:00
Felipe Leme
5f7979222d Merge "Provide a way to set AutofillId on ViewStructure." into oc-dev 2017-04-26 18:38:21 +00:00
Amith Yamasani
86687827f3 Improve docs for AssistStructure#isHomeActivity
Change-Id: I84b5686c6d3d81f14dc56f72af985ffe686c0e0a
Fixes: 37558097
Test: make offline-sdk-docs
2017-04-26 11:35:15 -07:00
Sundeep Ghuman
b57b3dfc3e Merge changes from topic 'wifitracker' into oc-dev
* changes:
  Use synchronization rather than locking in WifiTracker.
  Remove all pending callbacks in stopTracking.
2017-04-26 18:32:48 +00:00