Commit Graph

309172 Commits

Author SHA1 Message Date
Rubin Xu
7e712f128d Merge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a am: 0f2c853889" into nyc-mr2-dev-plus-aosp
am: 90629b8789  -s ours

Change-Id: I7567f5cb08144ad8331e0114a64ba701ceb7cca7
2017-02-10 12:38:03 +00:00
Rubin Xu
9054145d5e Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a am: 060cde9802
am: 6ee5a0c8a5  -s ours

Change-Id: Idb3567f6db884a03d05bd4135e4dc53e44e325e4
2017-02-10 12:36:52 +00:00
Android Build Merger (Role)
90629b8789 Merge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a am: 0f2c853889" into nyc-mr2-dev-plus-aosp 2017-02-10 12:33:40 +00:00
Rubin Xu
5d1aa36475 Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a
am: 0f2c853889

Change-Id: Icfdd2a6027c75e43c78f85109341ae088102548b
2017-02-10 12:32:57 +00:00
Rubin Xu
6ee5a0c8a5 Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9 am: f85a20702a
am: 060cde9802

Change-Id: Ic591b48e298823b46f8d1fc25b0e01a82cc263b5
2017-02-10 12:32:48 +00:00
Rubin Xu
060cde9802 Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9
am: f85a20702a

Change-Id: I3861a5229fdb55f7dc7fd57e1706b34f9847d492
2017-02-10 12:28:56 +00:00
Rubin Xu
0f2c853889 Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9
am: f85a20702a

Change-Id: If9e569ba66dc9e5876fab5ffd2a6c9b0a9fb923b
2017-02-10 12:28:47 +00:00
Rubin Xu
f85a20702a Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce
am: 72074e3ab9

Change-Id: I1cd4db65e0fe8c92628f22f94fe937cf64f2da04
2017-02-10 12:24:43 +00:00
Rubin Xu
72074e3ab9 Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293
am: 824c8284ce

Change-Id: If4dfa2d7af980c91ec3d3f8faa7e7f4a39350c82
2017-02-10 12:20:18 +00:00
Rubin Xu
824c8284ce Merge "Fix uri permission grant on remote bug report uri" into nyc-dev
am: 42f2e80293

Change-Id: Ic167e10a205b5c8f9df81cd20a6f08359d3807f4
2017-02-10 12:16:19 +00:00
TreeHugger Robot
42f2e80293 Merge "Fix uri permission grant on remote bug report uri" into nyc-dev 2017-02-10 12:11:00 +00:00
Shreyas Basarge
ee1f9b26a8 Merge "Fix for bmgr whitelist" 2017-02-10 11:58:32 +00:00
Stefanot
b1f573dca3 Add monitoring to backup in BackupManager.
This is the first CL of many that will add instumentation to
backup/restore operation in the BackupManager. For more details please
point to:
https://docs.google.com/document/d/1sUboR28LjkT1wRXOwVOV3tLo0qisiCvzxIGmzCVEjbI/edit#
This first Cl introduces 3 events that we sent to the monitor.

Test: ag/1858962 (same topic)

BUG: 34873525

Change-Id: I6c338b6fd9f4d7c8670dac201897250b6b170677
2017-02-10 11:03:08 +00:00
Andrii Kulian
ada1029eb8 Update visibility logic in realStartActivityLocked
ActivityStackSupervisor#realStartActivityLocked method is updated
to perform some actions regardless of whether we're making acitivity
resumed or not. This is possible because at the end in either way
activity will be visible.

Bug: 29619461
Test: Manual
Change-Id: If83ee38683e7ece52a0ae0a70bec0bdce6a195d3
2017-02-09 23:19:29 -08:00
Yohei Yukawa
c4e4491735 Improve ACTION_PACKAGE_CHANGED handling in IMMS
This CL fixes a false negative case when handling
ACTION_PACKAGE_CHANGED in IMMS#MyPackageMonitor with greatly reducing
unnecessary false positives cases as well.

