Commit Graph

5884 Commits

Author SHA1 Message Date
Clara Bayarri
c84e36b7ec Merge "Keyboard Shortcuts: plumb deviceId through" into nyc-dev
am: 3e5bf78

* commit '3e5bf786b7ca36fa0cc150fcd8d0e7a69ecb9db0':
  Keyboard Shortcuts: plumb deviceId through
2016-03-24 13:37:26 +00:00
Clara Bayarri
3e5bf786b7 Merge "Keyboard Shortcuts: plumb deviceId through" into nyc-dev 2016-03-24 13:30:48 +00:00
Clara Bayarri
322e4d23ea Merge "Keyboard Shortcuts: Add Keycodes for shortcut representation" into nyc-dev
am: bfd996f

* commit 'bfd996f5cd89d8c94fb23489ba62f3cab4b36f1c':
  Keyboard Shortcuts: Add Keycodes for shortcut representation
2016-03-24 11:57:26 +00:00
Clara Bayarri
bfd996f5cd Merge "Keyboard Shortcuts: Add Keycodes for shortcut representation" into nyc-dev 2016-03-24 11:49:05 +00:00
Clara Bayarri
fcd7e80b21 Keyboard Shortcuts: plumb deviceId through
Bug: 27673736
Change-Id: Ie72807aa8c2bfd142b081a6a915e101c16d31473
2016-03-24 11:47:32 +00:00
Clara Bayarri
4e850ffaa7 Keyboard Shortcuts: Add Keycodes for shortcut representation
This changes the current API given app feedback received. In order to use
keycodes as well as chars we also must implement a mapping of Keycodes to
Display labels as only keys with a single char representation are provided
by KeyCharacterMap.

Bug: 27409783
Change-Id: I3da653adc4b8cbc66a4d1aa24a5f9181f71e83c3
2016-03-24 11:47:23 +00:00
Andreas Gampe
31e9eec4ea Merge "Frameworks/base: Refactor package manager" into nyc-dev
am: a7f2bcc

* commit 'a7f2bccca3f27a2ad12397ffb52d47fceea76018':
  Frameworks/base: Refactor package manager
2016-03-24 02:08:01 +00:00
Andreas Gampe
bdd30d86ef Frameworks/base: Refactor package manager
Introduce a mapping between dexopt reasons and compiler filters. Use
reasons in package manager and other classes, where possible.

Change PackageDexOptimizer to accept a compilation filter. Adapt for
the split-out profile merging. Pass compilation filter to installd.

Bug: 27689078
Change-Id: I8c0ea6f10fbfdbd096adecc52abfd2466d048fdc
2016-03-23 16:21:21 -07:00
Yohei Yukawa
8460701b3c Merge "Make sure to call back reportFinish() on the desired Handler." into nyc-dev
am: 2c8d528

* commit '2c8d528188f2ac9e482fe29d06ca5eb683be9b87':
  Make sure to call back reportFinish() on the desired Handler.
2016-03-23 21:53:50 +00:00
Yohei Yukawa
2c8d528188 Merge "Make sure to call back reportFinish() on the desired Handler." into nyc-dev 2016-03-23 21:48:51 +00:00
Abodunrinwa Toki
f227ca6b8e Merge "FloatingToolbar: Make it more obvious that there are more items in the overflow." into nyc-dev
am: 7c89170

* commit '7c891700995276c9f6952d0e1f2a2c1882d66f3d':
  FloatingToolbar: Make it more obvious that there are more items in the overflow.
2016-03-23 19:11:05 +00:00
Abodunrinwa Toki
7c89170099 Merge "FloatingToolbar: Make it more obvious that there are more items in the overflow." into nyc-dev 2016-03-23 19:03:51 +00:00
Abodunrinwa Toki
f0f4d73b5b FloatingToolbar: Make it more obvious that there are more items in the overflow.
1. Make the overflow show part of the items hidden behind the scroll view
2. Increase the time the scrollbar is on screen so users are less likely to miss it

Bug: 27427333
Change-Id: Ia0bff5fa29cba3103263bc7d063176b0ba7ff7b9
2016-03-23 19:02:32 +00:00
Adrian Roos
e933de8e76 Merge "Ensure notification color contrast" into nyc-dev
am: 9b95f61

* commit '9b95f615c45b2dac053aa45d881f6a4b3c301342':
  Ensure notification color contrast
