OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Refactored the BUGREPORT_RECEIVED logic into a new service."
Felipe Leme [Thu, 26 Nov 2015 00:14:30 +0000 (00:14 +0000)]
Merge "Refactored the BUGREPORT_RECEIVED logic into a new service."

8 years agoMerge "Initial integration test for BugReportReceiver."
Felipe Leme [Thu, 26 Nov 2015 00:14:03 +0000 (00:14 +0000)]
Merge "Initial integration test for BugReportReceiver."

8 years agoMerge "Rename PhoneBase to Phone."
Amit Mahajan [Wed, 25 Nov 2015 23:48:05 +0000 (23:48 +0000)]
Merge "Rename PhoneBase to Phone."

8 years agoMerge "Revert "Destroy docked divider surface when it's hidden.""
Filip Gruszczynski [Wed, 25 Nov 2015 23:20:25 +0000 (23:20 +0000)]
Merge "Revert "Destroy docked divider surface when it's hidden.""

8 years agoRevert "Destroy docked divider surface when it's hidden."
Filip Gruszczynski [Wed, 25 Nov 2015 23:01:48 +0000 (15:01 -0800)]
Revert "Destroy docked divider surface when it's hidden."

This reverts commit cb5f57bc580d7f73b93c8f504daa4dcd74cdce72.

Change-Id: I1f77e1ccd5382ed57b8e4165afd79db5223f51c1

8 years agoMerge "Fix build breakage in BridgeIInputMethodManager."
Yohei Yukawa [Wed, 25 Nov 2015 22:33:49 +0000 (22:33 +0000)]
Merge "Fix build breakage in BridgeIInputMethodManager."

8 years agoFix build breakage in BridgeIInputMethodManager.
Yohei Yukawa [Wed, 25 Nov 2015 22:21:01 +0000 (14:21 -0800)]
Fix build breakage in BridgeIInputMethodManager.

This is a follow up CL for 35d3f37bd51268cc99d81a3f537ac364d178e851 [1],
which changed some method signatures of IInputMethodManager.

  [1]: Ia1fe120af7d71495c5f3a4fc0ec6390efb8240ca

We need to update BridgeIInputMethodManager.java every time when we
change IInputMethodManager.

Bug: 25373872
Change-Id: I126dc4234f921039a9d29010ea411a0a7d2ef6c6

8 years agoMerge "Support projection in OpReorderer"
Chris Craik [Wed, 25 Nov 2015 22:14:42 +0000 (22:14 +0000)]
Merge "Support projection in OpReorderer"

8 years agoMerge "Allow to specify which user the call should be inserted to"
Tony Mak [Wed, 25 Nov 2015 22:10:26 +0000 (22:10 +0000)]
Merge "Allow to specify which user the call should be inserted to"

8 years agoSupport projection in OpReorderer
Chris Craik [Wed, 25 Nov 2015 00:40:09 +0000 (16:40 -0800)]
Support projection in OpReorderer

bug:22480459

Change-Id: Iceb71732dc50957cfb47fa1ba9b8e18e6fc51132

8 years agoAllow to specify which user the call should be inserted to
Tony Mak [Wed, 25 Nov 2015 21:55:52 +0000 (21:55 +0000)]
Allow to specify which user the call should be inserted to

Two changes:
1. Allow to specify which user the call is inserted to
2. Store addForAllUsers in call, so that we do not need to copy every call

Change-Id: I8fc9e8e4f2e0bdb0049ca2914fdf8908f62b3eb2

8 years agoMerge "Don't call DPM from UserManager to avoid lock inversion"
Makoto Onuki [Wed, 25 Nov 2015 21:51:19 +0000 (21:51 +0000)]
Merge "Don't call DPM from UserManager to avoid lock inversion"

8 years agoMerge "Move BakedOpDispatcher to separate file"
Chris Craik [Wed, 25 Nov 2015 21:38:56 +0000 (21:38 +0000)]
Merge "Move BakedOpDispatcher to separate file"

8 years agoMove BakedOpDispatcher to separate file
Chris Craik [Wed, 25 Nov 2015 21:27:33 +0000 (13:27 -0800)]
Move BakedOpDispatcher to separate file

Change-Id: If7aad6db6b7e54a33eac9b9eddbe8cd844207282