PackageMonitor#onPackageChanged(), which is the default handler of
ACTION_PACKAGE_CHANGED, returns true when and only when the entire
package state is changed to let InputMethodManagerService (IMMS)
rebuild the list of available IMEs when it returns true. Here we have
a false negative case and false positive cases.

Case 1 - false negative (Bug 28181208)

  If ACTION_PACKAGE_CHANGED was about some components not the
  entire package itself, currently MyPackageMonitor#onPackageChanged()
  returns false and IMMS fails to rebuild the list of available IMEs.

Case 2 - false positive (contributing to Bug 32343335)

  Even if ACTION_PACKAGE_CHANGED was about a package that implements
  no IME service at all, currently MyPackageMonitor#onPackageChanged()
  returns true and IMMS ends up with rebuilding the list of avilable
  IMEs unnecessarily. Note that package replacement is a different
  story that should be dealt with ACTION_PACKAGE_{ADDED, REMOVED}.

For both cases, luckily we can easily ask PackageManager to give the
list of relevant package names that might contain IMEs regardless of
enabled/disabled state, which is exactly what we want to use the watch
list for ACTION_PACKAGE_CHANGED events.

For the case 3, we can just check the current user ID.

Test: Manually verified as follows.
       1. adb root
       2. adb install -r LatinIME.apk
       3. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           recognized by IMMS.
       4. adb shell pm disable com.android.inputmethod.latin/.LatinIME
       5. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           no longer recognized by IMMS.
       6. adb shell pm enable com.android.inputmethod.latin/.LatinIME
       7. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           recognized by IMMS again.
Test: Manually verified as follows.
       1. Build a custom APK LatinIME_no_ime.apk that has no input
          method service.
       2. adb install -r LatinIME_no_ime.apk
       3. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           not recognized by IMMS.
       4. adb install -r LatinIME.apk
       5. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           recognized by IMMS.
       6. adb install -r LatinIME_no_ime.apk
       7. adb shell dumpsys input_method
           Make sure that com.android.inputmethod.latin/.LatinIME is
           no longer recognized by IMMS.
Bug: 32343335
Fixes: 28181208
Change-Id: I7b69c349318ce06a48d03a4468cf2c45bfb73dc2
2017-02-10 06:58:05 +00:00
Andrii Kulian
250d653325 Allow destroying display content on removal
This CL sets the behavior for displays when they are removed.
For public displays by default all content will be moved to the
primary display and become focused. For private displays default
behavior is to destroy all content - first it moves stacks from
the secondary display to the primary display to the bottom, then
it destroys all activities in those stacks.

This CL adds two specified behaviors as modes, so in future these
rules might be altered if needed.

Bug: 34263289
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testContentDestroyOnDisplayRemoved
Change-Id: I3f89f06ff82cb4b487df58a86ba3b146a32cbd00
2017-02-09 22:45:19 -08:00
TreeHugger Robot
946346e872 Merge "Fix tinting and sizing of tuner lock screen shortcuts" 2017-02-10 06:36:08 +00:00
Sooraj Sasindran
2598baa1f3 Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am: 730c2d9c72 -s ours am: bae8d7a8c4 -s ours
am: 186c0839d8  -s ours

Change-Id: Ib31f1fbceb2fdc008500ffed8a765baa84d382a6
2017-02-10 06:01:49 +00:00
Sooraj Sasindran
186c0839d8 Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am: 730c2d9c72 -s ours
am: bae8d7a8c4  -s ours

Change-Id: I352f7dc305e64fa5e82bd3cccd9015732ab54504
2017-02-10 05:57:13 +00:00
Sooraj Sasindran
bae8d7a8c4 Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0
am: 730c2d9c72  -s ours

Change-Id: I17a8dfcf0be71bcb667e70bab2834f0b7fd42b3c
2017-02-10 05:50:12 +00:00
Sooraj Sasindran
730c2d9c72 Merge "Expose api to retrieve wakelock information per client"
am: 8fbf6a29d0

