Commit Graph

4119 Commits

Author SHA1 Message Date
Leon Scroggins III
b7abf31023 Merge "Recycle original screenshot after rotation." 2014-07-10 21:28:08 +00:00
Matthew Williams
a76932b909 Merge "Add job persistance as a setter in the API" 2014-07-10 21:02:07 +00:00
Matthew Williams
900c67fc51 Add job persistance as a setter in the API
Bug: 15936795
Change-Id: I11e5a722bab5838dc151670256ed09dfaa7fdaa7
2014-07-10 16:51:27 -07:00
Adam Powell
8e77c47d7c Merge "Elevation for action bars" 2014-07-10 20:54:59 +00:00
Adam Powell
14d1fa4ba7 Elevation for action bars
Expose theme attributes and API for ActionBar to adjust elevation of
the bar.

Remove the windowContentOverlay fake shadow from material themes and
use elevation instead.

Mmm, realtime shadows.

Bug 16207490

Change-Id: I254567a13422b6d2f657b9991608398885f45204
2014-07-10 16:23:39 -07:00
Jason Monk
20b716bfc6 Merge "Add API for device owner to switch users" 2014-07-10 21:21:20 +00:00
Leon Scroggins III
b101ebe8a6 Recycle original screenshot after rotation.
After copying the Bitmap to a new Bitmap, there is no need to keep
the original pixels.

This may help memory pressure when running automated tests and taking
lots of screenshots, although it does not fix the main source of the
problem.

BUG:15454296
Change-Id: I7e61886fbb46a8068db3e8dfa1fcb0afd88ea430
2014-07-10 16:06:50 -04:00
Jason Monk
582d9111d7 Add API for device owner to switch users
Once verified that caller is device owner just calls through to
the activity manager and acts like that call.

Change-Id: I34023313cd6742b73d2105655ec6b631879aa37a
2014-07-10 11:05:07 -04:00
Adrian Roos
74185a3982 Merge "Add AlarmClock API to AlarmManager" 2014-07-10 00:35:26 +00:00
Adrian Roos
c42a1e1071 Add AlarmClock API to AlarmManager
Adds a new kind of alarm that represents an alarm clock and
a way to query the next scheduled alarm clock.

Deprecates Settings.System.NEXT_ALARM_FORMATTED.

Bug: 14589952
Change-Id: I297eeeff36d07adcda010afac183d0f5ee37dc99
2014-07-10 17:07:36 +00:00
George Mount
b5ef7f8c6d Don't change View visibility during activity transitions.
Bug 16187776

Changing View visibility can change the View's focused item.
To prevent this, a backdoor is introduced into Transition
and Visiblity to set the target Visibility used in Activity Transitions.

Change-Id: Idfd2c6fba2cad80fecdfd086990ddc604f86ca68
2014-07-10 16:01:46 +00:00
Santos Cordon
f3e83e4503 Dynamically obtain telecomm service from PhoneManager.java
Bug: 16206418
Change-Id: Ie8845f4baf8956d03fcaf26cb899f5fb056df6cc
2014-07-10 18:11:21 +00:00
Jim Miller
85516d028b Add new "pin complex" type to supported keyguard PINs
This adds a feature to allow DevicePolicyAdmins to prevent using
simple PINs, which are defined as those containing more than 3
repeated values. Examples include '1234', '2468', '1111', '9876', etc.

Bug 12081139

Change-Id: I4ebe1c76a48087dcd7c878e9bd79a4e3ee2a27fe
2014-07-10 01:54:49 +00:00
Jeff Sharkey
30303faea6 Merge "Extend pm to support sessions and split APKs." 2014-07-09 21:45:32 +00:00
Jeff Sharkey
ec55ef0934 Extend pm to support sessions and split APKs.
Separate commands to create an install session, stream files into the
staging area, and then commit the install.  Streaming can accept data
from stdin across adb, avoiding extra copy from push.

Extend FileBridge to support blocking close().  Always destroy
session regardless of result.

Bug: 14975160
Change-Id: Ic3f462e7d1901079b785e210228950cdfa676466
2014-07-09 16:55:56 -07:00
Andres Morales
68d4acd205 Service for reading and writing blocks to PST partition
Permits apps with permission
android.permission.ACCESS_PERSISTENT_PARTITION to obtain
a read and write data blocks to the PST partition.

Only one block ever exists at one time in PST. When
a client writes another block, the previous one is
overwritten.

This permits storing a block of data that will live
across factory resets.