8 years agoMerge "Implement checkClientTrusted" am: 8e19803a6a am: a4a6cf9b51
Chad Brubaker [Wed, 25 Nov 2015 20:55:01 +0000 (20:55 +0000)]
Merge "Implement checkClientTrusted" am: 8e19803a6a am: a4a6cf9b51
am: 52ae900a29

* commit '52ae900a291844b6454fdb5f9edf65abb95c6fa9':
  Implement checkClientTrusted

8 years agoMerge "Fix RecordingCanvas::refPaint, add tests"
Chris Craik [Wed, 25 Nov 2015 20:51:47 +0000 (20:51 +0000)]
Merge "Fix RecordingCanvas::refPaint, add tests"

8 years agoMerge "Implement checkClientTrusted" am: 8e19803a6a
Chad Brubaker [Wed, 25 Nov 2015 20:48:25 +0000 (20:48 +0000)]
Merge "Implement checkClientTrusted" am: 8e19803a6a
am: a4a6cf9b51

* commit 'a4a6cf9b51e903087e2c7f77f2dcb814a0b43fb8':
  Implement checkClientTrusted

8 years agoMerge "Implement checkClientTrusted"
Chad Brubaker [Wed, 25 Nov 2015 20:41:03 +0000 (20:41 +0000)]
Merge "Implement checkClientTrusted"
am: 8e19803a6a

* commit '8e19803a6a10ac44ca59cf15a2ae1f2eedb13cf8':
  Implement checkClientTrusted

8 years agoMerge "Tell the reason why IMM called startInput()."
Yohei Yukawa [Wed, 25 Nov 2015 20:36:13 +0000 (20:36 +0000)]
Merge "Tell the reason why IMM called startInput()."

8 years agoMerge "Implement checkClientTrusted"
Chad Brubaker [Wed, 25 Nov 2015 20:33:31 +0000 (20:33 +0000)]
Merge "Implement checkClientTrusted"

8 years agoImplement checkClientTrusted
Chad Brubaker [Wed, 25 Nov 2015 18:39:28 +0000 (10:39 -0800)]
Implement checkClientTrusted

Bug: 25885029
Change-Id: I07ef11a556f1a1a65456ae5e3904c56902c6e82a

8 years agoFixing task view heights in paging tasks
Winson [Wed, 25 Nov 2015 19:18:56 +0000 (11:18 -0800)]
Fixing task view heights in paging tasks

- Now, all task views will be bounded by the stack rect, and the
  thumbnail bitmaps will be scaled accordingly to fit either by width
  (when stacked) or to the view rect (when freeform)
- Fixing issue where the history button was not offset in freeform
- Tweaking thumbnail sizes of fullscreen screenshots
- Still requires changes to fix clipping to the correct aspect ratio in
  freeform.

Change-Id: I678b87c2f06947d32f3bb7c60a35f28eb36b5a68

8 years agoSeparating the stack vs the historical tasks.
Winson [Tue, 24 Nov 2015 23:00:31 +0000 (15:00 -0800)]
Separating the stack vs the historical tasks.

- Adding a notion of session to the stack.  If the history is enabled,
  the stack will now be constrained to show either tasks that were last
  active in a window of time, or a minimum number of tasks.
- Giving the history button the full space above the stack so that it
  looks more balanced.

Change-Id: If7b647349e8bb164ae86fd6dba3f7e974257eb5b

8 years agoMerge "Adding history view."
Winson Chung [Wed, 25 Nov 2015 19:43:10 +0000 (19:43 +0000)]
Merge "Adding history view."

8 years agoAdding history view.
Winson [Sat, 21 Nov 2015 00:00:45 +0000 (16:00 -0800)]
Adding history view.

- Initial changes to show a history view within Overview (behind tuner
  flag)
- Restoring the task view dim in the stack

Change-Id: I0503d11768736c86f3145942404391dfacd0ddd6

8 years agoMerge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)." am: e766e399c5...
Alex Klyubin [Wed, 25 Nov 2015 19:23:55 +0000 (19:23 +0000)]
Merge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)." am: e766e399c5 am: 4bc1904119
am: 0540e1b127

* commit '0540e1b127e03ecc97c32719ac79769d69c16aec':
  Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).

8 years agoMerge "Extend the \'qwerty\' key layout" am: 9a83f115ad am: e579edc76b
Jim Kaye [Wed, 25 Nov 2015 19:22:37 +0000 (19:22 +0000)]
Merge "Extend the \'qwerty\' key layout" am: 9a83f115ad am: e579edc76b
am: b159adb4a8

