OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Show back button while RemoteInput is active on keyguard"
Adrian Roos [Thu, 7 Jan 2016 16:10:53 +0000 (16:10 +0000)]
Merge "Show back button while RemoteInput is active on keyguard"

8 years agoMerge "Use FCC_2 and FCC_8 to highlight channel count assumptions"
Glenn Kasten [Thu, 7 Jan 2016 15:54:45 +0000 (15:54 +0000)]
Merge "Use FCC_2 and FCC_8 to highlight channel count assumptions"

8 years agoMerge "Avoid drawable invalidation during draw()"
Alan Viverette [Thu, 7 Jan 2016 15:54:36 +0000 (15:54 +0000)]
Merge "Avoid drawable invalidation during draw()"

8 years agoMerge "Avoid NPE when ActionMenuPresenter is intialized with null MenuBuilder"
Alan Viverette [Thu, 7 Jan 2016 15:48:40 +0000 (15:48 +0000)]
Merge "Avoid NPE when ActionMenuPresenter is intialized with null MenuBuilder"

8 years agoMerge "Keyboard shortcuts: minor naming refactor"
Andrei Stingaceanu [Thu, 7 Jan 2016 15:30:15 +0000 (15:30 +0000)]
Merge "Keyboard shortcuts: minor naming refactor"

8 years agoRemoving workaround causing full view inflation.
Winson [Wed, 6 Jan 2016 23:21:29 +0000 (15:21 -0800)]
Removing workaround causing full view inflation.

Bug: 26420766

Change-Id: I0bb0eeada5002460de47fe4b3e23bc8a8d6e751d

8 years agoKeyboard shortcuts: minor naming refactor
Andrei Stingaceanu [Thu, 7 Jan 2016 12:39:38 +0000 (12:39 +0000)]
Keyboard shortcuts: minor naming refactor

Replace all occurrences of showKeyboardShortcuts* with
toggleKeyboardShortcuts* in order to be inline with
the current/desired behavior.

Change-Id: Ia076952ec40963b2727fd1f855b64859b94b1643

8 years agoresolve merge conflicts of 435ad029a3 to master.
Calin Juravle [Thu, 7 Jan 2016 12:15:36 +0000 (12:15 +0000)]
resolve merge conflicts of 435ad029a3 to master.

Change-Id: I87202d69a772c593b691de8ce2faeaac9b7d1f58

8 years agoMerge "Create jit profile file during the app startup flow."
Calin Juravle [Thu, 7 Jan 2016 11:52:50 +0000 (11:52 +0000)]
Merge "Create jit profile file during the app startup flow."
am: 5fac913d98

* commit '5fac913d98eb44269b53cd9cc6a011a4eef3c98d':
  Create jit profile file during the app startup flow.

8 years agoMerge "Create jit profile file during the app startup flow."
Calin Juravle [Thu, 7 Jan 2016 11:44:55 +0000 (11:44 +0000)]
Merge "Create jit profile file during the app startup flow."

8 years agoCreate jit profile file during the app startup flow.
Calin Juravle [Thu, 17 Dec 2015 15:06:49 +0000 (17:06 +0200)]
Create jit profile file during the app startup flow.

ActivityThread has already all the needed information
(userId,sharedAppId) to create the profile file and set the correct
permissions on it. This avoids passing uids to the runtime which now
expects the profile file to be already created.

As part of this change:
- move the registration with the runtim in handleBindApplication
- register only if needed: we could properly setup a profile file and we
have at least one code path. Note that registration with the runtime is
done solely for profiling reasons.

Bug: 26080105
Change-Id: I72657e9ea0a0449a09734456b5f8b5da844cee62

8 years agoMerge "Create parent APIs in DevicePolicyManager"
Clara Bayarri [Thu, 7 Jan 2016 11:12:09 +0000 (11:12 +0000)]
Merge "Create parent APIs in DevicePolicyManager"

8 years agoCreate parent APIs in DevicePolicyManager
Clara Bayarri [Mon, 14 Dec 2015 17:51:22 +0000 (17:51 +0000)]
Create parent APIs in DevicePolicyManager

