OSDN Git Service

android-x86/frameworks-base.git
7 years agoUpdate display contents when metrics change
Andrii Kulian [Mon, 13 Feb 2017 23:17:00 +0000 (15:17 -0800)]
Update display contents when metrics change

When display was resized its windows weren't updated because of
two problems: old LogicaDisplay#mOverrideDisplayInfo was preventing
WM from detecting the change and base display metrics were never
updated by resize.

Bug: 35258051
Test: android.server.cts.ActivityManagerDisplayTests
Test: #testDisplayResize
Change-Id: I30155e4d83e61ffe969c81dfcf932f3f3882cc59

7 years agoUpdate the exception description for start(). am: ac06177a13 am: 8b137cc06b am: 539e1...
Mark Goldstein [Sat, 11 Feb 2017 01:53:13 +0000 (01:53 +0000)]
Update the exception description for start(). am: ac06177a13 am: 8b137cc06b am: 539e1bab4d
am: 31ecb52860

Change-Id: Ieb8f45cf4fe1bcaf4712bde3564fc005c00dc35c

7 years agoUpdate the exception description for start(). am: ac06177a13 am: 8b137cc06b am: fd889...
Mark Goldstein [Sat, 11 Feb 2017 01:44:40 +0000 (01:44 +0000)]
Update the exception description for start(). am: ac06177a13 am: 8b137cc06b am: fd88989486
am: 673a2df291

Change-Id: I297d9243273a178e31abad5bfedc50422a6a8610

7 years agoMerge changes from topic 'API_AnimatorSet_getCurrentPlayTime'
Doris Liu [Sat, 11 Feb 2017 01:41:47 +0000 (01:41 +0000)]
Merge changes from topic 'API_AnimatorSet_getCurrentPlayTime'

* changes:
  Add getter for current play time
  Fix reverse with start delay

7 years agoUpdate the exception description for start(). am: ac06177a13 am: 8b137cc06b
Mark Goldstein [Sat, 11 Feb 2017 01:41:37 +0000 (01:41 +0000)]
Update the exception description for start(). am: ac06177a13 am: 8b137cc06b
am: 539e1bab4d

Change-Id: I1274412a79c59da1a76f0b54f8633d9a2ec02d34

7 years agoUpdate the exception description for start(). am: ac06177a13 am: 8b137cc06b
Mark Goldstein [Sat, 11 Feb 2017 01:38:34 +0000 (01:38 +0000)]
Update the exception description for start(). am: ac06177a13 am: 8b137cc06b
am: fd88989486

Change-Id: I9fef1f2ba9ca5db9b46ea67e2507a682b249c595

7 years agoUpdate the exception description for start(). am: ac06177a13
Mark Goldstein [Sat, 11 Feb 2017 01:34:35 +0000 (01:34 +0000)]
Update the exception description for start(). am: ac06177a13
am: 8b137cc06b

Change-Id: Id448ab164e1fd0d3f5977c30c5395bcb6e87f90f

7 years agoUpdate the exception description for start(). am: ac06177a13
Mark Goldstein [Sat, 11 Feb 2017 01:34:30 +0000 (01:34 +0000)]
Update the exception description for start(). am: ac06177a13
am: 8b137cc06b

Change-Id: I4fcbc9b93ce8e908810d6c8eb4f0dd06c471ed3a

7 years agoUpdate the exception description for start().
Mark Goldstein [Sat, 11 Feb 2017 01:29:27 +0000 (01:29 +0000)]
Update the exception description for start().
am: ac06177a13

Change-Id: I124d99971918daa7768d79daa01ecbbb86f60199

7 years agoMerge "Track update count of IMMS#mMethodMap"
TreeHugger Robot [Sat, 11 Feb 2017 01:28:36 +0000 (01:28 +0000)]
Merge "Track update count of IMMS#mMethodMap"

7 years agoresolve merge conflicts of b3a1417663d6 to nyc-mr2-dev-plus-aosp
Jesse Hall [Sat, 11 Feb 2017 01:24:32 +0000 (01:24 +0000)]
resolve merge conflicts of b3a1417663d6 to nyc-mr2-dev-plus-aosp
am: 516274249f

Change-Id: Ifd131fb69d3fb2fe31bd0f06c074fdf15408dece