2016-03-23 18:44:00 +00:00
Adrian Roos
9b95f615c4 Merge "Ensure notification color contrast" into nyc-dev 2016-03-23 18:14:54 +00:00
Adrian Roos
4ff3b120ff Ensure notification color contrast
Ensure we have at least 3:1 contrast for the
action buttons. Also ensures that the inline
reply box background has 4.5:1 contrast to white.

Further modifies the color of the inline reply
background to satisfy a 4.5:1 contrast ratio for
the entered text.

Bug: 26831312
Change-Id: If42b1c99d1adee547d0a583c1a69c48ef7287c23
2016-03-23 10:49:40 -07:00
Chris Banes
d4534a3d9d Merge "Allow AlertDialog to be used in a DialogFragment" into nyc-dev
am: a62a0f7

* commit 'a62a0f72864533f2de5d1cd311ed5030c293aa2d':
  Allow AlertDialog to be used in a DialogFragment
2016-03-23 16:34:51 +00:00
Chris Banes
ccf8e661c7 Allow AlertDialog to be used in a DialogFragment
AlertController calls requestWindowFeature() too
later for DialogFragment. Fixed by moving it to the
constructor.

BUG: 27809055
Change-Id: Icef01316b4e857b41ccc29cc56bbcecd7f629342
2016-03-23 16:20:00 +00:00
Yohei Yukawa
06963ca369 Merge "Remove redundant IMM#mServedInputConnection." into nyc-dev
am: c1a72b6

* commit 'c1a72b6b74c08b0b304998838d1e792884a6354c':
  Remove redundant IMM#mServedInputConnection.
2016-03-23 05:51:14 +00:00
Yohei Yukawa
c1a72b6b74 Merge "Remove redundant IMM#mServedInputConnection." into nyc-dev 2016-03-23 05:41:08 +00:00
Yohei Yukawa
16e2c7b59a Make sure to call back reportFinish() on the desired Handler.
Before exposing #reportFinish() as a public API, we have to fix an
existing bug that my previous CL [1] for Bug 26945674 forgot to take care.

Currently BaseInputConnection#reportFinish() is always called by using
the root view's Handler.  We should move the logic to call
BaseInputConnection#reportFinishInputConnection() from ViewRootImpl to
IInputConnectionWrapper to make sure that the method in question can
always be called on the desired Handler.

To make things simple, instead of explicitly calling #reportFinish()
from IMM, this CL let ControlledInputConnectionWrapper#diactivate()
internally call #reportFinish() as needed.  This makes it easier to make
sure that #reportFinish() is called after all the queued method calls
are handled.

  [1]: Id9e579bb3e2966986cdcb1c34bc8cacfeca2e1a9
       612cce92ad

Bug: 25332806
Change-Id: Ibe94f115e607a198d12ecd3d4e4f91a7d9469c98
2016-03-22 21:27:48 -07:00
Yohei Yukawa
afb6558c8f Remove redundant IMM#mServedInputConnection.
Following two fields have basically the same lifetime.
 - InputMethodManager#mServedInputConnection
 - InputMethodManager#mServedInputConnectionWrapper
Hence we do not need to maintain both of them.

This is a preparation CL for Bug 25332806 and does not change any
user-visible behavior.

Bug: 25332806
Change-Id: I1181e067aa5bedbdf0c7ec1bcec479257aea511c
2016-03-22 20:53:08 -07:00
Wale Ogunwale
acd060d6cb Merge "Don\'t finish resolver activity onStop if it is for home intent" into nyc-dev
am: b2303dd

* commit 'b2303ddd0516881342067114d141bb8493997776':
  Don't finish resolver activity onStop if it is for home intent
2016-03-21 22:58:45 +00:00
Wale Ogunwale
b2303ddd05 Merge "Don't finish resolver activity onStop if it is for home intent" into nyc-dev 2016-03-21 22:53:10 +00:00
Wale Ogunwale
9014e66db0 Don't finish resolver activity onStop if it is for home intent
Helps avoid a continuous launch cycle if a resolver activity resolving
the home intent is the only activity in the system and the lock screen
is up which will put the activity in the stopped state. The activity
then finished itself onStop, but is then relaunched by the activity
manager since there are no other activities in the system and the
home activity should be present.

Bug: 27674536
Change-Id: Iaca67a00c4a37f70aafd18aedcbd8dba2f561203
2016-03-19 15:57:07 -07:00
Dianne Hackborn
23430bf34c Merge "Fix issue #27653326: Sync doesn\'t work in doze maintenance" into nyc-dev
am: bf949ce

* commit 'bf949ce8a0f8d0a39bdc069c4bedddc4edef26e2':
  Fix issue #27653326: Sync doesn't work in doze maintenance
