232220 Commits

Author SHA1 Message Date
Matt Sarett
1819bb5230 Copy appropriate number of rows in RecyclingClippingPixelAllocator
This is used by BitmapRegionDecoder to decode into a recycled
bitmap.

Since the specification does not guarantee that the recycled
bitmap will be larger than the decoded region, we must be careful
to only to copy min(recycledHeight, decodeHeight) rows.

This should fix flakiness in the BitmapRegionDecoderTest on cts.

BUG:26978886
Change-Id: I318468b0eaa67bd9a7860824f75d45df9bf5fbce
2016-02-05 15:08:56 +00:00
Ben Kwa
a4761f0b8b Fix an NPE in RestoreStackTask.
BUG=27007822

Change-Id: I166dc89bfe94f2a07a1fe3769cbce763b7472ec0
2016-02-05 06:44:15 -08:00
Chris Wren
7441317883 Merge "move assistant to system API" 2016-02-05 13:58:54 +00:00
Esteban Talavera
5eec76504f Merge "Fix unit tests" 2016-02-05 13:31:10 +00:00
Chris Wren
c441856bb6 move assistant to system API
Bug: 22455414
Change-Id: I2fbb37fceef3058bc70d540a58fdcd8af5e7a76d
2016-02-05 08:22:18 -05:00
Calin Juravle
1fc4a27762 Merge "Fix useProfiles usage in PackageDexOptimizer" 2016-02-05 11:55:43 +00:00
shwetachahar
4e9a64929b Decrease the key progress increment step size to allow finer control of
seekbar using keys.
Bug:26926346
Change-Id: Ic7d290552c102d8602275f19dac4d57de4a53297
2016-02-05 11:51:50 +00:00
Shreyas Basarge
181a43103b Merge "Add more logging to JobScheduler" 2016-02-05 11:51:33 +00:00
Andrei Stingaceanu
2b909e975f Keyboard Shortcuts - cleanup
Clean up the code, introduce and use a separator, fix the
existing end-of-groups separator.

Bug: 26848253
Change-Id: I2b7723ebf257e7176f08551766c59d86d01cf6a6
2016-02-05 11:19:02 +00:00
Martijn Coenen
21ab24f5c7 Merge "Improve NFC-F transceive() docs."
am: 1f4f7190a8

* commit '1f4f7190a8fe6bd87fd9dd198cb711cb1a540354':
  Improve NFC-F transceive() docs.
2016-02-05 09:44:28 +00:00
Martijn Coenen
1f4f7190a8 Merge "Improve NFC-F transceive() docs." 2016-02-05 09:38:16 +00:00
Martijn Coenen
6711e02033 Improve NFC-F transceive() docs.
It wrongly said the SoD included the length;
put a sample frame in the docs to help devs.

Change-Id: I8ea74f37e7335f3e05f7df81fc303bf6195ac3cc
2016-02-05 10:26:16 +01:00
Daichi Hirono
bf1c501306 Merge "Fix NullPointerException around getObjectInfo." 2016-02-05 09:14:37 +00:00
Daichi Hirono
6213cefbc0 Fetch mime type from file name when format code does not help.
MTP spec defines format code as a file type of object, but we don't have
format code for some file types like PDF. This CL adds fallback that
tries to obtain mime type from file name in such case.

BUG=27004957

Change-Id: Id61352bf4726f4e044e57edadcefbf179fe3f882
2016-02-05 17:21:13 +09:00
Daichi Hirono
cfaab20c24 Fix NullPointerException around getObjectInfo.
BUG=27000341

Change-Id: I8888b627c62e9baaf91c19194dc89d95c65b8225
2016-02-05 16:04:19 +09:00
Daniel Chapin
9640477e3c Revert "TaskManager bench"
This reverts commit 02db03ca0584371504fd29ced77c00d601cb0971.