7 years agoresolve merge conflicts of b3a1417663d6 to nyc-mr2-dev-plus-aosp
Jesse Hall [Fri, 10 Feb 2017 23:53:27 +0000 (15:53 -0800)]
resolve merge conflicts of b3a1417663d6 to nyc-mr2-dev-plus-aosp

Test: mmma frameworks/base
Change-Id: I2e1e04f55d05fd8aa33da304bdb951713b37793c

7 years agoMerge "Clear exceptions before calling IsInstanceOf."
TreeHugger Robot [Sat, 11 Feb 2017 00:46:23 +0000 (00:46 +0000)]
Merge "Clear exceptions before calling IsInstanceOf."

7 years agoMerge "Move Keyguard to SystemUI"
Jason Monk [Sat, 11 Feb 2017 00:37:36 +0000 (00:37 +0000)]
Merge "Move Keyguard to SystemUI"

7 years agoAdd getter for current play time
Doris Liu [Wed, 8 Feb 2017 22:51:54 +0000 (14:51 -0800)]
Add getter for current play time

BUG: 30993532
Test: cts tests in the same topic branch
Change-Id: I45ee9c61f53051fcac3399eebc378aa2c0ce056d

7 years agoMerge "Set package name on bugreport intents."
TreeHugger Robot [Fri, 10 Feb 2017 23:24:29 +0000 (23:24 +0000)]
Merge "Set package name on bugreport intents."

7 years agoMerge "Implement "dump displaylist" button for skia pipelines"
TreeHugger Robot [Fri, 10 Feb 2017 23:10:56 +0000 (23:10 +0000)]
Merge "Implement "dump displaylist" button for skia pipelines"

7 years agoClear exceptions before calling IsInstanceOf.
Aurimas Liutikas [Fri, 10 Feb 2017 22:52:59 +0000 (14:52 -0800)]
Clear exceptions before calling IsInstanceOf.

Test: None
Change-Id: Iac94f4d7c489c1062a757919fd12a343b8abd001

7 years agoMerge "Add Shell commands to list and reset auto-fill sessions."
TreeHugger Robot [Fri, 10 Feb 2017 23:01:25 +0000 (23:01 +0000)]
Merge "Add Shell commands to list and reset auto-fill sessions."

7 years agoMerge "Fixed call to setServiceForegroundInnerLocked()."
TreeHugger Robot [Fri, 10 Feb 2017 22:44:24 +0000 (22:44 +0000)]
Merge "Fixed call to setServiceForegroundInnerLocked()."

7 years agoMerge "Idle whitelist always-on VPN host apps while VPN services are launching"
Chris Tate [Fri, 10 Feb 2017 22:43:25 +0000 (22:43 +0000)]
Merge "Idle whitelist always-on VPN host apps while VPN services are launching"

7 years agoMerge "separate the JNI part of the NDK into their own source"
Mathias Agopian [Fri, 10 Feb 2017 22:07:18 +0000 (22:07 +0000)]
Merge "separate the JNI part of the NDK into their own source"

7 years agoMerge "Report bitmap config when decoding only metadata"
TreeHugger Robot [Fri, 10 Feb 2017 21:52:27 +0000 (21:52 +0000)]
Merge "Report bitmap config when decoding only metadata"

7 years agoMerge "Expand seccomp whitelist" am: c6c11723cb am: 3b9c0fadda am: 507c3fb099
Paul Lawrence [Fri, 10 Feb 2017 21:34:07 +0000 (21:34 +0000)]
Merge "Expand seccomp whitelist" am: c6c11723cb am: 3b9c0fadda am: 507c3fb099
am: 6c1238699b

Change-Id: I9ecf11de7bef9f199700b3539b526ce3a9e7dea5

7 years agoMerge "Expand seccomp whitelist" am: c6c11723cb am: 3b9c0fadda
Paul Lawrence [Fri, 10 Feb 2017 21:28:56 +0000 (21:28 +0000)]
Merge "Expand seccomp whitelist" am: c6c11723cb am: 3b9c0fadda
am: 507c3fb099

Change-Id: Idcdec4c87b2ad5f91cbe05874ea532139fe38d42

7 years agoMerge "Expand seccomp whitelist" am: c6c11723cb
Paul Lawrence [Fri, 10 Feb 2017 21:22:25 +0000 (21:22 +0000)]
Merge "Expand seccomp whitelist" am: c6c11723cb
am: 3b9c0fadda

