153364 Commits

Author SHA1 Message Date
Alan Viverette
e5a4345a08 Simplify progress bar paths
BUG: 17366831
Change-Id: I7efa215d399e4bf47b41949d313fba4487f068a0
2014-09-14 15:10:54 -07:00
Dianne Hackborn
f075330db4 Merge "Fix issue #16907799: Processes containing bound services..." into lmp-dev 2014-09-14 22:02:36 +00:00
RoboErik
74bc7de1ad am 4be289e8: Merge "Route volume commands whenever media stream is in use" into lmp-dev
* commit '4be289e84aba1fc5227fa518075fb8f2c60181ba':
  Route volume commands whenever media stream is in use
2014-09-14 21:54:35 +00:00
Jorim Jaggi
861da4e0ef am 7dbbaf7e: Merge "Fix jank while unlocking and security is set" into lmp-dev
* commit '7dbbaf7edb12a92aa119dc23fa705a3fb405668d':
  Fix jank while unlocking and security is set
2014-09-14 21:54:30 +00:00
RoboErik
d8c36a7b60 Merge "Route volume commands whenever media stream is in use" into lmp-dev 2014-09-14 21:45:03 +00:00
Eino-Ville Talvala
9503785393 Camera2: Clean up corner case error handling
- If a session is closed, and a new session is created immediately
afterwards, but then fails to be configured, the first session sees an
onUnconfigured call which it wasn't expecting, and throws an
exception on an internal thread, leading to app death.
Add a guard against this case.

- If the lower levels skip a frame (illegal per design), be slightly more
robust to that by accepting any successful result as the latest completed
frame, instead of just incrementing the completed frame count. This will
lead to missing results, but should allow shutdown, etc, to complete
cleanly.

- Convert TIMED_OUT error codes to CAMERA_ERROR CameraAccessExceptions.
This is a common error code returned by waitUntilIdle.

Also, improve debug logging to log a session ID with verbose logging,
and add a few verbose logs.

Bug: 16899526
Change-Id: I7a31f0a12effc2611e1f9c2408224ee82c37c912
2014-09-14 14:41:47 -07:00
Jorim Jaggi
49b03451f9 Merge "Fix jank while unlocking and security is set" into lmp-dev 2014-09-14 21:40:15 +00:00
Chet Haase
c08f397624 am f9f4d316: Merge "set correct bounds in ActionBar based on visibility of ActionBarView" into lmp-dev
* commit 'f9f4d3161ed7be2365ba4f2b16d1c6571e725eb0':
  set correct bounds in ActionBar based on visibility of ActionBarView
2014-09-14 21:39:27 +00:00
Dianne Hackborn
465fa39635 Fix issue #16907799: Processes containing bound services...
...are killed over eagerly.

When the current foreground activity is moving to the background,
it was briefly going through the CACHED_ACTIVITY state before the
correct LAST_ACTIVITY state, allowing its bound service processes
to be killed (because they went in to the cached list).  To solve
this, as long as a process has stopping activities, it won't go
lower than LAST_ACTIVITY.

Also fixed a problem where we could put a process in CACHED_EMPTY
instead of CACHED_ACTIVITY_CLIENT.  There were a number of cases
in the binding flow and also the client process state transitions
where we would not correctly updateing the bound client activity
state.

And add some sanity code so that if a process hosting a
service is killed, and a client process of that service is in the
cached state, we kill the client process.  This avoids situations
where we can start thrashing around in the cached list because we
are restarting process for no reason -- since they will just
continue to be cached.

Finally, tune the process LRU list to allow twice as many cached
activity processes (from 8 to 16), so we can make better use of
the RAM we have available these days.

Change-Id: Ib0cdf78c321cbb035259fc9dd6ee27b5ba1f90c5
2014-09-14 14:32:45 -07: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
RoboErik
94c716ea29 Route volume commands whenever media stream is in use
Found a regression in volume handling. Previously we handled
volume commands as long as the media stream was active but we were only
handling them when there was an active session on L. This adds a check to
make sure we handle volume if anything is playing on the media stream.

bug:17498479
Change-Id: Iddd745c8a762cf7ebedb37f1b26fc934db01fba0
2014-09-14 21:16:51 +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
6b30763fe2 am 84670eef: Merge "Reduce instructions required to obtain and recycle TypedArray" into lmp-dev
* commit '84670eef1f2d685efc98644914d2bb191d0e665c':
  Reduce instructions required to obtain and recycle TypedArray