* commit 'b159adb4a89de42156537294b39d163c26d04d88':
  Extend the 'qwerty' key layout

8 years agoMerge "ssl: make DistinguishedNameParser a package-private class in org.apache.http...
Sergio Giro [Wed, 25 Nov 2015 19:21:11 +0000 (19:21 +0000)]
Merge "ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl" am: d5a5d547d0 am: d9942006e4
am: dd52b3db36

* commit 'dd52b3db3678dc0840b82f5406d445cea59d2b59':
  ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl

8 years agoDon't call DPM from UserManager to avoid lock inversion
Makoto Onuki [Wed, 25 Nov 2015 18:05:17 +0000 (10:05 -0800)]
Don't call DPM from UserManager to avoid lock inversion

- Also make sure DPMS.mOwners is always guarded with DPMS.this.
(and remove synchronization from Owners.)

Bug 25796840

Change-Id: I83f7b78e7b437d9c2a2b1d6e714346cd15f95330

8 years agoMerge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)." am: e766e399c5
Alex Klyubin [Wed, 25 Nov 2015 19:13:21 +0000 (19:13 +0000)]
Merge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)." am: e766e399c5
am: 4bc1904119

* commit '4bc1904119875dd0e8c63f87106e8ab293cc9a7a':
  Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).

8 years agoMerge "Only create surface when showing window if it destroys it when hiding."
Filip Gruszczynski [Wed, 25 Nov 2015 19:09:21 +0000 (19:09 +0000)]
Merge "Only create surface when showing window if it destroys it when hiding."

8 years agoMerge "Don't preserve the window on client side when pinning activity."
Filip Gruszczynski [Wed, 25 Nov 2015 19:09:06 +0000 (19:09 +0000)]
Merge "Don't preserve the window on client side when pinning activity."

8 years agoTell the reason why IMM called startInput().
Yohei Yukawa [Wed, 25 Nov 2015 19:07:19 +0000 (11:07 -0800)]
Tell the reason why IMM called startInput().

As a preparation to fix Bug 25373872, this CL introduces an additional
int parameter into the following two methods
  - IInputMethodManager.startInput()
  - IInputMethodManager.windowGainedFocus()
so that IMMS can know why IMM needs to start input.  Currently the
"startInputReason" parameter is used only for debug message only when
the OS is rebuilt with flipping IMMS#DEBUG to true.  Basically this
should have no impact in production builds except for a tiny overhead
of having one int parameter in some internal IPC calls.

Note that since 7663d80f6b6fd6ca7a736c3802013a09c0abdeb9 [1] basically
IMMS#windowGainedFocus() has been a superset of IMMS#startInput().
Hence we should pass to "startInputReason" parameter to
IMMS#windowGainedFocus() as well as IMMS#startInput().

  [1]: Icb58bef75ef4bf9979f3e2ba88cea20db2e2c3fb

Bug: 25373872
Change-Id: Ia1fe120af7d71495c5f3a4fc0ec6390efb8240ca

8 years agoMerge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."
Alex Klyubin [Wed, 25 Nov 2015 19:05:09 +0000 (19:05 +0000)]
Merge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."
am: e766e399c5

* commit 'e766e399c59669156284c330ae3f38f79230d930':
  Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).

8 years agoMerge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."
Alex Klyubin [Wed, 25 Nov 2015 18:59:35 +0000 (18:59 +0000)]
Merge "Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer)."

8 years agoOnly create surface when showing window if it destroys it when hiding.
Filip Gruszczynski [Wed, 25 Nov 2015 18:51:25 +0000 (10:51 -0800)]
Only create surface when showing window if it destroys it when hiding.

The visibility of a window might be toggled to true even when it doesn't
have a surface, which is a case for windows under the lock screen. We
can't blindly create surfaces in that case, but only do it for the
windows that destroy their surfaces when they are hidden.

Bug: 25879215
Change-Id: I6cf2c6810ce02fba0d2207a56de9924c0270dfeb

8 years agoMerge "AndroidManifest.xml: More protected broadcasts"
Nick Kralevich [Wed, 25 Nov 2015 17:43:39 +0000 (17:43 +0000)]
Merge "AndroidManifest.xml: More protected broadcasts"