Change-Id: I86bdf5e6774e99f9add59a657bfc50d45ebfda1d
2016-02-05 05:42:16 +00:00
Jaewan Kim
b8c337b935 Merge "Support KEYCODE_APP_SWITCH key for TV" 2016-02-05 04:26:28 +00:00
Steve McKay
8ac5bfddd2 Merge "Simplify State initialization w/ better semantics + improved Task security." 2016-02-05 04:16:37 +00:00
Jae Seo
4111408977 Merge "MediaBrowser: Add extra lookup keys to specify media items to retrieve" 2016-02-05 03:56:02 +00:00
Jae Seo
0cc5a9d8f6 MediaBrowser: Add extra lookup keys to specify media items to retrieve
Bug: 25821318, Bug: 25153123, Bug: 25153113
Change-Id: I50cc99439a4a6dd714cf7bfd0950e2583554668a
2016-02-05 12:52:17 +09:00
Tomasz Mikolajewski
8c7007085e Merge "Remove DirectoryContainerView class from DocumentsUI." 2016-02-05 03:22:51 +00:00
Wale Ogunwale
9f6c6cd528 Merge "Reset docked divider to the middle of the screen if sys-ui dies" 2016-02-05 03:17:05 +00:00
Ben Kwa
1c3966a389 Merge "Tweak the query error message per UX." 2016-02-05 03:09:44 +00:00
Jeremy Klein
aaa20ad134 Remove several TetherUtil functions which are no longer needed.
Slowly chipping away at TetherUtil to clean up this code.
This CL also adds an admin check to
ConnectivityService.isTetheringSupported to get parity with the
TetherUtil function before removing it.

Change-Id: Ibe7c5c9fb420d57e5458f77dad30e8a1e751a3e2
2016-02-04 19:06:59 -08:00
Ben Kwa
c9b3bde667 Tweak the query error message per UX.
BUG=24949214

Change-Id: I207b55ebfff47cc561a536dc1827431545bf0030
2016-02-04 19:06:56 -08:00
Wale Ogunwale
a9f9b37823 Reset docked divider to the middle of the screen if sys-ui dies
It is possible for the docked divider to be in an unstable location
when sys-ui dies. E.g sys-ui animating the divider from behind the
nav bar. When this occurs we reset the divider to the middle of the
screen so that the system remains in a useable state. Otherwise, the
docked stack can be fullscreen always preventing the user from going
into any other application.

Bug: 26965731
Change-Id: Icd254fffe69da4ee3f2efb4ff1d210a778703f64
2016-02-04 18:51:48 -08:00
Winson Chung
f5b32be5bf Merge "Revert "Drawing thumbnail background color for empty space in view."" 2016-02-05 02:43:05 +00:00
Winson Chung
781c77b381 Revert "Drawing thumbnail background color for empty space in view."
This reverts commit 3e85f9e48c0b30c8a7e5cd4512b091d00dcac4fa.

Change-Id: I3d86dc8ce34ff246f5b8a74d1346bed8492b05fc
2016-02-05 02:42:50 +00:00
Winson Chung
893b74078f Merge changes If0dfada2,Ice6a508b,Icf082399,I4db9cd1b,I88bd0f79
* changes:
  Fixing issue with history icons getting clobbered.
  Fallback 1 for Recents timeout behaviour
  Drawing thumbnail background color for empty space in view.
  Fixing issue with task animating from 0,0.
  Minor tweak to enter/exit animation for the home activity.
2016-02-05 02:42:02 +00:00
Steve McKay
95cd85ad38 Simplify State initialization w/ better semantics + improved Task security.
Also, reveal the illusion that we're restoring state in Files and Downloads.
Also, define a "PairedTask" class that guards calls to task methods
    with checks against isDestroyed. This also let us make all of the tasks
    static, so we get much narrower scope and tasks can even be moved to
    their own files.

Change-Id: I6a9e8706e1ab1d1f43301e73dd9858a115a6baaf
2016-02-04 18:30:29 -08:00
Wale Ogunwale
9884eaadd3 Merge "Do not recursively call setFocusedActivityLocked()" 2016-02-05 02:21:03 +00:00
Ben Kwa
13bbcdda48 Merge "Add vector art for empty and error screens." 2016-02-05 02:16:24 +00:00
Paul Jensen
44278472d8 Fix FrameworksServicesTests.apk to include libnativehelper.so
am: 514a3bfde6

* commit '514a3bfde6ccc8ca80f3bacdd370e2d4672b3d85':
  Fix FrameworksServicesTests.apk to include libnativehelper.so
2016-02-05 01:50:07 +00:00
Roozbeh Pournader
c9088c5d1b Merge "Various LocaleList cleanups" 2016-02-05 01:38:57 +00:00
Winson
3e85f9e48c Drawing thumbnail background color for empty space in view.
- When showing landscape thumbnails in portrait, the thumbnails are
  aspect scaled to fit the width of the view, this change will draw
  a solid color to fill the other part so that we don't see the
  current edge-clamp texture effect.

Change-Id: Icf08239942f9179c66ba0f8d8ddd00f7d2a09d3c
2016-02-04 17:33:26 -08:00
Winson
d7eb1ef7f4 Fixing issue with history icons getting clobbered.
- If the view holder is rebound before the other task is recycled, there
  could be multiple callbacks attached to different tasks for the same
  view holder, which can cause the wrong icon (which is loaded in the 
  bg, to be loaded into the wrong view holder).  Now, we unbind the 
  callback from the old task when the new task’s callbacks are bound.