Change-Id: I50851e4d3c92d53562e593be0b82c09709262d4a

7 years agoUpdate the exception description for start().
Mark Goldstein [Fri, 10 Feb 2017 17:54:08 +0000 (09:54 -0800)]
Update the exception description for start().

Bug: 31592353
Change-Id: Ic325a8004a87b71c0b43d02db58d4717b4b3831d

7 years agoMerge "Expand seccomp whitelist"
Paul Lawrence [Fri, 10 Feb 2017 21:17:14 +0000 (21:17 +0000)]
Merge "Expand seccomp whitelist"
am: c6c11723cb

Change-Id: I73a7ede13a35354a08e1bc3301f624295373cd52

7 years agoMerge "Fix missing break statement."
TreeHugger Robot [Fri, 10 Feb 2017 21:15:10 +0000 (21:15 +0000)]
Merge "Fix missing break statement."

7 years agoMerge "Expand seccomp whitelist"
Treehugger Robot [Fri, 10 Feb 2017 21:08:05 +0000 (21:08 +0000)]
Merge "Expand seccomp whitelist"

7 years agoSet package name on bugreport intents.
Felipe Leme [Fri, 10 Feb 2017 21:06:58 +0000 (13:06 -0800)]
Set package name on bugreport intents.

BUG: 35257764
Test: BugreportReceiverTest passes
Change-Id: Ia6ff03b2a12ab9987f5b36fa1da88e9c77af18a2

7 years agoAdd Shell commands to list and reset auto-fill sessions.
Felipe Leme [Thu, 9 Feb 2017 17:40:15 +0000 (09:40 -0800)]
Add Shell commands to list and reset auto-fill sessions.

These commands are useful during development and CTS tests (for
example, the test can assert there is no dangling session after it's
finished).

BUG: 33802548

Test: manual verification
Change-Id: I61f96e30d07642fa2165df9b982c6bf32a4e8716

7 years agoZygote: Restore GL preload
Jesse Hall [Thu, 9 Feb 2017 22:43:14 +0000 (14:43 -0800)]
Zygote: Restore GL preload

Preloading GLES drivers in Zygote was removed previously since it is
incompatible with updatable drivers. That caused some app startup
latency and system memory use regressions. This change re-adds GLES
driver preloading, but only on devices that don't support driver
updates.

Bug: 34611670
Bug: 35052548
Test: boot angler, systrace of Calculator app startup
Change-Id: Ibdc6b3c0ba4473574722641d4bfad4b375f908a3
(cherry picked from commit ba0370eef3d17baa70d43723e96eb135c8e4ed58)

7 years agoMerge "Disable StatusBarTests due to flakes."
TreeHugger Robot [Fri, 10 Feb 2017 20:51:26 +0000 (20:51 +0000)]
Merge "Disable StatusBarTests due to flakes."

7 years agoMerge "Allow destroying display content on removal"
Andrii Kulian [Fri, 10 Feb 2017 20:49:45 +0000 (20:49 +0000)]
Merge "Allow destroying display content on removal"

7 years agoFixed call to setServiceForegroundInnerLocked().
Felipe Leme [Fri, 10 Feb 2017 20:42:44 +0000 (12:42 -0800)]
Fixed call to setServiceForegroundInnerLocked().

It was passing the calling uid instead of the notification id.

Change-Id: Id8b0f6e547ae2e605302be7e8475a10afdb43b77
Fixes: 35252523
Test: manual verification

7 years agoMerge "Don't notify parents of views made focusable off UI thread"
Evan Rosky [Fri, 10 Feb 2017 20:36:10 +0000 (20:36 +0000)]
Merge "Don't notify parents of views made focusable off UI thread"

7 years agoMerge "Fix error logging level in WifiNetworkScoreCache."
TreeHugger Robot [Fri, 10 Feb 2017 20:32:02 +0000 (20:32 +0000)]
Merge "Fix error logging level in WifiNetworkScoreCache."

7 years agoFix reverse with start delay
Doris Liu [Wed, 8 Feb 2017 22:47:08 +0000 (14:47 -0800)]
Fix reverse with start delay

Test: cts in the same topic branch

Change-Id: Ie8793f25d39e0104c880f1a873f68650b918bffa