8 years agoAndroidManifest.xml: More protected broadcasts
Nick Kralevich [Wed, 25 Nov 2015 17:09:27 +0000 (09:09 -0800)]
AndroidManifest.xml: More protected broadcasts

Make the following broadcasts protected:

  android.intent.action.PRE_BOOT_COMPLETED
  android.intent.action.USER_INITIALIZE

Bug: 25022002
Change-Id: Ic36e29c51b930e4d7367688ab837c6a40d74ec23

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 25 Nov 2015 16:58:13 +0000 (16:58 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 25 Nov 2015 16:47:48 +0000 (17:47 +0100)]
Import translations. DO NOT MERGE

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

8 years agossl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl
Sergio Giro [Wed, 25 Nov 2015 15:22:04 +0000 (15:22 +0000)]
ssl: make DistinguishedNameParser a package-private class in org.apache.http.conn.ssl

Needed by AbstractVerifier, needed by framework/base

DistinguishedNameParser taken from libcore, commit a5c16db453098d7ab945edd379a

This commit was adapted from commit 50dc0c27ff00bfd82fb9cce1c86312efa550170f

Not cherrypicking from dev branch as the original CL to do it went wrong
and would need to cherrypick more changes

Change-Id: I1c282b731c778a79775d9d54b7b7d7223d84397d

8 years agoMerge "Add new TestApi annotation."
Michael Wright [Wed, 25 Nov 2015 14:12:22 +0000 (14:12 +0000)]
Merge "Add new TestApi annotation."

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 25 Nov 2015 13:50:24 +0000 (13:50 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 25 Nov 2015 13:48:34 +0000 (05:48 -0800)]
Import translations. DO NOT MERGE

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

8 years agoMerge "Import translations. DO NOT MERGE"
Geoff Mendal [Wed, 25 Nov 2015 13:37:42 +0000 (13:37 +0000)]
Merge "Import translations. DO NOT MERGE"

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 25 Nov 2015 13:37:11 +0000 (05:37 -0800)]
Import translations. DO NOT MERGE

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

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 25 Nov 2015 13:18:41 +0000 (05:18 -0800)]
Import translations. DO NOT MERGE

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

8 years agoAdd new TestApi annotation.
Michael Wright [Fri, 6 Nov 2015 15:21:13 +0000 (15:21 +0000)]
Add new TestApi annotation.

This allows us to build a special jar with methods exposed strictly
for CTS. An @TestApi should not be a public API or a system
API.

Bug: 25608286

Change-Id: Ifbc64bb6958d2deec5b9cf0b944acfd068f0f051

8 years agoMerge "Add ICU4J APIs for Android"
Neil Fuller [Wed, 25 Nov 2015 09:38:08 +0000 (09:38 +0000)]
Merge "Add ICU4J APIs for Android"

8 years agoMerge "Make the new NetworkRequest flavour consistent with the others."
Lorenzo Colitti [Wed, 25 Nov 2015 07:46:31 +0000 (07:46 +0000)]
Merge "Make the new NetworkRequest flavour consistent with the others."

8 years agoMerge "Selection Test: selection handle snaps to word boundaries."
Keisuke Kuroyanagi [Wed, 25 Nov 2015 07:37:29 +0000 (07:37 +0000)]
Merge "Selection Test: selection handle snaps to word boundaries."

8 years agoMerge "Selection Test: selection handle doesn't pass anther one."
Keisuke Kuroyanagi [Wed, 25 Nov 2015 07:37:10 +0000 (07:37 +0000)]
Merge "Selection Test: selection handle doesn't pass anther one."

8 years agoMerge "Add selection handle multiline dragging tests."
Keisuke Kuroyanagi [Wed, 25 Nov 2015 07:31:37 +0000 (07:31 +0000)]
Merge "Add selection handle multiline dragging tests."

8 years agoMerge "Add selection handle dragging tests."
Keisuke Kuroyanagi [Wed, 25 Nov 2015 07:24:17 +0000 (07:24 +0000)]
Merge "Add selection handle dragging tests."

8 years agoSelection Test: selection handle snaps to word boundaries.
Keisuke Kuroyanagi [Tue, 24 Nov 2015 09:56:20 +0000 (18:56 +0900)]
Selection Test: selection handle snaps to word boundaries.

Bug: 25730231

Change-Id: I12d3fde4ff5b52aa6673de915c53b6a5f72f4b35