Change-Id: I8f23df3531f3c0512118eb4b7530eff8a8e81c83
2014-07-09 16:27:17 -07:00
Julia Reynolds
552697802f Merge "Map location-based op codes to UserManager.DISALLOW_SHARE_LOCATION." 2014-07-09 00:07:12 +00:00
Dake Gu
b06448abf9 Merge "add missing break for Activity options" 2014-07-07 17:47:39 +00:00
Dake Gu
7ef70b001b add missing break for Activity options
fix b/16166102

Change-Id: Iebe8c4d4e640a14b049ffa62d8decb062cfe8f12
2014-07-08 18:37:12 -07:00
Jeff Sharkey
5e6643c137 Merge "Clean up IPackageManager install surface area." 2014-07-08 22:56:18 +00:00
Jeff Sharkey
513a074de6 Clean up IPackageManager install surface area.
Also more removal of encryption support.

Change-Id: If525dc5a8422134515f225a8ac4731e968069468
2014-07-08 17:41:29 -07:00
Winson Chung
88085ad05b Merge "Refactoring to support groups." 2014-07-07 17:47:39 +00:00
Winson Chung
ffa2ec6644 Refactoring to support groups.
- Removing RecentService, determining animations just in time
- Fixing a few issues with animations of newly picked up tasks from the pool
- Moving helper classes into sub package

Change-Id: Ie10385d1f9ca79eea918b16932f56b60e2802304
2014-07-07 17:33:31 -07:00
Dianne Hackborn
6ea0d0a259 Fix cleanup of voice sessions.
They would leave active voice activities lingering around.

Change-Id: I5b6716ab303636ebdf2f13c3172552a73dae3bb1
2014-07-07 11:28:29 -07:00
Julia Reynolds
9854d57648 Map location-based op codes to UserManager.DISALLOW_SHARE_LOCATION.
Bug: 15928422
Change-Id: I9c59599d3bd2026277dcb382c92d23deec950d40
2014-07-02 18:55:41 +00:00
George Mount
8d3cd2c8cf Make shared element visible when exit transition finishes early.
Bug 16124915

Change-Id: I91aa4a4912f3edb298ec75dd4178572a2c941a31
2014-07-08 18:14:49 +00:00
Craig Stout
59c7b4b04f TimePickerDialog does not force new ui on TV.
Add support for done button in LegacyTimePickerDelegate.
Provide leanback themed legacy time picker layout with buttons
on the side.

b/15194230

Change-Id: Ie05c1cf45b334e9642095d63c682aba314ff3c6b
2014-07-07 23:08:11 +00:00
Craig Mautner
b0a11172ea Merge "Add Media Playing API" 2014-07-02 18:50:12 +00:00
Craig Mautner
ee2e45acbf Add Media Playing API
These methods permit an activity to play or continue playing media
behind a translucent activity above it. Particularly the home
activity in Android TV. Methods exist to notify the upper activity
when playing starts or stops and for notifying the playing activity
when to stop playing and release its resources.

Methods are called when either activity's state changes or new
activities are launched.

Fixes bug 14469711.

Change-Id: I7ba10c5a4683504931cffa228488f5281e5bbf86
2014-07-08 06:24:53 -07:00
George Mount
700db2a325 Fix converting to opaque when "back" hit quickly after entering.
Bug 16044696

Also ensured that there were no memory leaks.

Change-Id: I9b32592a5b57b496903b2c5ede6d742e86ab5fa7
2014-07-08 16:56:29 +00:00
George Mount
114c68cec4 Merge "Prevent exit transition when a new task was started." 2014-07-06 02:28:07 +00:00
George Mount
ff243289d3 Prevent exit transition when a new task was started.
Bug 15543793

Change-Id: Id9705009e16da82fe2068f16e167c9cd07696889
2014-07-07 16:42:44 -07:00
Christoph Studer
0c69a3e5e8 Remove unused Notification.EXTRA_SCORE_MODIFIED
Change-Id: I195204e384fc4818ae5980d978518c0e6403f3fb
2014-07-08 15:48:27 +00:00
Craig Mautner
d61dc20de1 Add Activity.isTopOfTask() method
Used by scene transition to determine if an activity has launched the
next activity into its own task or into another task.

Fixes bug 15771895.

Change-Id: I6d350350dcf27509296d55d7b75be90a01694ac9
2014-07-07 15:44:47 -07:00
George Mount
468f7da797 Merge "Introduce onNewActivityOptions for return activity" 2014-07-06 02:28:07 +00:00
Craig Mautner
eb8abf7207 Introduce onNewActivityOptions for return activity
When an activity that is already translucent returns to the
previous activity using a scene transition the receiving activity
did not receive its ActivityOptions for its side of the animation.
The new method onNewActivityOptions() delivers those options.