2016-03-19 00:57:50 +00:00
Dianne Hackborn
bf949ce8a0 Merge "Fix issue #27653326: Sync doesn't work in doze maintenance" into nyc-dev 2016-03-19 00:53:03 +00:00
Yohei Yukawa
5a0d9cf754 Merge "Tell IMS about missing InputConnection methods." into nyc-dev
am: 1064d35

* commit '1064d35307cff0601a22c8401cb72f628883489d':
  Tell IMS about missing InputConnection methods.
2016-03-19 00:44:11 +00:00
Yohei Yukawa
1064d35307 Merge "Tell IMS about missing InputConnection methods." into nyc-dev 2016-03-19 00:36:22 +00:00
Dianne Hackborn
2fefbcf0d1 Fix issue #27653326: Sync doesn't work in doze maintenance
Add a (configurable) delay between when we start a maintenance
window until the minimum time we will end it.

Also switch to using the alarm manager callback API.  (Yay!)

Also fix a little printing problem in the alarm manager dump
so we put the package name and not some class hash in the
summary string of an alarm entry.

Change-Id: I4281e5c80bc8b26ebc1fb6f603ec33ec0e379daa
2016-03-18 16:52:30 -07:00
Adam Powell
2a16812c20 Merge "Don\'t bind ChooserTargetServices as user CURRENT" into nyc-dev
am: 0cc531a

* commit '0cc531ae31e1bb13ecca2cdcd8ddb296542362e0':
  Don't bind ChooserTargetServices as user CURRENT
2016-03-18 23:12:29 +00:00
Adam Powell
4c284d513c Don't bind ChooserTargetServices as user CURRENT
Bug 26151189

Change-Id: I8ea76de499f7a7b9edbf1de3117d34d91bfa36ae
2016-03-18 16:04:27 -07:00
doheon1.lee
0ff3250f5e Merge "Changes of root storage space unmounting time on Zygote Process" into nyc-dev
am: 910e772

* commit '910e7726b3c0e6cc62b3e3c8d8fcafd372d70f44':
  Changes of root storage space unmounting time on Zygote Process
2016-03-18 17:53:08 +00:00
Jeff Sharkey
910e7726b3 Merge "Changes of root storage space unmounting time on Zygote Process" into nyc-dev 2016-03-18 17:44:55 +00:00
Adam Powell
758f1d1b89 Merge "New string for resolving ACTION_SENDTO intents" into nyc-dev
am: 386f785

* commit '386f78530d7a6a4faec9612dd8eac88b8dca9bbc':
  New string for resolving ACTION_SENDTO intents
2016-03-18 16:46:15 +00:00
Adam Powell
13ea8f48ab New string for resolving ACTION_SENDTO intents
"Share" didn't make much sense here since SENDTO is used for sending
content to a specific recipient, e.g. emailing a person from their
Contacts page in the dialer.

Bug 23626568

Change-Id: I8ac4f2aee5c41aa6c2d546b39283c6f22127cefe
2016-03-18 09:39:41 -07:00
doheon1.lee
885b742bb6 Changes of root storage space unmounting time on Zygote Process
Zygote process forks every child process for launch the SystemServer and other
applications. When child process is forked, unmount storage inherited
from Zygote process is executed before it gains its own root storage
space.
If Zygote have no storage spaces, unmount operations not needed to
get relevant permission storage space.
Thus unmount is executed only once shortly before the SystemServer is forked.
And the child processes do not unmount its inherited root storage space.

Change-Id: I311ca7ea2c93085f42579f8cf8bdc7ef1d570a04
2016-03-18 10:31:31 -06:00
Abodunrinwa Toki
6e005e2e73 Merge "FloatingToolbar: Hide panels when they\'re invisible." into nyc-dev
am: 2e303d2

* commit '2e303d20c6d2fe02c45070eaec8b53f8e2eff5e3':
  FloatingToolbar: Hide panels when they're invisible.
2016-03-18 15:35:27 +00:00
Abodunrinwa Toki
2e303d20c6 Merge "FloatingToolbar: Hide panels when they're invisible." into nyc-dev 2016-03-18 15:29:29 +00:00
Phil Weaver
5d9c2436f2 Merge "Treat accessibility actions as user activity" into nyc-dev
am: 6fdd3af

* commit '6fdd3afdcc43c1dec03ee82e9e1d69e88170d932':
  Treat accessibility actions as user activity