7 years agoMerge "Update framework to use new SkColorSpace API"
TreeHugger Robot [Fri, 10 Feb 2017 20:20:53 +0000 (20:20 +0000)]
Merge "Update framework to use new SkColorSpace API"

7 years agoseparate the JNI part of the NDK into their own source
Mathias Agopian [Thu, 9 Feb 2017 02:48:32 +0000 (18:48 -0800)]
separate the JNI part of the NDK into their own source

Test: built and booted device
Bug: 35164655
Change-Id: I944c9f28730b82e8c428b5384dc57e1b296144b2

7 years agoMerge "fallout from view::Surface / Surface split"
Mathias Agopian [Fri, 10 Feb 2017 20:04:58 +0000 (20:04 +0000)]
Merge "fallout from view::Surface / Surface split"

7 years agoMerge "Fix incorrect header highlight when in single-pane."
TreeHugger Robot [Fri, 10 Feb 2017 20:02:54 +0000 (20:02 +0000)]
Merge "Fix incorrect header highlight when in single-pane."

7 years agoMerge "Put shell on the idle/background whitelist"
Chris Tate [Fri, 10 Feb 2017 19:58:21 +0000 (19:58 +0000)]
Merge "Put shell on the idle/background whitelist"

7 years agoMerge "Clear mExtraDataKeys when clearing A11yNodeInfo."
TreeHugger Robot [Fri, 10 Feb 2017 19:58:06 +0000 (19:58 +0000)]
Merge "Clear mExtraDataKeys when clearing A11yNodeInfo."

7 years agoPut shell on the idle/background whitelist
Christopher Tate [Fri, 10 Feb 2017 19:23:43 +0000 (11:23 -0800)]
Put shell on the idle/background whitelist

Bug 35229549

Change-Id: I9f7dd66c37af9c28c9f0714be4358b94930c2d32

7 years agoReport bitmap config when decoding only metadata
Romain Guy [Fri, 10 Feb 2017 02:38:47 +0000 (18:38 -0800)]
Report bitmap config when decoding only metadata

With the introduction of support for 16 bit images, bitmaps returned
by BitmapFactory may be using the RGBA_F16 configuration. Some apps
and libraries assume the returned configuration is always ARGB_8888
and make assumptions based on that to compute cache sizes, etc.

This changes extract the output config when BitmapFactory is invoked
with the inJustDecodeBounds option. Despite its name, this option
is already used (and documented!) to decode more than bounds as it
also decodes the MIME type.

Bug: 35108998
Test: CtsGraphicsTestCases
Change-Id: If71959751458816678e42b21ab26c889aba5dea0

