Commit Graph

45198 Commits

Author SHA1 Message Date
George Mount
cd8b84fc25 am f006bac7: am e0b9e2f1: am 7d3d95e7: Merge "Fix exit transitions hiding views permanently." into lmp-dev
* commit 'f006bac76dcbaf91652cbb9e118ddc48bc179766':
  Fix exit transitions hiding views permanently.
2014-09-15 19:33:32 +00:00
George Mount
48520a6c5a am e0b9e2f1: am 7d3d95e7: Merge "Fix exit transitions hiding views permanently." into lmp-dev
* commit 'e0b9e2f107660e09daa5c0a5ecc1a616cd7da097':
  Fix exit transitions hiding views permanently.
2014-09-15 14:43:29 +00:00
George Mount
2911b2046a Merge "Fix exit transitions hiding views permanently." into lmp-dev 2014-09-15 14:06:52 +00:00
Alan Viverette
a0fad0ae43 am 4d5c7c2f: am 62b910c0: am 6ef642ca: Merge "Clean up view drawable tinting methods, fix default modes" into lmp-dev
* commit '4d5c7c2f626085fe96a9fa73714a28d40d51e680':
  Clean up view drawable tinting methods, fix default modes
2014-09-15 00:15:11 +00:00
Alan Viverette
14d639755e am 62b910c0: am 6ef642ca: Merge "Clean up view drawable tinting methods, fix default modes" into lmp-dev
* commit '62b910c008da3fbcf11f67340002aa14e1d297b0':
  Clean up view drawable tinting methods, fix default modes
2014-09-15 00:00:37 +00:00
Adam Powell
f0cd7d2e44 am fb24dbd6: am 51bf4916: am 86a3adca: Merge "Magic null-background filling for PhoneWindows" into lmp-dev
* commit 'fb24dbd64fe88856ac84d58e0e5c693254098780':
  Magic null-background filling for PhoneWindows
2014-09-14 23:37:38 +00:00
Alan Viverette
670288c252 Merge "Clean up view drawable tinting methods, fix default modes" into lmp-dev 2014-09-14 23:36:06 +00: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
Alan Viverette
b56f5d2ab1 Clean up view drawable tinting methods, fix default modes
Calling setTint now only modifies the tint. It won't force a mode change.

BUG: 17494736
Change-Id: I91392634869ed23981d8e61a403bb2be42aa7a07
2014-09-14 15:48:50 -07: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
db7d566f67 am de5be663: am f2fdeb5f: am f9f4d316: Merge "set correct bounds in ActionBar based on visibility of ActionBarView" into lmp-dev
* commit 'de5be6632b20e33f0de224e909f4bba75f166fa3':
  set correct bounds in ActionBar based on visibility of ActionBarView
2014-09-14 22:10:27 +00: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
Alan Viverette
ef7c8c74eb am 3bf962be: am d2f58ac3: am 84670eef: Merge "Reduce instructions required to obtain and recycle TypedArray" into lmp-dev
* commit '3bf962beeb4ca56669c9e05b55df5f274bbe2906':
  Reduce instructions required to obtain and recycle TypedArray
2014-09-14 20:38:22 +00:00
Alan Viverette
4a7ac30043 am d2f58ac3: am 84670eef: Merge "Reduce instructions required to obtain and recycle TypedArray" into lmp-dev
* commit 'd2f58ac3e3e0b49f33b98bd9f99f7658fd18b9a6':
  Reduce instructions required to obtain and recycle TypedArray
2014-09-14 20:21:46 +00:00
John Spurlock
c787555c36 am 6f002333: am 1c1683a3: am 1ddb7a6b: Merge "Saver: PowerManager call to set low power mode." into lmp-dev
* commit '6f002333c30d98c4c51b2217dae4bcd05f8a36f3':
  Saver: PowerManager call to set low power mode.
2014-09-14 20:21:36 +00:00
John Spurlock
b9e2fe1d4a am 1c1683a3: am 1ddb7a6b: Merge "Saver: PowerManager call to set low power mode." into lmp-dev
* commit '1c1683a35a0267c03729fa36b930c3dc803aff7a':
  Saver: PowerManager call to set low power mode.