2014-09-14 20:06:44 +00:00
Shawn Willden
8d7380ad0b am eaabd9ac: Merge "Correct test data size in keystore signing and verification tests." into lmp-dev
* commit 'eaabd9ac2b3409d8eb6b6c49d2be6c89c70999f8':
  Correct test data size in keystore signing and verification tests.
2014-09-14 20:06: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
Shawn Willden
9e3485533d Merge "Correct test data size in keystore signing and verification tests." into lmp-dev 2014-09-14 19:58:06 +00:00
John Spurlock
14fc72f814 am 1ddb7a6b: Merge "Saver: PowerManager call to set low power mode." into lmp-dev
* commit '1ddb7a6b406f23c3b549aa6a771cec61c1778f3e':
  Saver: PowerManager call to set low power mode.
2014-09-14 19:51:00 +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
Ramanan Rajeswaran
45aa575163 am 90756e97: Merge "Fix creation issue of stack trace dump directory" into lmp-dev
* commit '90756e972a152a70ab1a2f3bcfd9532ece1f2056':
  Fix creation issue of stack trace dump directory
2014-09-14 19:29:41 +00:00
Ramanan Rajeswaran
2a25027b18 am 2e9ca0aa: Merge "Fix crash in TranserPipe." into lmp-dev
* commit '2e9ca0aa3de6f8e6e6691125497248dd6940c5f1':
  Fix crash in TranserPipe.
2014-09-14 19:29:36 +00:00
vandwalle
1bcd0659b0 am 35967d04: Merge "make wifi cellular params configurable" into lmp-dev
* commit '35967d0432b587dd78774ccea993f497f8b9eeb6':
  make wifi cellular params configurable
2014-09-14 19:29:31 +00:00
Ramanan Rajeswaran
e7d6816fd1 Merge "Fix creation issue of stack trace dump directory" into lmp-dev 2014-09-14 19:20:36 +00:00
Ramanan Rajeswaran
2e451c817d Merge "Fix crash in TranserPipe." into lmp-dev 2014-09-14 19:20:32 +00:00
vandwalle
5fcdcee0d7 Merge "make wifi cellular params configurable" into lmp-dev 2014-09-14 19:17:07 +00:00
Michael Wright
8d4a436713 am ab567cd1: Merge "Correctly propagate SW_CAMERA_LENS_COVER_BIT" into lmp-dev
* commit 'ab567cd1431678b9882897e90e83a3ebbf656588':
  Correctly propagate SW_CAMERA_LENS_COVER_BIT
2014-09-14 18:34:58 +00:00
Michael Wright
645df3e3e4 Merge "Correctly propagate SW_CAMERA_LENS_COVER_BIT" into lmp-dev 2014-09-14 18:19:50 +00:00
Craig Mautner
928239a929 am 11cb403d: Merge "Add null checks for quickly disappearing Displays" into lmp-dev
* commit '11cb403dd066e4de527e3c6079b3def6d3bc82bd':
  Add null checks for quickly disappearing Displays
2014-09-14 18:11:44 +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
Craig Mautner
f1f886f3ae Merge "Add null checks for quickly disappearing Displays" into lmp-dev 2014-09-14 18:01:40 +00:00
Dan Sandler
9f5d4c4335 am 34c08655: Merge "Customized ripple animation for navigation bar" into lmp-dev
* commit '34c08655610018a0625fb6583df0e19a9c7f63dd':
  Customized ripple animation for navigation bar
2014-09-14 17:55:33 +00:00
Dan Sandler
ca68f2ca45 Merge "Customized ripple animation for navigation bar" into lmp-dev 2014-09-14 17:44:33 +00:00
Jae Seo
c55e799e8b am c07446f2: TIF: Turn debugging off
* commit 'c07446f288e0dbf7f88b3254918817529910e6a0':
  TIF: Turn debugging off
2014-09-14 17:39:25 +00:00
Michael Wright
9e10d25732 Correctly propagate SW_CAMERA_LENS_COVER_BIT
Bug: 16034563
Change-Id: I3402d42056cda47fddadd09f838b1082d93fb00d
2014-09-14 17:30:52 +00:00
Jae Seo
ee2ec05ed7 TIF: Turn debugging off
Bug: 17476383
Change-Id: I28ff54a635bf6468c231efe776dbc8e35460d542
2014-09-14 10:30:05 -07:00
Christopher Lane
d50cc4e1cf am 1fdb5100: Merge "Handle null values in registerService" into lmp-dev
* commit '1fdb5100feab055ca9e52ee766d4477a188e78a3':
  Handle null values in registerService