7 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Fri, 10 Feb 2017 19:10:32 +0000 (19:10 +0000)]
Merge "Import translations. DO NOT MERGE"

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am...
Yifan Hong [Fri, 10 Feb 2017 18:57:22 +0000 (18:57 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am: 71e77c865b am: 2e943c5379
am: 229e2d09ce

Change-Id: I12223be235ec60ef67c8e327226b816d7843bad9

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am...
Yifan Hong [Fri, 10 Feb 2017 18:53:07 +0000 (18:53 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635 am: 71e77c865b
am: 2e943c5379

Change-Id: Ibbf18bc51e146abef1ab211614a98ec59031b1b9

7 years agoMerge "Log.wtf all privapp-permissions in a single message"
Fyodor Kupolov [Fri, 10 Feb 2017 18:50:29 +0000 (18:50 +0000)]
Merge "Log.wtf all privapp-permissions in a single message"

7 years agoTrack update count of IMMS#mMethodMap
Yohei Yukawa [Fri, 10 Feb 2017 06:49:35 +0000 (22:49 -0800)]
Track update count of IMMS#mMethodMap

InputMethodManagerService#buildInputMethodListLocked() is known be
one of the biggest contributors to CPU and I/O bandwidth consumed
by InputMethodManagerService (IMMS). To check when it gets called
and to see how a CL would affect its call count, it would be useful
if we can easily get the call count of that method.

With this CL, how many times IMMS#mMethodMap was rebuilt will be
included in the dumpsys.

Test: adb shell dumpsys input_method | grep "mMethodMapUpdateCount="
      to make sure the count is increasing.
Bug: 32343335
Change-Id: I05850578cbf2e6adfea6c7e9b1fb9ec4e9d5e2c9

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635
Yifan Hong [Fri, 10 Feb 2017 18:48:14 +0000 (18:48 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF." am: 01f374c635
am: 71e77c865b

Change-Id: I37c99d5135046c6b0d2589f321cd8e4b235392e7

7 years agoMerge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev...
Alan Viverette [Fri, 10 Feb 2017 18:48:13 +0000 (18:48 +0000)]
Merge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev am: 41023417e7
am: 07a6ff6989

Change-Id: If7b5bd47dd0582ea2b6dec98207cac16058f4bc5

7 years agoMerge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev
Alan Viverette [Fri, 10 Feb 2017 18:43:47 +0000 (18:43 +0000)]
Merge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev
am: 41023417e7

Change-Id: I4e42386e1f227e2cb48bf37eb05bcf7f81b6d709

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF."
Yifan Hong [Fri, 10 Feb 2017 18:43:37 +0000 (18:43 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF."
am: 01f374c635

Change-Id: I1db3c946211861e6edd7c03d9eaeae7a0cb412c4

7 years agoExpand seccomp whitelist
Paul Lawrence [Fri, 10 Feb 2017 18:07:48 +0000 (10:07 -0800)]
Expand seccomp whitelist

Bug: 34763393
Test: cts test android.os.cts.SeccompTest now passes
Change-Id: I8907074485395015a03119700543ff33fdd8e214

7 years agoDisable StatusBarTests due to flakes.
Geoffrey Pitsch [Fri, 10 Feb 2017 18:30:25 +0000 (13:30 -0500)]
Disable StatusBarTests due to flakes.

Looks like it relies on some global state.

Test: runtest systemui
Change-Id: If4add9e551bbaef5580df2532f937345c9e69d32

7 years agoMerge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev
TreeHugger Robot [Fri, 10 Feb 2017 18:35:32 +0000 (18:35 +0000)]
Merge "Don't scroll popup parent in response to parent scrolling" into nyc-mr2-dev

7 years agoMerge "android.os.HwBinder.getService() in Java respects VINTF."
Yifan Hong [Fri, 10 Feb 2017 18:33:41 +0000 (18:33 +0000)]
Merge "android.os.HwBinder.getService() in Java respects VINTF."

7 years agoUpdate framework to use new SkColorSpace API
Matt Sarett [Fri, 10 Feb 2017 18:31:56 +0000 (13:31 -0500)]
Update framework to use new SkColorSpace API

Test: This compiles with SK_USE_LEGACY_NAMED_COLOR_SPACE
turned off.

Change-Id: Ie573f59e0aa475bab06b38589db3c6158ad82c5a

7 years agoClear mExtraDataKeys when clearing A11yNodeInfo.
Phil Weaver [Fri, 10 Feb 2017 18:10:01 +0000 (10:10 -0800)]
Clear mExtraDataKeys when clearing A11yNodeInfo.

Bug: 35244501
Test: Ran Accessibilitiy CTS. I can no longer get the test mentioned
in the bug to fail.

Change-Id: I69e5e1b5c8f12226837ced928fbd10ff77bcd235

7 years agoFix incorrect header highlight when in single-pane.
Filip Pavlis [Fri, 10 Feb 2017 15:51:41 +0000 (15:51 +0000)]
Fix incorrect header highlight when in single-pane.

Bug: 35216626
Test: Case will be covered in ag/1761868

Change-Id: I877823762a44d6545c80f4f59b29f190c389ba09

7 years agoMerge "Fix PlaybackActivityMonitor unmute path"
Jean-Michel Trivi [Fri, 10 Feb 2017 17:55:16 +0000 (17:55 +0000)]
Merge "Fix PlaybackActivityMonitor unmute path"

7 years agoMerge "Move auto-fill shell command off IPC"
TreeHugger Robot [Fri, 10 Feb 2017 17:52:06 +0000 (17:52 +0000)]
Merge "Move auto-fill shell command off IPC"

7 years agoMerge "Add storage management days to retain to settings for backup."
Daniel Nishi [Fri, 10 Feb 2017 17:50:18 +0000 (17:50 +0000)]
Merge "Add storage management days to retain to settings for backup."

7 years agoFix PlaybackActivityMonitor unmute path
Jean-Michel Trivi [Fri, 10 Feb 2017 17:47:30 +0000 (09:47 -0800)]
Fix PlaybackActivityMonitor unmute path

Clear the list of muted played after iterating over it.

Test: see repro test in b/35229719
Bug 35229719

Change-Id: I2e9860f8afbb625933091e45ea705903c74d629e

7 years agoMerge "Partially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e."
Narayan Kamath [Fri, 10 Feb 2017 17:07:41 +0000 (17:07 +0000)]
Merge "Partially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e."

7 years agoMerge "Stop using IntentService and use async receiver (2/2 - contract)"
Makoto Onuki [Fri, 10 Feb 2017 16:27:49 +0000 (16:27 +0000)]
Merge "Stop using IntentService and use async receiver (2/2 - contract)"

7 years agoMerge "SchedulingPolicyService: specify the beneficiary of priority boost"
Mikhail Naganov [Fri, 10 Feb 2017 16:19:41 +0000 (16:19 +0000)]
Merge "SchedulingPolicyService: specify the beneficiary of priority boost"

7 years agoMerge "Let apps link to noti settings and vice versa."
Julia Reynolds [Fri, 10 Feb 2017 16:05:07 +0000 (16:05 +0000)]
Merge "Let apps link to noti settings and vice versa."

7 years agoMerge changes from topic 'smartselect'
Abodunrinwa Toki [Fri, 10 Feb 2017 15:56:35 +0000 (15:56 +0000)]
Merge changes from topic 'smartselect'

* changes:
  Introduce a model file for language detection.
  Change package for LangId and SmartSelection.

7 years agoMerge "Add instrumentation for BackupManager during restore."
Stefano Tommasini [Fri, 10 Feb 2017 15:46:01 +0000 (15:46 +0000)]
Merge "Add instrumentation for BackupManager during restore."

7 years agoMove Keyguard to SystemUI
Jason Monk [Tue, 31 Jan 2017 19:29:32 +0000 (14:29 -0500)]
Move Keyguard to SystemUI

Test: make
Change-Id: I3abb67e2b022737d2aa0226bb07f3966ad68fff7

7 years agoMerge "Revert "Set correct focus activity when using FLAG_ACTIVITY_REORDER_TO_FRONT""
Bryce Lee [Fri, 10 Feb 2017 15:40:50 +0000 (15:40 +0000)]
Merge "Revert "Set correct focus activity when using FLAG_ACTIVITY_REORDER_TO_FRONT""

7 years agoMove auto-fill shell command off IPC
Svet Ganov [Fri, 10 Feb 2017 11:45:28 +0000 (03:45 -0800)]
Move auto-fill shell command off IPC

Auto-fill has a shell command that is useful for development
which is currently exposed as a remote method allowing any app
to call it reflectively. Since only case this method is called
is when handling a shell command there is no need to expose it
to IPC over binder.

Test: manual

Change-Id: Iac20b4a39c7065e254f8aa277d1f2fd1c38b24a8

7 years agoPartially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e.
Narayan Kamath [Fri, 10 Feb 2017 14:53:10 +0000 (14:53 +0000)]
Partially revert commit ff5659fbc3026e621bdd926e96096e2957cfd42e.

ff5659fbc was intended to be a clean revert of 660cf30e2100d8ed401
that fixed a DOA issue. However, the author incorrectly rebased that
revert and picked up pieces of a separate change as well. This reverts
those sections of the change so that they can be submitted with the
correct attribution and with proper review.

Bug: 34415265
Bug: 34914977
Test: make

Change-Id: I977c3ba10bb05f04ac8cfd95d17954c454c83340

7 years agoAdd instrumentation for BackupManager during restore.
Stefanot [Mon, 6 Feb 2017 21:14:05 +0000 (21:14 +0000)]
Add instrumentation for BackupManager during restore.

This CL adds more 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.
The base cl is ag/1835775

Test: TODO

BUG: 34873525
Change-Id: I127fe739a7522078eecce2ae689a4607203a98da

7 years agoMerge "AutoSize TextView (part 9) - sanitize APIs naming"
TreeHugger Robot [Fri, 10 Feb 2017 13:38:21 +0000 (13:38 +0000)]
Merge "AutoSize TextView (part 9) - sanitize APIs naming"

7 years agoMerge "Add monitoring to backup in BackupManager."
Stefano Tommasini [Fri, 10 Feb 2017 12:52:27 +0000 (12:52 +0000)]
Merge "Add monitoring to backup in BackupManager."

7 years agoMerge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am...
Rubin Xu [Fri, 10 Feb 2017 12:38:03 +0000 (12:38 +0000)]
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

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:36:52 +0000 (12:36 +0000)]
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

7 years agoMerge "Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am...
Android Build Merger (Role) [Fri, 10 Feb 2017 12:33:37 +0000 (12:33 +0000)]
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

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:32:57 +0000 (12:32 +0000)]
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

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:32:48 +0000 (12:32 +0000)]
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

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:28:56 +0000 (12:28 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9
am: f85a20702a

Change-Id: I3861a5229fdb55f7dc7fd57e1706b34f9847d492

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:28:47 +0000 (12:28 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce am: 72074e3ab9
am: f85a20702a

Change-Id: If9e569ba66dc9e5876fab5ffd2a6c9b0a9fb923b

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293...
Rubin Xu [Fri, 10 Feb 2017 12:24:43 +0000 (12:24 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293 am: 824c8284ce
am: 72074e3ab9

Change-Id: I1cd4db65e0fe8c92628f22f94fe937cf64f2da04

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293
Rubin Xu [Fri, 10 Feb 2017 12:20:18 +0000 (12:20 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev am: 42f2e80293
am: 824c8284ce

Change-Id: If4dfa2d7af980c91ec3d3f8faa7e7f4a39350c82

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev
Rubin Xu [Fri, 10 Feb 2017 12:16:19 +0000 (12:16 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev
am: 42f2e80293

Change-Id: Ic167e10a205b5c8f9df81cd20a6f08359d3807f4

7 years agoMerge "Fix uri permission grant on remote bug report uri" into nyc-dev
TreeHugger Robot [Fri, 10 Feb 2017 12:10:58 +0000 (12:10 +0000)]
Merge "Fix uri permission grant on remote bug report uri" into nyc-dev

7 years agoMerge "Fix for bmgr whitelist"
Shreyas Basarge [Fri, 10 Feb 2017 11:58:26 +0000 (11:58 +0000)]
Merge "Fix for bmgr whitelist"

7 years agoAdd monitoring to backup in BackupManager.
Stefanot [Fri, 27 Jan 2017 12:03:53 +0000 (12:03 +0000)]
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

7 years agoImprove ACTION_PACKAGE_CHANGED handling in IMMS
Yohei Yukawa [Fri, 10 Feb 2017 03:30:22 +0000 (19:30 -0800)]
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

7 years agoAllow destroying display content on removal
Andrii Kulian [Thu, 9 Feb 2017 07:30:45 +0000 (23:30 -0800)]
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

7 years agoMerge "Fix tinting and sizing of tuner lock screen shortcuts"
TreeHugger Robot [Fri, 10 Feb 2017 06:36:05 +0000 (06:36 +0000)]
Merge "Fix tinting and sizing of tuner lock screen shortcuts"

7 years agoMerge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am...
Sooraj Sasindran [Fri, 10 Feb 2017 06:01:49 +0000 (06:01 +0000)]
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

7 years agoMerge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am...
Sooraj Sasindran [Fri, 10 Feb 2017 05:57:13 +0000 (05:57 +0000)]
Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0 am: 730c2d9c72  -s ours
am: bae8d7a8c4  -s ours

Change-Id: I352f7dc305e64fa5e82bd3cccd9015732ab54504

7 years agoMerge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0
Sooraj Sasindran [Fri, 10 Feb 2017 05:50:12 +0000 (05:50 +0000)]
Merge "Expose api to retrieve wakelock information per client" am: 8fbf6a29d0
am: 730c2d9c72  -s ours

Change-Id: I17a8dfcf0be71bcb667e70bab2834f0b7fd42b3c

7 years agoMerge "Expose api to retrieve wakelock information per client"
Sooraj Sasindran [Fri, 10 Feb 2017 05:45:05 +0000 (05:45 +0000)]
Merge "Expose api to retrieve wakelock information per client"
am: 8fbf6a29d0

Change-Id: I1ca7d53b256333170b849cb1103c8b3ca0e76e0b