2014-09-14 20:09:39 +00:00
Alan Viverette
c6a65dfbff Merge "Reduce instructions required to obtain and recycle TypedArray" into lmp-dev 2014-09-14 20:04:38 +00:00
Ramanan Rajeswaran
4e7000519c am 0fcc2a00: am 232d417a: am 2e9ca0aa: Merge "Fix crash in TranserPipe." into lmp-dev
* commit '0fcc2a004277f2cbfe4c7a3ea8f24d69a07f4da3':
  Fix crash in TranserPipe.
2014-09-14 19:58:15 +00: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
John Spurlock
7ca1161e30 Merge "Saver: PowerManager call to set low power mode." into lmp-dev 2014-09-14 19:36:13 +00:00
John Spurlock
8d4e6cb060 Saver: PowerManager call to set low power mode.
- Add an explicit power manager call to set the low power mode state,
  instead of trying manage everything around a single setting.
- When low-power mode is triggered by falling below the configured
  threshold, it does not update the setting.
- The "is-enabled" api returns setting || below configured trigger.
- Move the snooze management into the new api call.
- Callers (sysui + settings) updated to use the api instead of the
  setting.
- Handles the case where the level does an unpowered leap out of the
  low battery level. (Possible if powered in-between while the device
  is off)

Bug:17460535
Change-Id: Ic030504c9cad9868a7137abbe837b170da37852b
2014-09-14 14:07:23 -04: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
84d4957f24 am e3651c4b: am 08c9101b: am a22e2ab6: Merge "Minimize the number of default enabled IMEs part 2" into lmp-dev
* commit 'e3651c4b4e96d1c3a6ea6d112183971cd07ce180':
  Minimize the number of default enabled IMEs part 2
2014-09-14 10:39:16 +00: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
Alan Viverette
8b5b25b448 Reduce instructions required to obtain and recycle TypedArray
Eliminates several field and method accesses by making the TypedArray
pool local to a single Resources object. Removes an unnecessary
synchronization.

ReadXmlAttrs averaged 0.069 ms/op before, 0.064 ms/op after.

BUG: 17484798
Change-Id: If790a5ba6596b47a04f117c8912974798a592052
2014-09-13 19:30:11 -07:00
Tyler Gunn
cc616bca0d am b51263b9: am 21282583: am 66c16547: Merge "Renaming Telecomm to Telecom." into lmp-dev
* commit 'b51263b99fc2c8293e1f0fe844e65ce2afec2089':
  Renaming Telecomm to Telecom.
2014-09-13 18:19:31 +00: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
Yohei Yukawa
7bfba59672 am 3273ddf7: am 699f5db8: am acc0ce3e: Merge "Minimize the number of default enabled IMEs part 1" into lmp-dev
* commit '3273ddf7d1ac86c53847e26bbb476e5267291ed7':
  Minimize the number of default enabled IMEs part 1
2014-09-13 11:20:18 +00:00
Yohei Yukawa
04cee902ba am 699f5db8: am acc0ce3e: Merge "Minimize the number of default enabled IMEs part 1" into lmp-dev
* commit '699f5db8737a390590dc2a28f062cfddd4ee5bed':
  Minimize the number of default enabled IMEs part 1
2014-09-13 11:04:08 +00:00
Yohei Yukawa
c0b8cb8910 Merge "Minimize the number of default enabled IMEs part 1" into lmp-dev 2014-09-13 10:33:50 +00:00
Tyler Gunn
ef9f6f957d Renaming Telecomm to Telecom.
- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I192cb5d189f55db012ea72ee82ccc5aedbc21638
2014-09-12 22:16:17 -07:00
Dianne Hackborn
a7d2afdc10 am 7a23436b: am 61ffa7a2: am f9d92bab: Merge "Work on issue #17477510: Time change notifications sent too often" into lmp-dev
* commit '7a23436b301af9a90336a587417c99fc8e188acd':
  Work on issue #17477510: Time change notifications sent too often