2014-09-14 17:10:18 +00:00
Yorke Lee
26249f4e92 am f3804c3c: Pipe TelephonyManager.getCallState through TelecommManager
* commit 'f3804c3cfa39d63b84d88edce098d17eed9780c8':
  Pipe TelephonyManager.getCallState through TelecommManager
2014-09-14 17:10:13 +00:00
Shawn Willden
dc8bc1160c Correct test data size in keystore signing and verification tests.
The test is sending too much data to be signed, which should actually
fail, and does on Volantis.  Apparently the other keymaster implementors
do something to pass it, because shamu and hammerhead pass, but the test
is wrong.

Change-Id: Ic616a551567d64f5d87d9607ceb08afa7be74f9d
2014-09-14 17:09:47 +00:00
Christopher Lane
07ab0871ee Merge "Handle null values in registerService" into lmp-dev 2014-09-14 17:06:46 +00:00
Yorke Lee
2ae312e306 Pipe TelephonyManager.getCallState through TelecommManager
* Add TelecommManager.getCallState (hidden API)
* Make TelephonyManager.getCallState call through to
TelecommManager, to be consistent with
TelephonyManager.ACTION_PHONE_STATE_CHANGED broadcasts for
overall call state. Telephony continues to manage call states for
individual subscriptions.

Bug: 17378767
Change-Id: Ia5e8b21df801ed3af4f6e14c110a72c92f077f88
2014-09-14 09:54:23 -07:00
Jing Ji
a0e0c0dfad Fix creation issue of stack trace dump directory
Use the dirname instead of the filename to create the directory

Change-Id: I16e49303b2ff5e2592ed60eab766db32d02262fe
2014-09-14 09:45:30 -07: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
Jorim Jaggi
416493bf66 Fix jank while unlocking and security is set
- Delay showing the bouncer and playing the entrance animation for a
  couple of frames.
- Do not disable back button on the normal Keyguard. This makes the
  entrance animation nicer and fixes some jank due to the need to
  draw into both windows.
- Prevent setPadding(...) call when nothing changes. setPadding would
  invalidate the padding for the whole view hierarchy, which results
  in a slower measure() when setting the window to invisible.

Bug: 17419960
Change-Id: I4a239d4af40ad86875e4a0dd08473f19a5c9b961
2014-09-14 18:04:15 +02:00
Yohei Yukawa
092c4e9327 am a22e2ab6: Merge "Minimize the number of default enabled IMEs part 2" into lmp-dev
* commit 'a22e2ab64c1629e8d8a60ce5e2ccc034714f1365':
  Minimize the number of default enabled IMEs part 2
2014-09-14 10:10:46 +00:00
Winson Chung
2bbc52205a am a2e66053: Merge "Adding null check for invalid recents task list. (Bug 17476926)" into lmp-dev
* commit 'a2e66053456b4728997eff047515487ef20d87ec':
  Adding null check for invalid recents task list. (Bug 17476926)
2014-09-14 10:10:41 +00:00
Winson Chung
9d06d4da5d am 0973117b: Merge "Fixing issue with stack not being fully centered. (Bug 17015153)" into lmp-dev
* commit '0973117bd59659ddd4151d332fd61e64ca5b1b2f':
  Fixing issue with stack not being fully centered. (Bug 17015153)
2014-09-14 10:10:37 +00:00
Qiwen Zhao
5d224ddaa1 am 7ca4682e: Merge "GMSCore and Finsky are fixed. Revert "Revert "Set up final resource identifiers.""" into lmp-dev
* commit '7ca4682e2d4b256b62edca558a6f3a2494d0dcd4':
  GMSCore and Finsky are fixed. Revert "Revert "Set up final resource identifiers.""
2014-09-14 10:10:29 +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
Winson Chung
ba3306fc47 Merge "Adding null check for invalid recents task list. (Bug 17476926)" into lmp-dev 2014-09-14 07:12:40 +00:00
Winson Chung
625f055958 Merge "Fixing issue with stack not being fully centered. (Bug 17015153)" into lmp-dev 2014-09-14 07:12:29 +00:00
Christian Robertson
42310965fa Customized ripple animation for navigation bar
To implement the new gel-cap shaped ripple I resurrected the
onDraw and setPressed methods from the KitKat implementation.
The KitKat animation timings were adjusted to match the material
ripple, but the structure of the animators is the same as KitKat.

Since the new ripple is drawn directly to the canvas, the references
to the KitKat background image were removed.

The LogInterpolator is copied from the framework Ripple
to match the material animation curves.

Bug: 17112935
Change-Id: If6a3eb92de794b526338166bf8cb096eb9764cf6
2014-09-14 02:15:19 -04:00