This change creates the infrastructure for a parent
DPM and implements the actual parent APIs for
- set/getPasswordQuality
- isActivePasswordSufficient

This is part of the Separate Work Challenge

Change-Id: I0477051b3162cbb26aac79467da08932f22fd1b7

8 years agoKeyboard shortcuts: initial view.
Andrei Stingaceanu [Mon, 24 Aug 2015 16:19:06 +0000 (17:19 +0100)]
Keyboard shortcuts: initial view.

Initial view and functionality for showing/hiding it.

Change-Id: I0e365ecc3ba19110b87b020ff53a6318a7304ce8

8 years agoMerge "Revert "Revert "Update APIs for the flag changes in SAF."""
Tomasz Mikolajewski [Thu, 7 Jan 2016 07:27:13 +0000 (07:27 +0000)]
Merge "Revert "Revert "Update APIs for the flag changes in SAF."""

8 years agoRevert "Revert "Update APIs for the flag changes in SAF.""
Tomasz Mikolajewski [Thu, 7 Jan 2016 07:26:51 +0000 (07:26 +0000)]
Revert "Revert "Update APIs for the flag changes in SAF.""

This reverts commit 475c19532d1f06185b63a0708cf0164a0d6f3feb.

Change-Id: Idb9a91eaab36d28e6ed3f3b4c55f1e7d44f1d3ad