2014-09-13 03:29:55 +00:00
Jeff Brown
af0bc440e5 am d7f5c103: am 18f9b97a: am ce0a756f: Merge "Add support for dozing after screen off." into lmp-dev
* commit 'd7f5c10310d67df9843a761c8989056d09e0dd4f':
  Add support for dozing after screen off.
2014-09-13 03:29:49 +00:00
Dianne Hackborn
47bdb75132 am 61ffa7a2: am f9d92bab: Merge "Work on issue #17477510: Time change notifications sent too often" into lmp-dev
* commit '61ffa7a2754ee6c3b3bb1f836212ddfcb818c56b':
  Work on issue #17477510: Time change notifications sent too often
2014-09-13 03:13:13 +00:00
Jeff Brown
8c3b757948 am 18f9b97a: am ce0a756f: Merge "Add support for dozing after screen off." into lmp-dev
* commit '18f9b97ac486e93ca62e2d30a5eb29b2b3763add':
  Add support for dozing after screen off.
2014-09-13 03:13:07 +00:00
Adam Powell
2f786a08ea am e905eb11: am 8e8d8655: am dd9488c1: Merge "Provide a public API for View#computeFitSystemWindows" into lmp-dev
* commit 'e905eb1112029d894bf7517db14c88fb66e7ebfd':
  Provide a public API for View#computeFitSystemWindows
2014-09-13 03:07:13 +00:00
Eric Laurent
b66eb53fbf am a7f12be3: am 8d002c9e: am a7f44594: Merge "SoundTrigger: fix KeyphraseRecognitionEvent parceling" into lmp-dev
* commit 'a7f12be38caafe44fe29486465b61c4b5aa317c3':
  SoundTrigger: fix KeyphraseRecognitionEvent parceling
2014-09-13 03:07:08 +00:00
Paul Jensen
c208407905 am 59bc7d88: am 11ee98ad: am 28b89f98: Allow libcore to perform necessary actions upon net config changes.
* commit '59bc7d88893163a73b10e92bd9143a3dc77511fc':
  Allow libcore to perform necessary actions upon net config changes.
2014-09-13 03:06:55 +00:00
Amith Yamasani
952e4d59c3 am d75a27cb: am 67e56d47: am 13c4e5ad: Merge "Rename and repurpose feature MANAGED_PROFILES to MANAGED_USERS" into lmp-dev
* commit 'd75a27cb17bd42efd7edd697fe8acd51e2592eee':
  Rename and repurpose feature MANAGED_PROFILES to MANAGED_USERS
2014-09-13 03:06:50 +00:00
George Mount
efb927288a am 4c941e5a: am a8e0fb44: am 87483e5e: Merge "Made Transitions act only the views that they target." into lmp-dev
* commit '4c941e5aa2e53332b8de830f0303f2f18ca6957a':
  Made Transitions act only the views that they target.
2014-09-13 03:06:18 +00:00
George Mount
5d5db34863 am a5af29d9: am 5104c665: am 17506bdb: Merge "Allow Path Animations to support overshooting." into lmp-dev
* commit 'a5af29d9d7d304937de3fe02f0ada96d35bbf051':
  Allow Path Animations to support overshooting.
2014-09-13 03:05:27 +00:00
Dianne Hackborn
79a17637e7 am 785f2a90: am 46c1851a: am a561b237: Merge "Allow throwing UnsupportedOperationException across Binder." into lmp-dev
* commit '785f2a901d6ca85a12a69095e4ad2367041e02e7':
  Allow throwing UnsupportedOperationException across Binder.
2014-09-13 03:05:03 +00:00
Adam Powell
f1be67f3ea am 8e8d8655: am dd9488c1: Merge "Provide a public API for View#computeFitSystemWindows" into lmp-dev
* commit '8e8d86559e4938daed3bb018afb61336e643e2e3':
  Provide a public API for View#computeFitSystemWindows
2014-09-13 02:37:35 +00:00
Eric Laurent
3eb236cca0 am 8d002c9e: am a7f44594: Merge "SoundTrigger: fix KeyphraseRecognitionEvent parceling" into lmp-dev
* commit '8d002c9e1069577bd624889229d9047611aca0d2':
  SoundTrigger: fix KeyphraseRecognitionEvent parceling
2014-09-13 02:37:30 +00:00