Commit Graph

3607 Commits

Author SHA1 Message Date
Dianne Hackborn
c21c6ab3a7 am 076741d5: am 5a9cfe3e: Merge "Maybe fix issue #17614177 APR: system process restarting due to infinite loop" into lmp-dev
* commit '076741d5776be95a19259827d1e1b2b196eb4ba3':
  Maybe fix issue #17614177 APR: system process restarting due to infinite loop
2014-09-23 21:14:20 +00:00
Dianne Hackborn
d0e0154c1f Merge "Maybe fix issue #17614177 APR: system process restarting due to infinite loop" into lmp-dev 2014-09-23 20:55:05 +00:00
Dianne Hackborn
25e1ecaabb Maybe fix issue #17614177 APR: system process restarting due to infinite loop
Also try to get rid of a huge wtf we are seeing across a lot of devices
where we incorrectly change real states on a service that is restarting,
and get rid of one of the noisier boot logs in the package manager.

Change-Id: I2510b6fb082eac3f6168cbd57bc3b70ad006114d
2014-09-23 10:33:30 -07:00
Alan Viverette
05f74b9a6b am 2c65386d: am 0dfa4738: Merge "Pass explicit null theme when preloading drawables" into lmp-dev
* commit '2c65386d9bb3d93f39767a284eb3dcc27dd0a2f3':
  Pass explicit null theme when preloading drawables
2014-09-22 19:37:19 +00:00
Alan Viverette
e786895918 Merge "Pass explicit null theme when preloading drawables" into lmp-dev 2014-09-22 19:18:03 +00:00
Yohei Yukawa
a8f3d15be2 am dc5fad8e: am b5d063dc: Merge "Work on issue #17506095: Plumb a new configuration to IMMS" into lmp-dev
* commit 'dc5fad8e086a50f5e438ea8fc5bfd692e4bd76f9':
  Work on issue #17506095: Plumb a new configuration to IMMS
2014-09-22 18:23:26 +00:00
Yohei Yukawa
ca5e72c5ae Merge "Work on issue #17506095: Plumb a new configuration to IMMS" into lmp-dev 2014-09-22 18:02:12 +00:00
Alan Viverette
84e001a9f5 Pass explicit null theme when preloading drawables
Prevents "unresolved theme attributes" warning.

BUG: 17589490
Change-Id: I5217d85b1d5ce8b551315ee8b1ca79eccfac3f10
2014-09-22 07:05:33 +00:00
Yigit Boyar
2c029f3fe2 am 747a975b: am a0716928: Merge "Allow fallback to Toolbar\'s default Navigation Icon" into lmp-dev
* commit '747a975bef3589fb5407ad3f74cc67770e2d86fa':
  Allow fallback to Toolbar's default Navigation Icon
2014-09-22 02:07:54 +00:00
Yigit Boyar
5507b223dd Merge "Allow fallback to Toolbar's default Navigation Icon" into lmp-dev 2014-09-22 01:14:40 +00:00
Yohei Yukawa
e63b5fae8d Work on issue #17506095: Plumb a new configuration to IMMS
This CL makes a plumbing from SystemConfig to IMMS.

Change-Id: Ia70b870723acf647e0c27f24aff91b40d6f85543
2014-09-21 10:34:35 +09:00
Yigit Boyar
30f5dc935b Allow fallback to Toolbar's default Navigation Icon
Bug: 17554486
Change-Id: Id9f2197820df42d81351540be5baa852f49bdf0a
2014-09-19 18:26:07 -07:00
Alan Viverette
68247b0303 am f680e5f2: am 14932619: Merge "Correctly apply max width/height to preference icons" into lmp-dev
* commit 'f680e5f2820111f464f4100bb771bae0cca75518':
  Correctly apply max width/height to preference icons
2014-09-19 22:42:02 +00:00
Alan Viverette
ecd7c96aa4 Correctly apply max width/height to preference icons
BUG: 17581750
Change-Id: I8ad21a321c80f0a657670ba4d175d0ebecea49ef
2014-09-19 13:36:29 -07:00
Alan Viverette
194206c4d7 am c5073a81: am fb15b0e2: Merge "Use action bar theme for action modes, fix ViewStub inflation theme" into lmp-dev
* commit 'c5073a812a82928ae681c9fcd328a3b1323b4edc':
  Use action bar theme for action modes, fix ViewStub inflation theme