8 years agoMerge "Revert "Revert "Remove the flag and make openTypedDocument throw FileNotFoundE...
Tomasz Mikolajewski [Thu, 7 Jan 2016 07:19:56 +0000 (07:19 +0000)]
Merge "Revert "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException."""

8 years agoRevert "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException.""
Tomasz Mikolajewski [Thu, 7 Jan 2016 07:19:22 +0000 (07:19 +0000)]
Revert "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException.""

This reverts commit 2b931719783cda11c3bbac9928c603d0a0a06d43.

Change-Id: Ic61b874012daeada02b73643f5c58f9ec840b3e5

8 years agoMerge "Use mCurrentUserId instead of ActivityManager.getCurrentUser()"
Sungsoo Lim [Thu, 7 Jan 2016 07:11:51 +0000 (07:11 +0000)]
Merge "Use mCurrentUserId instead of ActivityManager.getCurrentUser()"

8 years agoMerge "Fix: TextView cannot be scrolled."
Keisuke Kuroyanagi [Thu, 7 Jan 2016 06:59:03 +0000 (06:59 +0000)]
Merge "Fix: TextView cannot be scrolled."

8 years agoUse mCurrentUserId instead of ActivityManager.getCurrentUser()
Sungsoo Lim [Thu, 7 Jan 2016 05:40:59 +0000 (14:40 +0900)]
Use mCurrentUserId instead of ActivityManager.getCurrentUser()

Change-Id: I5b6887d320a03eb548ae04f15841d7f6f5bd9da4

8 years agoMerge "MediaSession: Use Handler for sending a pending intent"
Sungsoo Lim [Thu, 7 Jan 2016 05:33:49 +0000 (05:33 +0000)]
Merge "MediaSession: Use Handler for sending a pending intent"

8 years agoMediaSession: Use Handler for sending a pending intent
riddle_hsu [Tue, 20 Oct 2015 08:00:15 +0000 (16:00 +0800)]
MediaSession: Use Handler for sending a pending intent

When PendingIntent.send() is called with a null handler,
onSendFinished() will be called inside of the send() method.
Therefore in this case, if a thread holds a lock before
calling send(), and onSendFinished() also requires the lock,
a deadlock could happen.

Bug: 25653801
Change-Id: I71d9f708fc3d52b7b5713426ad6140cbf6e336ef

8 years agoMedia: Fix MtpDevice call
Andreas Gampe [Thu, 7 Jan 2016 05:15:09 +0000 (21:15 -0800)]
Media: Fix MtpDevice call

The signature was changed last minute. Update the media side.

Bug: 26284424
Change-Id: Ia8fb665221f60d3eadd2c32831a12aa21c6c5e9c

8 years agoMerge "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException.""
Tomasz Mikolajewski [Thu, 7 Jan 2016 04:47:42 +0000 (04:47 +0000)]
Merge "Revert "Remove the flag and make openTypedDocument throw FileNotFoundException.""

8 years agoRevert "Remove the flag and make openTypedDocument throw FileNotFoundException."
Tomasz Mikolajewski [Thu, 7 Jan 2016 04:47:03 +0000 (04:47 +0000)]
Revert "Remove the flag and make openTypedDocument throw FileNotFoundException."

This reverts commit 95149ab6a5442a05f05f448854b6ab386c87f717.

Change-Id: I218aa8059ef674400dac8531a86cd326748c26d5

8 years agoRevert "Update APIs for the flag changes in SAF."
Tomasz Mikolajewski [Thu, 7 Jan 2016 04:44:19 +0000 (04:44 +0000)]
Revert "Update APIs for the flag changes in SAF."

This reverts commit e7decfb815342dbea00b305a52b1178e2d646df1.

Change-Id: I023989381ffa7296db7a21ec01327a32b3f16c4f

8 years agoUpdate APIs for the flag changes in SAF.
Tomasz Mikolajewski [Thu, 7 Jan 2016 04:36:12 +0000 (15:36 +1100)]
Update APIs for the flag changes in SAF.

Bug: 26222645
Change-Id: I7189b7867ad31dbd7e3f768387e2f570a41527b1

8 years agoMerge "Add missing style change to android_mtp_MtpDevice.cpp."
Daichi Hirono [Thu, 7 Jan 2016 04:11:00 +0000 (04:11 +0000)]
Merge "Add missing style change to android_mtp_MtpDevice.cpp."

8 years agoAdd missing style change to android_mtp_MtpDevice.cpp.
Daichi Hirono [Thu, 7 Jan 2016 04:06:11 +0000 (13:06 +0900)]
Add missing style change to android_mtp_MtpDevice.cpp.

BUG=26284424

Change-Id: I0e288712a8fccfb3dd21fa927388bacf5ce155d0

8 years agoMerge "Remove the flag and make openTypedDocument throw FileNotFoundException."
Tomasz Mikolajewski [Thu, 7 Jan 2016 03:52:01 +0000 (03:52 +0000)]
Merge "Remove the flag and make openTypedDocument throw FileNotFoundException."

8 years agoRemove the flag and make openTypedDocument throw FileNotFoundException.
Tomasz Mikolajewski [Thu, 24 Dec 2015 04:24:00 +0000 (13:24 +0900)]
Remove the flag and make openTypedDocument throw FileNotFoundException.

To be compatible with ContentProvider, DocumentsProvider should not
require checking for a flag before calling openTypedAssetFile.

This CL removes the flag, and makes the default implementation throw
FileNotFoundException instead.

Bug: 26222645
Change-Id: I3492f05804e39583ebb8584109c7017b3082846e

8 years agoMerge "Add getPartialObject to Java MtpDevice class."
Daichi Hirono [Thu, 7 Jan 2016 03:49:02 +0000 (03:49 +0000)]
Merge "Add getPartialObject to Java MtpDevice class."

8 years agoAdd getPartialObject to Java MtpDevice class.
Daichi Hirono [Thu, 24 Dec 2015 08:52:10 +0000 (17:52 +0900)]
Add getPartialObject to Java MtpDevice class.

BUG=26284424

Change-Id: Id05dc6297a1682999eee4e72972fb883fa49a5d1

8 years agoMerge "Grant location to SetupWizard by default - framework"
Svetoslav Ganov [Thu, 7 Jan 2016 03:37:21 +0000 (03:37 +0000)]
Merge "Grant location to SetupWizard by default - framework"

8 years agoMerge "Fix IMM#showInputMethodAndSubtypeEnabler()."
Yohei Yukawa [Thu, 7 Jan 2016 01:29:05 +0000 (01:29 +0000)]
Merge "Fix IMM#showInputMethodAndSubtypeEnabler()."

8 years agoMerge "Implement FUSE operations in AppFuse JNI."
Daichi Hirono [Thu, 7 Jan 2016 01:21:07 +0000 (01:21 +0000)]
Merge "Implement FUSE operations in AppFuse JNI."

8 years agoMerge "Leave from the current root when the root is removed."
Daichi Hirono [Thu, 7 Jan 2016 01:18:34 +0000 (01:18 +0000)]
Merge "Leave from the current root when the root is removed."

8 years agoMerge "Add some TestApis to fix build."
Jeff Sharkey [Thu, 7 Jan 2016 00:41:45 +0000 (00:41 +0000)]
Merge "Add some TestApis to fix build."

8 years agoMerge "Don't depend on mContentParent to determine if content was set."
Filip Gruszczynski [Thu, 7 Jan 2016 00:40:55 +0000 (00:40 +0000)]
Merge "Don't depend on mContentParent to determine if content was set."

8 years agoMerge "AAPT2: Fix product support"
Adam Lesinski [Thu, 7 Jan 2016 00:40:36 +0000 (00:40 +0000)]
Merge "AAPT2: Fix product support"

8 years agoAdd some TestApis to fix build.
Jeff Sharkey [Thu, 7 Jan 2016 00:02:08 +0000 (17:02 -0700)]
Add some TestApis to fix build.

Change-Id: Icf0d8d63f3a41d99e46ebe96003863bae637bd9d

8 years agoMerge "Improved output for 'dumpsys window displays'"
Wale Ogunwale [Thu, 7 Jan 2016 00:32:40 +0000 (00:32 +0000)]
Merge "Improved output for 'dumpsys window displays'"

8 years agoAAPT2: Fix product support
Adam Lesinski [Wed, 6 Jan 2016 23:45:28 +0000 (15:45 -0800)]
AAPT2: Fix product support

Previously the default product wasn't tried if 'default' wasn't specified on the command line.
Also adds support for multiple products.

Change-Id: I1e4872b34bb8d609b6444841a4e7e4dbb3bbb76b

8 years agoMerge "New regular expression to autolink URLs"
Siyamed Sinir [Thu, 7 Jan 2016 00:14:26 +0000 (00:14 +0000)]
Merge "New regular expression to autolink URLs"

8 years agoMerge "AAPT2: Port AAPT pseudolocalization to AAPT2"
Adam Lesinski [Wed, 6 Jan 2016 23:55:06 +0000 (23:55 +0000)]
Merge "AAPT2: Port AAPT pseudolocalization to AAPT2"

8 years agoMerge "AAPT2: Fix references to private parent"
Adam Lesinski [Wed, 6 Jan 2016 23:50:50 +0000 (23:50 +0000)]
Merge "AAPT2: Fix references to private parent"

8 years agoMerge "AAPT2: Respect format attribute of <item> tag"
Adam Lesinski [Wed, 6 Jan 2016 23:50:10 +0000 (23:50 +0000)]
Merge "AAPT2: Respect format attribute of <item> tag"

8 years agoMerge "Rework op macros"
Chris Craik [Wed, 6 Jan 2016 22:42:31 +0000 (22:42 +0000)]
Merge "Rework op macros"

8 years agoMerge "Fix wrong annotation for PrintInfo.Builder.setStatus"
Philip P. Moltmann [Wed, 6 Jan 2016 22:35:35 +0000 (22:35 +0000)]
Merge "Fix wrong annotation for PrintInfo.Builder.setStatus"

8 years agoDon't depend on mContentParent to determine if content was set.
Filip Gruszczynski [Wed, 6 Jan 2016 22:34:00 +0000 (14:34 -0800)]
Don't depend on mContentParent to determine if content was set.

mContentParent might be set due to window preservation, rather than due
to client setting the content view. We should mark the content view as
set only when it's explicitly done.

Bug: 26345798
Change-Id: I749de9def8ff708592fa20abdb7da366ec52f24d

8 years agoMerge "Consistent naming for PackageManager methods."
Jeff Sharkey [Wed, 6 Jan 2016 22:26:16 +0000 (22:26 +0000)]
Merge "Consistent naming for PackageManager methods."

8 years agoConsistent naming for PackageManager methods.
Jeff Sharkey [Wed, 6 Jan 2016 21:51:50 +0000 (14:51 -0700)]
Consistent naming for PackageManager methods.

When hidden PackageManager methods take a userId argument, they
should be named explicitly with the "AsUser" suffix.  This fixes
several lagging examples so that we can pave the way to safely
start passing flags to new methods without scary overloading.

Also fix spacing issues in various logging statements.

Change-Id: I1e42f7f66427410275df713bea04f6e0445fba28

8 years agoRework op macros
Chris Craik [Wed, 6 Jan 2016 21:46:52 +0000 (13:46 -0800)]
Rework op macros

Makes it simpler to add defer-only or render-only opps.

Change-Id: I6c8ec64e76d419635429055cff6d96360d21706d

8 years agoMerge "[WindowManagerService] fix starting window issue"
Wale Ogunwale [Wed, 6 Jan 2016 22:02:24 +0000 (22:02 +0000)]
Merge "[WindowManagerService] fix starting window issue"

8 years agoExit getAllValidScorers early if not the primary. am: 5b294b45d0 am: 2a5f880c9e
Jeremy Joslin [Wed, 6 Jan 2016 21:52:43 +0000 (21:52 +0000)]
Exit getAllValidScorers early if not the primary. am: 5b294b45d0 am: 2a5f880c9e
am: 0807537ac2

* commit '0807537ac25bb0557a009e64eb1e399296c7531b':
  Exit getAllValidScorers early if not the primary.

8 years agoMerge "Update logic for resolving verifiers."
Jeff Sharkey [Wed, 6 Jan 2016 21:50:06 +0000 (21:50 +0000)]
Merge "Update logic for resolving verifiers."

8 years agoExit getAllValidScorers early if not the primary. am: 5b294b45d0
Jeremy Joslin [Wed, 6 Jan 2016 21:48:30 +0000 (21:48 +0000)]
Exit getAllValidScorers early if not the primary. am: 5b294b45d0
am: 2a5f880c9e

* commit '2a5f880c9e3c14c5e3421259f7904d9c352f79dc':
  Exit getAllValidScorers early if not the primary.

8 years agoMerge "Switch to smooth scrolling when zooming to home/end."
Ben Kwa [Wed, 6 Jan 2016 21:44:43 +0000 (21:44 +0000)]
Merge "Switch to smooth scrolling when zooming to home/end."

8 years agoExit getAllValidScorers early if not the primary.
Jeremy Joslin [Wed, 6 Jan 2016 21:43:24 +0000 (21:43 +0000)]
Exit getAllValidScorers early if not the primary.
am: 5b294b45d0

* commit '5b294b45d0d7afbed71fd2e59342c5ad7b8b7d76':
  Exit getAllValidScorers early if not the primary.

8 years agoMerge "QS Customize panel cleanup"
Jason Monk [Wed, 6 Jan 2016 21:43:13 +0000 (21:43 +0000)]
Merge "QS Customize panel cleanup"

8 years agoFix wrong annotation for PrintInfo.Builder.setStatus
Philip P. Moltmann [Wed, 6 Jan 2016 17:34:00 +0000 (09:34 -0800)]
Fix wrong annotation for PrintInfo.Builder.setStatus

Change-Id: I11fd68497c6229d16c0827f4753f485e9095649d

8 years agoSwitch to smooth scrolling when zooming to home/end.
Ben Kwa [Mon, 30 Nov 2015 22:39:31 +0000 (14:39 -0800)]
Switch to smooth scrolling when zooming to home/end.

Smooth scrolling fires off a full complement of scroll state changes,
which enables the code to more accurately detect when a scroll is
finished.

BUG=24865658,25632648

Change-Id: Ib902836fdb4a76612d3bbfc4d30d5b0b249301a5

8 years agoMerge "Some fixes for docking from navigation bar use case"
Chong Zhang [Wed, 6 Jan 2016 21:36:29 +0000 (21:36 +0000)]
Merge "Some fixes for docking from navigation bar use case"

8 years agoGrant location to SetupWizard by default - framework
Svetoslav Ganov [Wed, 6 Jan 2016 21:33:30 +0000 (13:33 -0800)]
Grant location to SetupWizard by default - framework

bug:24914976

Change-Id: I1eaf14fa1e146f0cf1821352eebd2f318d839d5a

8 years agoQS Customize panel cleanup
Jason Monk [Wed, 6 Jan 2016 21:32:29 +0000 (16:32 -0500)]
QS Customize panel cleanup

 - Use better service management to ensure onTileAdded and onTileRemoved
   are sent.
 - Fix not always registered as tunable bug.

Bug: 26423350
Change-Id: I56156de8e0edf903509dac594b471700068ebe3e

8 years agoSome fixes for docking from navigation bar use case
Chong Zhang [Tue, 5 Jan 2016 21:42:44 +0000 (13:42 -0800)]
Some fixes for docking from navigation bar use case

- Do not set replace window if we are keeping the window.

- After we received the app's addWindow request, do a reset of the
timeout timer to give the app more time to finish drawing. This
reduces the chance of the flash due to the old window being removed
before new window is drawn.

- If we really hit timeout limit, make sure the replaced window
is removed by using removeWindowInnerLocked(), not removeWindowLocked().
The latter does not actually remove the window if it's exiting,
and this leaves the window in the stack and marked not for
for replacing, then it can never be removed.

bug: 26324082

Change-Id: I59594798079481cba9490c4754de1b16533e72fe

8 years agoMerge "Reinstate mime icons on grid tiles."
Ben Kwa [Wed, 6 Jan 2016 21:13:29 +0000 (21:13 +0000)]
Merge "Reinstate mime icons on grid tiles."

8 years agoImproved output for 'dumpsys window displays'
Wale Ogunwale [Wed, 6 Jan 2016 20:36:34 +0000 (12:36 -0800)]
Improved output for 'dumpsys window displays'

New format makes it easier to parse during CTS testing.

Bug: 19225708
Change-Id: Ia9a75ca92b6c10eefcb07cabea9852e514807b08

8 years agoUpdate logic for resolving verifiers.
Jeff Sharkey [Wed, 6 Jan 2016 19:26:11 +0000 (12:26 -0700)]
Update logic for resolving verifiers.

Verifiers or installers may not be encryption-aware, or the user may
have disabled them, so we probe pretty deeply during system boot to
resolve them.  Use the new MATCH_SYSTEM_ONLY flag to limit results to
packages on the system image.

When there are multiple matches, pick the one with highest priority
instead of crashing the system.

Switch to updated MATCH_ constants in more places.

Bug: 26250295
Change-Id: Ia7a3b1fb74da6c3b9d2c2edbf1deaa9fb52fc40a

8 years agoMerge "Cache XML blocks against file name rather than resource ID"
Alan Viverette [Wed, 6 Jan 2016 20:36:05 +0000 (20:36 +0000)]
Merge "Cache XML blocks against file name rather than resource ID"

8 years ago[DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.
Tyler Gunn [Wed, 6 Jan 2016 20:31:00 +0000 (20:31 +0000)]
[DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.
am: ae85bc3c65  -s ours

* commit 'ae85bc3c65b33b8b00b610246e41e282d16605b9':
  [DO NOT MERGE] Add "acceptRingingCall()" API which accepts a videoState.

8 years agoMerge "Clean up asset manager package-private methods"
Alan Viverette [Wed, 6 Jan 2016 20:29:49 +0000 (20:29 +0000)]
Merge "Clean up asset manager package-private methods"

8 years agoMerge "Skip the cache when loading drawables from a foreign density"
Alan Viverette [Wed, 6 Jan 2016 20:29:19 +0000 (20:29 +0000)]
Merge "Skip the cache when loading drawables from a foreign density"

8 years agoCache XML blocks against file name rather than resource ID
Alan Viverette [Wed, 6 Jan 2016 20:27:35 +0000 (15:27 -0500)]
Cache XML blocks against file name rather than resource ID

Caching against resource ID leads to incorrect cache hits, since multiple
files (ex. within drawable-mdpi, drawable-ldpi) may map to the same ID.

Also adds nullability annotations.

Bug: 26400880
Change-Id: I4d83caf3c44dc9b546511753e9e72171e8850eb2

8 years agoMerge "[WindowManagerService] fix starting window issue" am: 8683f1b160
Wale Ogunwale [Wed, 6 Jan 2016 20:27:04 +0000 (20:27 +0000)]
Merge "[WindowManagerService] fix starting window issue" am: 8683f1b160
am: a7582b55e7  -s ours

* commit 'a7582b55e789f76fa18364950a93193ba7c0b2dd':
  [WindowManagerService] fix starting window issue

8 years agoReinstate mime icons on grid tiles.
Ben Kwa [Wed, 6 Jan 2016 20:10:18 +0000 (12:10 -0800)]
Reinstate mime icons on grid tiles.

- Add code to restore the mime icon on grid tiles (previously removed
  while tile layouts were being worked on).

- Switch mime icons from pngs to vector drawables.

BUG=24326989

Change-Id: I38b54256c6eca79052decadb6d138f658d03b951

8 years agoAAPT2: Port AAPT pseudolocalization to AAPT2
Adam Lesinski [Thu, 17 Dec 2015 21:03:11 +0000 (13:03 -0800)]
AAPT2: Port AAPT pseudolocalization to AAPT2

Pseudolocalization happens at the compile phase. Pseudolocalized
values are weak, such that manually specified values will take precedence.

Change-Id: I5e064ce0d270c9f4f9022f75aecedab9d45bc980

8 years agoMerge "More logging for ANR track-down"
Rob Carr [Wed, 6 Jan 2016 19:36:13 +0000 (19:36 +0000)]
Merge "More logging for ANR track-down"

8 years agoMerge "Collect user creation metrics"
Fyodor Kupolov [Wed, 6 Jan 2016 19:10:19 +0000 (19:10 +0000)]
Merge "Collect user creation metrics"

8 years agoMerge "Change fragment removal order for fragment replacement."
Aurimas Liutikas [Wed, 6 Jan 2016 19:05:36 +0000 (19:05 +0000)]
Merge "Change fragment removal order for fragment replacement."

8 years agoMore logging for ANR track-down
Robert Carr [Wed, 6 Jan 2016 19:01:43 +0000 (11:01 -0800)]
More logging for ANR track-down

More logging for ANR track-down. Seems to relate
to starting windows hanging around during app
transitions.

Bug: 26157153
Change-Id: Ie88d0c97f11bbc6fae029cf28b07b329188e5f86

8 years ago[WindowManagerService] fix starting window issue
Ronnie Leng [Mon, 4 Jan 2016 17:36:08 +0000 (11:36 -0600)]
[WindowManagerService] fix starting window issue

Symptom:
1. Acitivity A and B belong to same task.
2. A is started and start B in its code
3. B is opened with blank screen

If starting icon has been display, both startingWindow and
startingView should not be null.
Current logic only uses judgement on startWindow. In above
case, it leads startingView set to null as A and B shares
the same starting window due to same task. Then system will
not get chance to remove startingView as it is null.

It needs add judgement on startingView.

Based on https://android-review.googlesource.com/#/c/194370/

Change-Id: I6cfa1a3ebce93ce435cc2d9ada239b1e808988de

8 years agoMerge "Add missing @deprecated comments to canvas methods"
Chris Craik [Wed, 6 Jan 2016 18:32:50 +0000 (18:32 +0000)]
Merge "Add missing @deprecated comments to canvas methods"

8 years agoMerge "Fixed corner-case scenario where a screenshot is finished after the share...
Felipe Leme [Wed, 6 Jan 2016 18:28:38 +0000 (18:28 +0000)]
Merge "Fixed corner-case scenario where a screenshot is finished after the share notification is sent."

8 years agoMerge "Check api level before throwing in drawable setters"
Chris Craik [Wed, 6 Jan 2016 18:18:07 +0000 (18:18 +0000)]
Merge "Check api level before throwing in drawable setters"

8 years agoFixed corner-case scenario where a screenshot is finished after the share
Felipe Leme [Wed, 6 Jan 2016 17:57:23 +0000 (09:57 -0800)]
Fixed corner-case scenario where a screenshot is finished after the share
notification is sent.

Prior to this change, if a screenshot finished after the share
notification was sent, it would replace the share notification with a
progress notification, and the share notification would never be sent
again.

Also improved the test cases that automatically generate a screenshot
but don't use it to wait for the screenshot to finish before proceeding,
otherwise it could cause a future test to fail (if the screenshot is
finished after the initial test is completed).

Change-Id: I6e2a6549ebb48e5bebf5aa78d1bda94404c1812b

8 years agoMerge "Add Ethernet feature."
Jeff Sharkey [Wed, 6 Jan 2016 18:04:57 +0000 (18:04 +0000)]
Merge "Add Ethernet feature."

8 years agoAdd Ethernet feature.
Jeff Sharkey [Wed, 6 Jan 2016 18:02:52 +0000 (11:02 -0700)]
Add Ethernet feature.

Change-Id: I1f1badff5a8c9237d9489497e36e2578266e34b4

8 years agoMerge "Discourage use of "_data" column."
Jeff Sharkey [Wed, 6 Jan 2016 17:26:25 +0000 (17:26 +0000)]
Merge "Discourage use of "_data" column."

8 years agoDiscourage use of "_data" column.
Jeff Sharkey [Wed, 6 Jan 2016 00:30:57 +0000 (17:30 -0700)]
Discourage use of "_data" column.

Moving forward, all client file access really needs to be going
through explicit APIs like openFileDescriptor(), since that allows
the provider to better protect its underlying files.

This change also changes several classes to use the AutoClosable
pattern, which enables try-with-resources usage.  Older release()
methods are deprecated in favor of close().

Uniformly apply CloseGuard across several classes, using
AtomicBoolean to avoid double-freeing, and fix several resource
leaks and bugs related to MediaScanner allocation.  Switch
MediaScanner and friends to use public API instead of raw AIDL calls.

Bug: 22958127
Change-Id: Id722379f72c9e4b80d8b72550d7ce90e5e2bc786

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 6 Jan 2016 17:11:20 +0000 (17:11 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 6 Jan 2016 17:05:25 +0000 (18:05 +0100)]
Import translations. DO NOT MERGE

Change-Id: I00754c832145f46420748c7e94311ec300a8d96e
Auto-generated-cl: translation import

8 years agoMerge "Work Challenge: Handle Recents launches"
Clara Bayarri [Wed, 6 Jan 2016 16:57:55 +0000 (16:57 +0000)]
Merge "Work Challenge: Handle Recents launches"

8 years agoMerge "Add support message for device admins"
Kenny Guy [Wed, 6 Jan 2016 16:27:18 +0000 (16:27 +0000)]
Merge "Add support message for device admins"

8 years agoWork Challenge: Handle Recents launches
Clara Bayarri [Fri, 4 Dec 2015 15:36:26 +0000 (15:36 +0000)]
Work Challenge: Handle Recents launches

Intercept calls to start activities from the recents
stack and show the Work Challenge if needed. This requires
passing the taskId to ConfirmDeviceCredential so it can
launch the recents task itself when the credentials are
confirmed.

Change-Id: I013b134f3f31a35b551ad683c68cc89b8af44499

8 years agoSkip the cache when loading drawables from a foreign density
Alan Viverette [Wed, 6 Jan 2016 16:11:53 +0000 (11:11 -0500)]
Skip the cache when loading drawables from a foreign density

Bug: 26400880
Change-Id: I87c06b30afc61495fe62aa6a9dfe77990200cde7

8 years agoMerge "[WindowManagerService] fix starting window issue"
Wale Ogunwale [Wed, 6 Jan 2016 15:55:02 +0000 (15:55 +0000)]
Merge "[WindowManagerService] fix starting window issue"
am: 8683f1b160

* commit '8683f1b160c10184aa15cec1b8ef776e2ce8fa9a':
  [WindowManagerService] fix starting window issue

8 years agoRevert "Revert "Hide static setDefault methods in ICU4J""
Neil Fuller [Wed, 6 Jan 2016 15:46:59 +0000 (15:46 +0000)]
Revert "Revert "Hide static setDefault methods in ICU4J""

This reverts commit 2be787e359c76086b57dc9f35868da9db71099e8.

It adds the missing file from the original commit.

Change-Id: Ia2c4a0f3fcc7ce1de222fa39b7fdf2ef7880468a

8 years agoMerge "[WindowManagerService] fix starting window issue"
Wale Ogunwale [Wed, 6 Jan 2016 15:47:05 +0000 (15:47 +0000)]
Merge "[WindowManagerService] fix starting window issue"