Change-Id: If0dfada24985944daf4302c4db0616a00a770f06
2016-02-04 17:33:26 -08:00
Winson
9bbd2861ad Fixing issue with task animating from 0,0.
- When we get all the initial task transforms when swiping to dismiss, 
  the tasks that are not visible at the original scroll position but are
  in the final position are not initialized correctly.  Instead when
  getting the current transforms for all tasks, always calculate their 
  transforms regardless of whether they are currently visible or not.
- This revealed another issue where on snap-back, a task that was 
  visible at the new scroll and not at the old scroll was not getting 
  removed until the next update (which would cause a task view to linger
  if you press home for example).

Bug: 26964326
Change-Id: I4db9cd1b072d3841351c2e84b219ca224a3045f9
2016-02-04 17:33:26 -08:00
Winson
b61e654b9a Fallback 1 for Recents timeout behaviour
- Removing initial timeout
- Adding double tap to switch tasks

Change-Id: Ice6a508b842377809bf0dcea0997522164d0ccdf
2016-02-04 17:33:26 -08:00
Winson
40a2273377 Minor tweak to enter/exit animation for the home activity.
- Fixing issue where the animation props was not applied to the progress
  and callback animations correctly
- Ensuring that all tasks animate the same distance on enter/exit, and 
  not just to the edge of the screen
- Removing unused styles and animation resources

Change-Id: I88bd0f79f386304373fe63b49e92f02eeb882e55
2016-02-04 17:33:26 -08:00
Jae Seo
823441a74b Merge "TIF: Replace TvInputInfo in SessionState with ID and component name" 2016-02-05 01:21:08 +00:00
Chris Craik
9bab9e8656 Merge "Don't force transparent text to be high contrast" 2016-02-05 01:12:48 +00:00
Adam Powell
fbaa5a8c04 Merge "Make ChooserActivity grid items focusable" 2016-02-05 01:04:24 +00:00
Chris Craik
edf71a96c9 Don't force transparent text to be high contrast
bug:26142378

Change-Id: Ia6c9111d9b84d2a5d3385d08c586ac12c9b14dc0
2016-02-04 17:01:55 -08:00
Chong Zhang
3aa28b28fd Do not recursively call setFocusedActivityLocked()
This could potentially cause AM to set focus back to the top running,
and lead to inconsistent focus in AM and WM.

Also add some warnings to watch out for such cases.

bug: 26819496
Change-Id: Ie3fceeddedec4f2103a427989c9543cb3e9ff8f2
2016-02-04 16:57:52 -08:00
Adam Powell
62c0ee5755 Make ChooserActivity grid items focusable
Because keyboards are pretty cool.

Bug 26469615

Change-Id: Ie7a1a50c846ab9702821f9cf585f6d2c775cea38
2016-02-04 16:56:00 -08:00
Tomasz Mikolajewski
5bfdf2b39a Remove DirectoryContainerView class from DocumentsUI.
Removed and it works as before, I guess it was some workaround for a bug
in the past.

Change-Id: I859c995940ad04ac028aea1727a81358ca7fda1b
2016-02-05 09:50:02 +09:00
Ben Kwa
0e9aae4549 Add vector art for empty and error screens.
BUG=24949214,26143312

Change-Id: I24abe9743763d868ab6d1247aec594abec267c29
2016-02-04 16:35:27 -08:00
Chris Craik
3ff6b15d47 Merge "TaskManager bench" 2016-02-05 00:30:29 +00:00
Doris Liu
766431aa57 Revert "Revert "VectorDrawable native rendering - Step 4 of MANY""
This reverts commit 5a11e8d0ba21624025b89ac63bbd18befa55be0e.

Change-Id: I7a48b59c4f930dad65ddc8590c25a12636244ea2
2016-02-04 16:29:51 -08:00
Wale Ogunwale
f80170f455 Exclude tasks manipulated before user setup is complete from Recents
We don't want any tasks manipulated before the user is done setting-up
their device included in the tasks list we give to the Recents activity.
However, the task can be included back in Recents if it is manipulated
after the user set-up is complete. E.g. you go into the gmail activity
during setup the task will be exclude, but if the user goes back into
gmail after setup then we start including the task.

Bug: 25959392
Change-Id: I421d48f0a9bcfc782d1ef19aa2f63e8b34a668e2
2016-02-04 16:06:56 -08:00