2016-03-17 22:25:06 +00:00
Phil Weaver
6fdd3afdcc Merge "Treat accessibility actions as user activity" into nyc-dev 2016-03-17 22:19:17 +00:00
Abodunrinwa Toki
0cf648917f FloatingToolbar: Hide panels when they're invisible.
This patch sets the visibility of a panel to INVISIBLE when it's
alpha is 0. This will ensure that a user cannot interact with a
view that cannot be seen. Not doing this resulted in a bug where
the user will tap on an area of the toolbar and activate an
unintended action.

It also removes the redundant mResetOverflowButtonDrawable. It's
actions are already performed in setPanelsStatesAtRestingPosition.

Bug: 27693433
Change-Id: Iafcde23622c7d1604924c520f6748fdbb8b135e7
2016-03-17 18:55:47 +00:00
Yohei Yukawa
101ef5ab48 Merge "Remove an unused constructor of InputMethodSettings." into nyc-dev
am: 8e1adec

* commit '8e1adec177039a4fe10759548d94071917188df4':
  Remove an unused constructor of InputMethodSettings.
2016-03-17 18:29:42 +00:00
Yohei Yukawa
55430e477d Merge changes I068f8821,Ibcf12746,I169ad495 into nyc-dev
am: fb8aa06

* commit 'fb8aa06883faae598512c26d95c5dfeab7f213a5':
  Add more @NonNull/@Nullable to TextServicesSettings.
  Remove an unnecessary int to String conversion.
  Add more @NonNull/@Nullable to InputMethodSettings.
2016-03-17 17:35:30 +00:00
Sunny Goyal
04be4773d4 Merge "Adding a default implementation for the new Window.Callback method" into nyc-dev
am: 60dbc35

* commit '60dbc357844106fdebb36209c8c86504db323fb9':
  Adding a default implementation for the new Window.Callback method
2016-03-17 17:35:28 +00:00
Phil Weaver
da80d676c7 Treat accessibility actions as user activity
Resurrecting ag/665912.

Bug: 19531976
Change-Id: Ibdddd507215e61b9f4313c36eab8845e9940a7ac
2016-03-17 10:09:39 -07:00
Yohei Yukawa
e771d58733 Remove an unused constructor of InputMethodSettings.
The last caller of the deprecated constructor of InputMethodSettings was
just removed [1].  Since it is not a public API, we can now safely
remove it.

  [1]: I09cba4066b95c4a9e89a3e4f83d75b97882502dc
       143a6869476a4be5962d4bba3b222d078f46b9a0

Bug: 26279466
Change-Id: I9035c417d6a8166c0ef4e4c7a00c151ffdd5fb49
2016-03-17 06:22:23 +00:00
Yohei Yukawa
fb8aa06883 Merge changes I068f8821,Ibcf12746,I169ad495 into nyc-dev
* changes:
  Add more @NonNull/@Nullable to TextServicesSettings.
  Remove an unnecessary int to String conversion.
  Add more @NonNull/@Nullable to InputMethodSettings.
2016-03-17 02:03:00 +00:00
Yohei Yukawa
7b574cb8a1 Add more @NonNull/@Nullable to InputMethodSettings.
This follows up to a previous CL [1] for Bug 26279466.

It turns out that we have not clearly defined how nonexistent key should
be handled in InputMethodSettings#getEnabledInputMethodsStr(), e.g. it
returns "" for when mCopyOnWrite is true but returns null when
mCopyOnWrite is false.

Also, since InputMethodSettings now can revert changes made during
mCopyOnWrite is true, the caller may also start receiving null in the
following scenario.
  1. call mSettings.switchCurrentUser(userId, true).
  2. call mSettings.putEnabledInputMethodsStr(str) where str is non-null.
  3. call mSettings.switchCurrentUser(userId, false).
  4. call mSettings.getEnabledInputMethodsStr().
If the caller of getEnabledInputMethodsStr() has assumed that it would
never return null, then it would start crashing due to NPE.

With this CL, getEnabledInputMethodsStr() is marked to be @NonNull we
should no longer see such kind of NPE.

  [1]: I9c6f9bb3d51174198e5f73588637f87ea0d90e11
       68645a638a

Bug: 27687531
Change-Id: I169ad4957e68b65c64251b0849056195b8ca4911
2016-03-16 17:22:22 -07:00
Sunny Goyal
2a6d9aa1cd Adding a default implementation for the new Window.Callback method
Bug: 27702972
Change-Id: I6b8c1766ecf871801006d4dc47796a819e49bb57
2016-03-16 17:13:26 -07:00