2014-09-18 20:57:26 +00:00
Alan Viverette
07ecc748fb Merge "Use action bar theme for action modes, fix ViewStub inflation theme" into lmp-dev 2014-09-18 20:25:22 +00:00
Sander Alewijnse
549715d5fa am a735243f: am 81b375a1: Merge "Update targetSdkVersion check." into lmp-dev
* commit 'a735243fba6ca4c0de7877831230d8c209882748':
  Update targetSdkVersion check.
2014-09-18 12:00:22 +00:00
Sander Alewijnse
d4710c87e6 Merge "Update targetSdkVersion check." into lmp-dev 2014-09-18 11:36:19 +00:00
Alan Viverette
a9ddb8dc23 Use action bar theme for action modes, fix ViewStub inflation theme
BUG: 17262483
BUG: 17513621
Change-Id: I74764570a11da162a224e94978e21e52d17e2e84
2014-09-17 18:14:32 -07:00
Yigit Boyar
8424665e0e am 777f6c3c: am 7fa36f26: Merge "Handle action mode changes properly for actionbar tabs" into lmp-dev
* commit '777f6c3c846a4a6722664cf119f6b8959b9db6f0':
  Handle action mode changes properly for actionbar tabs
2014-09-17 21:22:02 +00:00
Yigit Boyar
fd20f196b1 Merge "Handle action mode changes properly for actionbar tabs" into lmp-dev 2014-09-17 21:00:40 +00:00
Sandeep Siddhartha
67032ce76a am 9364b830: am e80c6f17: Merge "Fix issues with multiple languages and multi-users" into lmp-dev
* commit '9364b830a4d78a3c76cc7eacc71c9b7808fd414b':
  Fix issues with multiple languages and multi-users
2014-09-17 20:33:17 +00:00
Sandeep Siddhartha
80ea66b102 Merge "Fix issues with multiple languages and multi-users" into lmp-dev 2014-09-17 20:06:43 +00:00
Yigit Boyar
2bbad0cddc Handle action mode changes properly for actionbar tabs
Bug: 17513613
Change-Id: I4ebcadc618558153b72bf577232adc3e616adb6b
2014-09-16 18:28:03 -07:00
Adam Lesinski
2958c016a1 am 3b36b8c7: am 1416621b: Merge "Show the lockscreen when more than 1 user is present" into lmp-dev
* commit '3b36b8c7d91dc8793429491617c645c1aafc4d49':
  Show the lockscreen when more than 1 user is present
2014-09-16 08:59:29 +00:00
Yohei Yukawa
abe0c395f9 am 5a2efd42: am 8219934a: Merge "Minimize the number of default enabled IMEs part 3" into lmp-dev
* commit '5a2efd42d8d0b1c52f628b8e727d3c99b068ae96':
  Minimize the number of default enabled IMEs part 3
2014-09-16 08:59:08 +00:00
Adam Powell
7276265f31 am 9965e970: am 3b2dfa7a: Merge "Treat empty string as title-set in ToolbarWidgetWrapper" into lmp-dev
* commit '9965e9708b5dc64bc9e591f72ff6eaf6c3968d0f':
  Treat empty string as title-set in ToolbarWidgetWrapper
2014-09-16 08:58:58 +00:00
Adam Powell
5ba05c4fb5 am acec24c1: am 17ec7920: Merge "Finish materializing dialogs" into lmp-dev
* commit 'acec24c1487e32264ee395121db2e607259dd7ca':
  Finish materializing dialogs
2014-09-16 08:58:48 +00:00
Sandeep Siddhartha
8cf8f71644 Fix issues with multiple languages and multi-users
For multi-user the issue was looking into the user ID of the current
process instead of the active user. The current process was the system
process and the call to UserManager was returning a user handle that
wasn't of any use while trying to map sound models to a user.

For language, the issue was that we were incorrectly just looking up the
model based on the keyphrase id, however we should have also taken the
enrolled model's locale into account.