8 years agoSelection Test: selection handle doesn't pass anther one.
Keisuke Kuroyanagi [Tue, 24 Nov 2015 09:51:48 +0000 (18:51 +0900)]
Selection Test: selection handle doesn't pass anther one.

Bug: 25730231
Change-Id: Ibca75126a0b2d4320d1f67dc35a2b0ac20fcdcd2

8 years agoAdd selection handle multiline dragging tests.
Keisuke Kuroyanagi [Tue, 24 Nov 2015 09:48:28 +0000 (18:48 +0900)]
Add selection handle multiline dragging tests.

Bug: 25730231

Change-Id: I23b9e35d7a5ea8d03d8634ffca0e186ea76ebc99

8 years agoAdd selection handle dragging tests.
Keisuke Kuroyanagi [Wed, 25 Nov 2015 07:15:15 +0000 (16:15 +0900)]
Add selection handle dragging tests.

- Set an id for each HandleView to access the hanlde.
- Rename DragOnTextViewActions to DragAction to use it for
dragging handles.
- Introduce HandleCoordinates to provide proper coordinates
for handles.

More tests will be added in following CLs.

Bug: 25730231
Change-Id: I9276bf2f983983ec9aae0ddcf674d3dcee566892

8 years agoMake the new NetworkRequest flavour consistent with the others.
Lorenzo Colitti [Wed, 25 Nov 2015 06:47:14 +0000 (15:47 +0900)]
Make the new NetworkRequest flavour consistent with the others.

Change-Id: I491eb0b6d2fa0f1c472c97ef403488407e71803e

8 years agoMerge "Temporarily add a requestNetwork flavour that takes a legacy type"
Lorenzo Colitti [Wed, 25 Nov 2015 06:37:25 +0000 (06:37 +0000)]
Merge "Temporarily add a requestNetwork flavour that takes a legacy type"

8 years agoMerge changes I456984a2,Id4d1031b
Lorenzo Colitti [Wed, 25 Nov 2015 04:37:59 +0000 (04:37 +0000)]
Merge changes I456984a2,Id4d1031b

* changes:
  Switch the DHCP client to the new AlarmManager callback interface
  Refactor alarm setting code in preparation for switch to callback

8 years agoMerge "Make suggestion window style material."
Seigo Nonaka [Wed, 25 Nov 2015 03:24:41 +0000 (03:24 +0000)]
Merge "Make suggestion window style material."

8 years agoTemporarily add a requestNetwork flavour that takes a legacy type
Lorenzo Colitti [Wed, 25 Nov 2015 03:00:52 +0000 (12:00 +0900)]
Temporarily add a requestNetwork flavour that takes a legacy type

This method is public @hide to support progressive refactoring of
tethering away from startUsingNetworkFeature to requestNetwork,
without getting in the way of the CONNECTIVITY_ACTION cleanup in
b/22513439 .

Bug: 9580643
Bug: 22513439
Change-Id: I9053ec746cc8f415a2d5849f044667eeb14e1b19

8 years agoRename PhoneBase to Phone.
Amit Mahajan [Tue, 24 Nov 2015 23:32:45 +0000 (15:32 -0800)]
Rename PhoneBase to Phone.

Bug: 25793157
Change-Id: I4380c3ff08d1a2b5725da075bae5f208f1b09569

8 years agoFixing two small regressions in stack layout.
Winson [Wed, 25 Nov 2015 01:50:17 +0000 (17:50 -0800)]
Fixing two small regressions in stack layout.

- Fixed issue with max scroll position being placed beyond the max
  scroll if the task height is larger than the stack height.
- Fixed issue with single task offsets being calculated incorrectly

Change-Id: I3cb1ecf2c13de7196bd68cd4f9d9f4f4736ed3ce

8 years agoMerge "Crash when exception in event bus handler happens"
Jorim Jaggi [Wed, 25 Nov 2015 01:52:48 +0000 (01:52 +0000)]
Merge "Crash when exception in event bus handler happens"

8 years agoMerge "Allow stacks to be placed outside of display"
Jorim Jaggi [Wed, 25 Nov 2015 01:49:50 +0000 (01:49 +0000)]
Merge "Allow stacks to be placed outside of display"

8 years agoCrash when exception in event bus handler happens
Jorim Jaggi [Wed, 25 Nov 2015 01:48:26 +0000 (17:48 -0800)]
Crash when exception in event bus handler happens