Change-Id: I1ca7d53b256333170b849cb1103c8b3ca0e76e0b
2017-02-10 05:45:05 +00:00
Sooraj Sasindran
8fbf6a29d0 Merge "Expose api to retrieve wakelock information per client" 2017-02-10 05:38:41 +00:00
TreeHugger Robot
f96393ad2f Merge "AudioService: check safe volume bypass early at boot" 2017-02-10 05:12:03 +00:00
Yuichi Araki
fb6ed353a6 Recycle TypedArrays in Fade and TransitionInflater
Test: Builds
Change-Id: I91e214eafc87850dca6986af2054e5edca46e724
2017-02-10 13:47:36 +09:00
Seigo Nonaka
d5eff80a77 Introduce Backspace implemenation for flag emoji sequence.
Also introduce some test cases to CoreTest.

Test: ran FrameworksCoreTest
Change-Id: I4e237155a6fa7567937c8d089459c0780f868ffc
2017-02-10 13:41:23 +09:00
Jason Monk
ca2156890a Fix tinting and sizing of tuner lock screen shortcuts
Test: visual
Change-Id: I13f0281d38cd4d73322e9752d9bca36be2412917
2017-02-09 20:25:20 -08:00
TreeHugger Robot
081a9a7593 Merge "Remove user-specific data in WMS when the user is removed." 2017-02-10 04:02:34 +00:00
Po-Chien Hsueh
6bfdfe67b3 Merge "Remove build flag ANDROID_ENABLE_RENDERSCRIPT" 2017-02-10 03:41:08 +00:00
Roozbeh Pournader
3484ba8fdc Internationalize subclasses of NumberKeyListener
The previous implementation assumed ASCII digits, and a fixed set of
separators and signs.

The following classes have been internationalized: DigitsKeyListener,
DateKeyListener, TimeKeyListener, and DateTimeKeyListener.
DialerKeyListener is not modified yet, due to concerns about the
handling of non-ASCII digits by dialing-related parts of Android.

Even with this CL, characters outside BMP and multi-character signs
and decimal separators are still not supported, due to limitations in
android.view.KeyEvent and android.view.KeyCharacterMap.

Test: cts-tradefed run cts-dev --module CtsTextTestCases --test android.text.method.cts.*KeyListenerTest
Bug: https://code.google.com/p/android/issues/detail?id=2626
Bug: https://code.google.com/p/android/issues/detail?id=82993
Bug: 8319249
Bug: 33276673
Bug: 33643035
Bug: 34394455
Change-Id: I1cf87d0d9d1b383f5265c07ecd63b5767f9a68ca
2017-02-09 19:26:53 -08:00
Sooraj Sasindran
530a83cb1b Merge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus-aosp am: cbbf530125
am: 4c8fc962dc  -s ours

Change-Id: I30c51fef823abb8259f961b18f5bba1dcea357d8
2017-02-10 03:10:07 +00:00
Sooraj Sasindran
4c8fc962dc Merge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus-aosp
am: cbbf530125

Change-Id: Id5ea5536246343a530f7579a31039421b3859de3
2017-02-10 03:03:38 +00:00
Sooraj Sasindran
cbbf530125 Merge "Expose api to retrieve wakelock information per client" into nyc-mr1-dev-plus-aosp 2017-02-10 02:58:44 +00:00
Eric Laurent
03332ab6aa AudioService: check safe volume bypass early at boot
audio.safemedia.bypass property was sampled only after a 30 second
timeout after boot in case no MCC change config event is received.

If the property is true, skip the time out to speed up automated test
needing to disable the volume warning.

Bug: 31347265
Test: restart runtime with audio.safemedia.bypass true and check
no warning is displayed when raising volume to max