Explicitly document that for model management the string representation of locales
is a BCP47 language tag.

Remove debug logging.

Bug: 16798166
Bug: 17462570
Bug: 17463511
Change-Id: Ieffb3e218de63f6e7f40af9705dced481a35b0ad
2014-09-15 19:59:09 -07:00
Adam Lesinski
3846c1d261 Merge "Show the lockscreen when more than 1 user is present" into lmp-dev 2014-09-16 00:50:23 +00:00
Adam Lesinski
61d9409239 Show the lockscreen when more than 1 user is present
Bug:17399024
Change-Id: Iaf2ea2747cbcd9db45ba9faa7c8fe0389a799855
2014-09-15 17:46:10 -07:00
Yohei Yukawa
84f20ec49d Merge "Minimize the number of default enabled IMEs part 3" into lmp-dev 2014-09-16 00:19:55 +00:00
Adam Powell
afd3a3a049 Merge "Treat empty string as title-set in ToolbarWidgetWrapper" into lmp-dev 2014-09-15 23:55:34 +00:00
Adam Powell
6192b07bdc Treat empty string as title-set in ToolbarWidgetWrapper
If a developer explicitly sets the empty string as the title of a
Toolbar that is used as an action bar via Activity#setActionBar, don't
overwrite it with the window title. This clears up a nonintuitive
behavior when explicitly clearing the title of a toolbar.

Bug 17510951

Change-Id: I183c2ca57d3bd16ae1f89bb7daa2cdf086189138
2014-09-15 16:36:01 -07:00
Adam Powell
d044ad97a8 Finish materializing dialogs
Fix bottom spacing for dialogs with no button bar

Remove default dividers from dialog lists

Bug 17503404

Change-Id: Icdcaaad99f70a259ff3f892d6385257801e38437
2014-09-15 14:30:23 -07:00
Sander Alewijnse
38ea779b42 Update targetSdkVersion check.
Bug:16509819
Change-Id: I471c4a5b2450b4cc64414dfa2dae75d51cce3abb
2014-09-15 18:54:15 +01:00
Yohei Yukawa
dc489241cf Minimize the number of default enabled IMEs part 3
With this CL, the behavior of getDefaultEnabledImes() changes
as follows:

- Previously system IMEs are always enabled by default as long
  as it is a software keyboard that supports En_* subtype. With
  this CL, getDefaultEnabledImes() relies on the locale returned
  from getFallbackLocaleForDefaultIme() instead of calling
  isSystemImeThatHasEnglishKeyboardSubtype() to minimize the
  number of enabled IMEs.
- Previously default enabled system IMEs are chosen in a
  country-agnostic way. As a result, "en_IN" is enabled even
  when the system locale is "en_US". With this CL, the system
  first tries to find IMEs with taking the coutnry into account,
  and use the country-agnostic way when and only when fallback
  logic is required.

BUG: 17347871
Change-Id: I6571d464a46453934f0a8f5e79018a67a9a3c845
2014-09-15 13:13:45 +09:00
Adam Powell
35e752ef62 am 51bf4916: am 86a3adca: Merge "Magic null-background filling for PhoneWindows" into lmp-dev
* commit '51bf49165c01c6ee7386fcee35c17cf636a151cb':
  Magic null-background filling for PhoneWindows
2014-09-14 23:21:09 +00:00
Adam Powell
9dbe94d8cd Merge "Magic null-background filling for PhoneWindows" into lmp-dev 2014-09-14 22:51:29 +00:00
Adam Powell
f849a5e16d Magic null-background filling for PhoneWindows
In the past it's been a recommended approach to avoiding overdraw for
apps to set their window background to null at runtime if their
content view fully covers their window surface. The problem with this
is the IME.

The IME can force a resize of the window at unexpected times and
unless an app has been configured to fit system windows and manually
cover the padded area that the IME window covers, the asynchronous
nature of the IME-show process can leave surface buffer garbage
visible to the user. In previous platform versions this wasn't an
issue since pre-renderthread we would always animate a crossfade from
the closed to open state. This animation was always a bit of a hack
since it could break the contract of requestLayout/invalidate on the
view hierarchy - it could result in a draw happening into the saved
"before" state of the crossfade before a pending layout.