Also fixes another crash when dragging in recents.

Change-Id: I24eff235adc63190369a7e054e65c55fdf594931

8 years agoSupport scrolling for non-resizeable tasks in side-by-side mode
Chong Zhang [Tue, 17 Nov 2015 20:12:03 +0000 (12:12 -0800)]
Support scrolling for non-resizeable tasks in side-by-side mode

Display toast when a non-resizeable task is put into side-by-side mode.

Scroll the task upon a two-finger scroll gesture.

bug: 25433902

Change-Id: I69967056a564cfe7773afb80aa7e7ea7167a791a

8 years agoRefactored the BUGREPORT_RECEIVED logic into a new service.
Felipe Leme [Wed, 25 Nov 2015 01:31:47 +0000 (17:31 -0800)]
Refactored the BUGREPORT_RECEIVED logic into a new service.

Although this Change doesn't modify the workflow logic itself, it paves
the way for upcoming changes where the overall bug report progress will
be monitored by this service.

BUG: 25794470
Change-Id: Id0c867b04b595b5d31d11531405408f3423dd68b

8 years agoAllow stacks to be placed outside of display
Jorim Jaggi [Wed, 25 Nov 2015 01:37:03 +0000 (17:37 -0800)]
Allow stacks to be placed outside of display

When dismissing the docked stack, we animate the divider to position
-12dp, so the full-screen stack is exactly full-screen when the dismiss
animation is done. Previously, this was prevented by window manager.
Allow it to fix the animation.

Change-Id: Iee4505023dc3f6907d56851965b156235f9f97f2

8 years agoCustom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).
Alex Klyubin [Wed, 25 Nov 2015 01:22:27 +0000 (17:22 -0800)]
Custom engineUpdate/engineDoFinal(ByteBuffer, ByteBuffer).

This makes Android Keystore's Cipher implementation use a custom
implementation of engineUpdate(ByteBuffer, ByteBuffer) and
engineDoFinal(ByteBuffer, ByteBuffer). The implementation is
explicitly designed around the fact that Android Keystore transmits
input and receives output via Binder and thus there's no need to
attempt any optimizations to avoid copying input and output.

Bug: 25863382
Change-Id: I311072891f02f5e7a283628b51b8d6058b55231c

8 years agoMerge "Destroy docked divider surface when it's hidden."
Filip Gruszczynski [Wed, 25 Nov 2015 01:10:59 +0000 (01:10 +0000)]
Merge "Destroy docked divider surface when it's hidden."

8 years agoMerge "Don't trigger click if long press already happened"
Jorim Jaggi [Wed, 25 Nov 2015 00:55:44 +0000 (00:55 +0000)]
Merge "Don't trigger click if long press already happened"

8 years agoDestroy docked divider surface when it's hidden.
Filip Gruszczynski [Tue, 24 Nov 2015 01:57:03 +0000 (17:57 -0800)]
Destroy docked divider surface when it's hidden.

Also includes bunch of small refactorings:
* destroying surfaces is now fully contained within
WindowManagerServices and mDestroySurface can be privatized;
* WMS.isDockedStackResizingLocked can be removed;
* mScreenCaptureDisabled changes from being SparseArray<Boolean> to
SparseBooleanArray, which not only avoids boxing but also makes code
simpler (no need to check for null)

Bug: 25844096
Change-Id: I0e5462760ffbc947ce6dc52ef429fa270ffc6786

8 years agoMerge "DA receiver should be protected with BIND_DEVICE_ADMIN."
Makoto Onuki [Wed, 25 Nov 2015 00:30:41 +0000 (00:30 +0000)]
Merge "DA receiver should be protected with BIND_DEVICE_ADMIN."

8 years agoDA receiver should be protected with BIND_DEVICE_ADMIN.
Makoto Onuki [Thu, 5 Nov 2015 21:55:37 +0000 (13:55 -0800)]
DA receiver should be protected with BIND_DEVICE_ADMIN.

- DPM.setActiveAdmin() will not accept DAs without BIND_DEVICE_ADMIN
when it's targeting NYC or above.

- DAs without BIND_DEVICE_ADMIN targeting MNC or below will still be
accepted. (with a logcat warning)

- DAs that are already set on a device without BIND_DEVICE_ADMIN
will still be accepted regardless of the target API level, even when
it's upgraded to a version targeting NYC.

Bug 24168653