Change-Id: Ic31111200379e3cb4fddc651fa548a1bdff3384a
2017-02-09 18:29:15 -08:00
TreeHugger Robot
54afd00714 Merge "Fix NPE in ClipboarService." 2017-02-10 02:25:03 +00:00
Sudheer Shanka
f24a170ab2 Remove user-specific data in WMS when the user is removed.
Change-Id: I60c8dd07dcc9d2a34cab1b8f16e5b1e1789d822f
Fixes: 32028192
Test: manual
2017-02-09 18:09:48 -08:00
Sundeep Ghuman
328daab62f Fix error logging level in WifiNetworkScoreCache.
Bug: 35143659
Test: NA
Change-Id: Ibae6ccdacd9eef3b8ccc940489eaaeed0eeb9b8b
2017-02-09 18:02:58 -08:00
TreeHugger Robot
f2ecbbc35e Merge "Fix WindowFrameTest error." 2017-02-10 02:00:05 +00:00
TreeHugger Robot
8610881827 Merge "Adding a new internal method to get all valid scorers." 2017-02-10 01:28:49 +00:00
Ruben Brunk
2d695667ae Fix missing break statement.
Test: manual - check display behavior in lockscreen after screenoff in
   VR app.

Change-Id: Icbcc99101473b9ff9f379c72dad07480a0dea666
2017-02-09 17:25:02 -08:00
Christopher Tate
e0be7e859b Idle whitelist always-on VPN host apps while VPN services are launching
Bug 35144039

Change-Id: I2d576776a83c99f7e00e609c8623d0f0756e40ef
2017-02-09 17:17:05 -08:00
Andreas Gampe
cbadc38fa8 Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8 am: 0e01cae667 am: 74acde1bc5
am: c28592da33  -s ours

Change-Id: If1bbd5d4040381b9bcd6e08598a7e35e01143015
2017-02-10 01:12:45 +00:00
Makoto Onuki
b63830a724 Stop using IntentService and use async receiver (2/2 - contract)
Also:
- Set FLAG_RECEIVER_INCLUDE_BACKGROUND for ACTION_EVENT_REMINDER
- Remove the wake lock; with goAsync() now it's not needed.

Test: Manual test with: adb shell am broadcast --receiver-include-background -a android.intent.action.EVENT_REMINDER -d content:
Bug 35207106

Change-Id: I9e456f473f13b71df6e0dd1a1abdb0df8c26e6c7
2017-02-09 17:07:06 -08:00
Andreas Gampe
c28592da33 Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8 am: 0e01cae667
am: 74acde1bc5

Change-Id: I40d67fcde4d9263d5c75d5c3f782a860dcff93f8
2017-02-10 01:03:15 +00:00
Selim Cinek
9df81dc2e1 Merge "Fixed an issue where the emergency affordance didn't show" into nyc-mr2-dev am: fbf2e0fb2c
am: 0fe3d064a3

Change-Id: I3b86cc62c28c8086ed57505581c33d7b578f893d
2017-02-10 00:59:45 +00:00
Andreas Gampe
74acde1bc5 Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" am: 851afe56b8
am: 0e01cae667

Change-Id: Ifaa7595efaef554a47e05e030ccaf16a53a3bfce
2017-02-10 00:58:42 +00:00
Abodunrinwa Toki
c3e7a4fade Introduce a model file for language detection.
Test: cts-tradefed run cts-dev -m CtsViewTestCases -t
android.view.textclassifier.cts.TextClassificationManagerTest#testLanguageDetection
Bug: 34777495

Change-Id: Id4102732d303151839ae54630746f882a98dce29
2017-02-10 00:57:11 +00:00
TreeHugger Robot
22542867b4 Merge "Revert "Camera2: Temporarily remove surface size 0 check"" 2017-02-10 00:57:07 +00:00
Abodunrinwa Toki
f67f0a584e Change package for LangId and SmartSelection.
Package change from android.text to android.view.textclassifier.
This change was delayed until the native library code was updated
to reflect this package change.

Test: cts-tradefed run cts-dev -m CtsViewTestCases -t android.view.textclassifier.cts.TextClassificationManagerTest
Bug: 34777495
Change-Id: I723aaf79f8fbed4758bb4ee6727dfb6a8e35bf99
2017-02-10 00:57:01 +00:00
Andreas Gampe
0e01cae667 Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit"
am: 851afe56b8

Change-Id: Ib21530d511158635793f6180d53f193d1f1b0d95
2017-02-10 00:54:55 +00:00
Treehugger Robot
851afe56b8 Merge "Framework: Clean up RuntimeInit/ZygoteInit/WrapperInit" 2017-02-10 00:45:56 +00:00