Fixes bug 14869070.

Change-Id: I09b136b3213aae5d3521894e17a7500ac793f3d2
2014-07-07 12:48:50 -07:00
Nick Kralevich
61dcb08c85 am 6b26ded8: am d05a0743: am a347ece5: Merge "Fix typo in comment of FragmentTransaction"
* commit '6b26ded8ce7b3cfa79fb5cda388283e2336c396b':
  Fix typo in comment of FragmentTransaction
2014-07-05 17:23:19 +00:00
Nick Kralevich
6b26ded8ce am d05a0743: am a347ece5: Merge "Fix typo in comment of FragmentTransaction"
* commit 'd05a0743484da59d341792749a3cf35f18a7e11c':
  Fix typo in comment of FragmentTransaction
2014-07-05 17:17:40 +00:00
Nick Kralevich
98acdc8007 am 3cdc06bb: am dbb32da8: am c9eff23b: Merge "Fix typo in DevicePolicyManager documentation"
* commit '3cdc06bb370a2f29d334e6916969e954875d51fe':
  Fix typo in DevicePolicyManager documentation
2014-07-05 16:56:47 +00:00
Nick Kralevich
3cdc06bb37 am dbb32da8: am c9eff23b: Merge "Fix typo in DevicePolicyManager documentation"
* commit 'dbb32da844cf8ed65d0b5005276a86aad7c81853':
  Fix typo in DevicePolicyManager documentation
2014-07-05 16:51:32 +00:00
Nick Kralevich
a347ece5a7 Merge "Fix typo in comment of FragmentTransaction" 2014-07-03 01:32:01 +00:00
Nick Kralevich
c9eff23b44 Merge "Fix typo in DevicePolicyManager documentation" 2014-07-03 01:32:01 +00:00
Kenny Guy
c13053bf1c Add package state to block uninstall.
Add package state to allow profile or device
owners to block uninstall of packages.
Add API to DevicePolicyManager to set/get the
state.

Bug: 14127299
Change-Id: I03528819850b42df7bafa7747bb9e4558d20c4e6
2014-07-04 11:35:17 +00:00
Craig Mautner
c0ffce5ddd Use cached thumbnails in Recent tasks.
The thumbnail returned from ActivityManager.getTaskThumbnail() now
contains either a Bitmap or a ParcelFileDescriptor that points to
a file containing a compressed Bitmap. The Recent tasks list is
now responsible for all thumbnail Bitmap caching as the activity
manager keeps only the most recent 5. This also permits low memory
devices to have many more tasks in the Recent tasks list.

As part of this CL the concept of subtasks is removed eliminating
code supporting the TaskAccessInfo and IThumbnailRetriever classes.

Fixes bug 15828934.

Change-Id: I0fd0320a1a04e3c78d79357899b83a2fff97abf2
2014-07-02 16:31:46 -07:00
Jessica Hummel
edb7ae704b Remove unused action from DevicePolicyManager.
This is part of a simplification to cut out one communication with mdm apps.

Change-Id: I7d0067928c20387dca8fcc45a7bc48d9d158fa2c
2014-07-03 11:14:33 +01:00
Santos Cordon
f90186d93e Add PhoneManager to expose functionality to phone/dialer apps.
Eventually, this will house the TelecommManager methods.

Change-Id: Id8b08d88a06a7b4e90a4a7f702ba56526e108ca5
2014-07-02 18:01:56 +00:00
George Mount
82ffc141f5 Ensure views have been laid out before capturing the epicenter.
Bug 15992706

Change-Id: If245040b756882bcc82f56ef2c4563ce25c24e9e
2014-07-02 14:26:13 +00:00
George Mount
00dde0bd46 Fix hang when there is no shared element in activity transition.
Bug 15990826

Change-Id: Id494a51baf8694abd6c5207389cd8334db485d1a
2014-07-02 13:50:09 +00:00
Jason Monk
1c7c319bb8 User restriction for disallowing window creation
Block any types of windows that could by used by apps to create
views on top of a locked app.  This can be used by device admins
in conjunction with lock task mode.

Added a way for system (and priv apps) to bypass user restrictions
for specified op codes.

Bug: 15279535
Change-Id: I2381530ef6226a5bb32a99bb4030baafb39bf564
2014-07-02 09:02:46 -04:00
Nicolas Prevot
7f7b0c759e Returning badged icons for components of corporate apps.
So, corporate apps in disambiguation dialogs are badged.
And updating the way we show the icon of the personal space to this new design.

BUG: 14377051

Change-Id: Idc707773a64a8feb2d9d4df88c425d5100542636
2014-07-02 12:09:51 +01:00