Change-Id: I1914c2ec99135d9dd8cbac3f6914f9e43bafacc8

8 years agoDon't trigger click if long press already happened
Jorim Jaggi [Wed, 25 Nov 2015 00:07:55 +0000 (16:07 -0800)]
Don't trigger click if long press already happened

So when long pressing recents, we don't dimiss recents
immediately again.

Change-Id: I8092cceb03bd6786b964390f7a3a93686feb1b75

8 years agoMerge "Add "acceptRingingCall()" API which accepts a videoState."
Tyler Gunn [Wed, 25 Nov 2015 00:04:13 +0000 (00:04 +0000)]
Merge "Add "acceptRingingCall()" API which accepts a videoState."

8 years agoMerge "Add DO API to get wifi mac address"
Makoto Onuki [Tue, 24 Nov 2015 23:53:35 +0000 (23:53 +0000)]
Merge "Add DO API to get wifi mac address"

8 years agoAdd "acceptRingingCall()" API which accepts a videoState.
Tyler Gunn [Fri, 23 Oct 2015 21:39:49 +0000 (14:39 -0700)]
Add "acceptRingingCall()" API which accepts a videoState.

- Added acceptRingingCall API which accepts a videostate to complement the
existing API.

Bug: 20159300
Change-Id: I2a9d53fd4dbbb0be49d95416f7e26d3ec61774cd

8 years agoAdd DO API to get wifi mac address
Makoto Onuki [Tue, 24 Nov 2015 01:15:21 +0000 (17:15 -0800)]
Add DO API to get wifi mac address

Bug 25496044

Change-Id: Ib1f0ce4ca10951edcfaa0aa79ae5c2d142a74599

8 years agoMerge "Make some static functions public so telephony tests can access them"
Amit Mahajan [Tue, 24 Nov 2015 23:34:11 +0000 (23:34 +0000)]
Merge "Make some static functions public so telephony tests can access them"

8 years agoMerge "Reload tasks when doing drag gesture"
Jorim Jaggi [Tue, 24 Nov 2015 23:22:52 +0000 (23:22 +0000)]
Merge "Reload tasks when doing drag gesture"

8 years agoMerge changes Ieb3c8c73,If494fddf,Ia9415fa6
Jorim Jaggi [Tue, 24 Nov 2015 23:11:34 +0000 (23:11 +0000)]
Merge changes Ieb3c8c73,If494fddf,Ia9415fa6

* changes:
  Add ability to supply initial bounds when docking task
  Make sure to clear pending spec
  Clear spec future when clearing transition

8 years agoReload tasks when doing drag gesture
Jorim Jaggi [Tue, 24 Nov 2015 23:09:30 +0000 (15:09 -0800)]
Reload tasks when doing drag gesture

To make sure we always have the updated stack id's
for the task.

Change-Id: I8bfda33aa26b470cb5f087cee9e8e8560c0e3ba2

8 years agoAdd ability to supply initial bounds when docking task
Jorim Jaggi [Tue, 24 Nov 2015 02:08:28 +0000 (18:08 -0800)]
Add ability to supply initial bounds when docking task

Add an optional parameter in moveTaskToDockedStack to supply an
initial rect to be used when creating the dockeds tack. Pass in
the adjusted rect when dragging up from the navbar so it doesn't
flicker anymore.

Change-Id: Ieb3c8c73b9e2a769a2ec6270bd76a713201a2aed

8 years agoMerge "DPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user"
Makoto Onuki [Tue, 24 Nov 2015 23:03:46 +0000 (23:03 +0000)]
Merge "DPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user"

8 years agoDPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user
Makoto Onuki [Thu, 19 Nov 2015 22:29:12 +0000 (14:29 -0800)]
DPM.isDeviceOwnerApp() and getDeviceOwner() now check calling user

- Previously on MNC, they would return the same result regardless who
the calling user is.

- Now they properly take DO user-id into account.  Meaning, they'll
always return false and null respectively, if the calling user doesn't
run device owner.

- Note isDeviceOwnerApp() is a public API and getDeviceOwner() is
a system API.  Meaning we're changing the behavior or non-private
APIs.

- Also cleaned up hidden APIs, and gave them explicit suffixes
to avoid confusion.  Bundled code should prefer them for clarity.

Now we have:

* APIs that work cross-users: They all require MANAGE_USERS.
boolean isDeviceOwnerAppOnAnyUser(String packageName)
ComponentName getDeviceOwnerComponentOnAnyUser()