Now that this has been cleaned up the buffer garbage is sometimes
visible.

To prevent this, PhoneWindow now detects the state of a null window
background and draws solid rects into the area not covered by a
window's content. Which color is determined by the window context's
theme, though this is not a public API available to apps.

Bug 17006497

Change-Id: I714439a1608c4ae135f3d9d49bb165330d9fbe9f
2014-09-14 15:44:11 -07:00
Chet Haase
c148f7d008 am f2fdeb5f: am f9f4d316: Merge "set correct bounds in ActionBar based on visibility of ActionBarView" into lmp-dev
* commit 'f2fdeb5fe8770cfe09163a151a140f7ce59e6f0f':
  set correct bounds in ActionBar based on visibility of ActionBarView
2014-09-14 21:54:50 +00:00
Chet Haase
4605b2929e Merge "set correct bounds in ActionBar based on visibility of ActionBarView" into lmp-dev 2014-09-14 21:30:21 +00:00
Chet Haase
ccd3da23c6 set correct bounds in ActionBar based on visibility of ActionBarView
ActionBarContainer was setting the bounds of its background assuming the
visibility of the ActionBarView. But that view becomes GONE when the
ActionBarContextView is visible, causing artifacts such as wrong shadows
when resized (as in custom configuration changes).

Issue #17280341 Quantum: drop shadow on CAB has wrong width after rotation on L, when configuration change is handled by the app

Change-Id: I07e57f00e27b41d5370cb9440b35734a8ec10f3a
2014-09-14 13:53:10 -07:00
Ramanan Rajeswaran
c116f02a4a am 232d417a: am 2e9ca0aa: Merge "Fix crash in TranserPipe." into lmp-dev
* commit '232d417a5efc4029d4eebac04d003c73e5b4b65e':
  Fix crash in TranserPipe.
2014-09-14 19:43:11 +00:00
Xin Guan
5ec679a0fa Fix crash in TranserPipe.
Sometimes the pipe has been closed when it's thread tries to access

E AndroidRuntime: *** FATAL EXCEPTION IN SYSTEM PROCESS: TransferPipe
E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'java.io.FileDescriptor android.os.ParcelFileDescriptor.getFileDescriptor()' on a null object reference
E AndroidRuntime: 	at com.android.internal.os.TransferPipe.run(TransferPipe.java:184)
E AndroidRuntime: 	at java.lang.Thread.run(Thread.java:818)

Change-Id: I0fcd4a3334b49972903f2cb0edb51323ba3f49e5
2014-09-14 09:34:40 -07:00
Yohei Yukawa
c496a26f7c am 08c9101b: am a22e2ab6: Merge "Minimize the number of default enabled IMEs part 2" into lmp-dev
* commit '08c9101b87199552b3a372c3fedbb9e6886e307b':
  Minimize the number of default enabled IMEs part 2
2014-09-14 10:25:04 +00:00
Yohei Yukawa
c68f27625b Merge "Minimize the number of default enabled IMEs part 2" into lmp-dev 2014-09-14 07:48:27 +00:00
Yohei Yukawa
68c860bb29 Minimize the number of default enabled IMEs part 2
Previously the system tried to enable at least one auxiliary IME
even when the system is not ready.  However, this doesn't make
much sense because the user should be able to set up their phone
without auxiliary IMEs. Also, IMEs enabled before the system
becomes ready are kept to be enabled after the system becomes
ready. Thus, we should minimize the number of enabled IMEs
until the system becomes ready.

BUG: 17347871
Change-Id: Ife93d909fb8a24471c425c903e2b7048826e17a3
2014-09-14 13:47:33 +09:00
Tyler Gunn
8bc3996189 am 21282583: am 66c16547: Merge "Renaming Telecomm to Telecom." into lmp-dev
* commit '2128258322aa2f90d65c1963ede79d1bffb3fce4':
  Renaming Telecomm to Telecom.
2014-09-13 18:03:04 +00:00
Tyler Gunn
ead6ad8a38 Merge "Renaming Telecomm to Telecom." into lmp-dev 2014-09-13 17:32:49 +00:00