int getDeviceOwnerUserId()
boolean isDeviceOwnedByDeviceOwner()

String getDeviceOwnerNameOnAnyUser()

* APIs that work within user.  No permissions are required.

boolean isDeviceOwnerAppOnCallingUser(String packageName)
ComponentName getDeviceOwnerComponentOnCallingUser()

Bug 24676413

Change-Id: I751a907c7aaf7b019335d67065d183236effaa80

8 years agoDon't preserve the window on client side when pinning activity.
Filip Gruszczynski [Tue, 24 Nov 2015 22:43:31 +0000 (14:43 -0800)]
Don't preserve the window on client side when pinning activity.

We were both enabling window replacement in WMS and window preserving on
the client side. This doesn't work together, because window replacement
depends on the fact that the client won't preserve the window (it needs
to receive remove and add window operations).

Bug: 25854235
Change-Id: I0625df6fbe4c29bf14f364d764de3bf63dc90961

8 years agoMake sure to clear pending spec
Jorim Jaggi [Tue, 24 Nov 2015 21:48:26 +0000 (13:48 -0800)]
Make sure to clear pending spec

So when it gets out of sync it only fails once

Change-Id: If494fddfcbcb0145e2db1caa3b7612d8452c70d4

8 years agoMerge changes from topic 'AddPrinters'
Philip P. Moltmann [Tue, 24 Nov 2015 21:33:39 +0000 (21:33 +0000)]
Merge changes from topic 'AddPrinters'

* changes:
  Create PrintDiscoverySession for future print services
  Update printer availability when printSpooler is paused. This makes the window update syncronously when in multi-window mode.

8 years agoClear spec future when clearing transition
Jorim Jaggi [Tue, 24 Nov 2015 00:49:59 +0000 (16:49 -0800)]
Clear spec future when clearing transition

Sometimes I still see an old recents animation when the transition
failed before. I believe this is because we don't clear the future
when clearing the transition.

Change-Id: Ia9415fa68c8e472c15fabccaf788762186d2d35e

8 years agoFix RecordingCanvas::refPaint, add tests
Chris Craik [Tue, 24 Nov 2015 19:41:54 +0000 (11:41 -0800)]
Fix RecordingCanvas::refPaint, add tests

Also add text align support to TestUtils::drawTextToCanvas

Change-Id: I105adb0d15e697c03adfd00a56e8ec9265953ff1

8 years agoMerge "Allow fragment state loss on fragment transaction"
Svetoslav Ganov [Tue, 24 Nov 2015 20:56:22 +0000 (20:56 +0000)]
Merge "Allow fragment state loss on fragment transaction"

8 years agoAllow fragment state loss on fragment transaction
Svetoslav [Tue, 24 Nov 2015 20:54:18 +0000 (12:54 -0800)]
Allow fragment state loss on fragment transaction

We are not saving the state of this fragment on onSaveState,
so its Okay to loose state while confirming the transaction.

bug:25847358

Change-Id: I2f6587d528b2d8b8f24a83954cc896a6ff514996

8 years agoMerge "Fix "some user restrictions not working" issue"
Makoto Onuki [Tue, 24 Nov 2015 20:34:25 +0000 (20:34 +0000)]
Merge "Fix "some user restrictions not working" issue"

8 years agoMerge "Extend the \'qwerty\' key layout" am: 9a83f115ad
Jim Kaye [Tue, 24 Nov 2015 19:42:14 +0000 (19:42 +0000)]
Merge "Extend the \'qwerty\' key layout" am: 9a83f115ad
am: e579edc76b

* commit 'e579edc76b6f3f8c977d96db6af01d73e6c93804':
  Extend the 'qwerty' key layout

8 years agoMerge "Extend the \'qwerty\' key layout"
Jim Kaye [Tue, 24 Nov 2015 19:33:57 +0000 (19:33 +0000)]
Merge "Extend the \'qwerty\' key layout"
am: 9a83f115ad

* commit '9a83f115ade900a816f0fa2beae2cdd6f54bfc54':
  Extend the 'qwerty' key layout

8 years agoMerge "Extend the 'qwerty' key layout"
Jim Kaye [Tue, 24 Nov 2015 19:27:46 +0000 (19:27 +0000)]
Merge "Extend the 'qwerty' key layout"