42046 Commits

Author SHA1 Message Date
Amith Yamasani
655d0e2029 Single-user restrictions
Introduces a new "blocked" state for each package. This is used to temporarily
disable an app via Settings->Restrictions.

PIN creation and challenge activities for use by Settings and other apps. PIN
is stored by the User Manager and it manages the interval for retry attempts
across reboots.

Change-Id: I4915329d1f72399bbcaf93a9ca9c0d2e69d098dd
2013-06-25 16:03:55 -07:00
Igor Murashkin
4c018e4050 Merge "Revert "Partial CameraManager implementation"" 2013-06-25 05:15:55 +00:00
Igor Murashkin
a858308ed2 Revert "Partial CameraManager implementation"
This reverts commit e473f7d8f96b5682141522378b761913192d8114.

Change-Id: I23e92ca2def0ebf507f6c782442a4698745bc926
2013-06-25 05:15:02 +00:00
Igor Murashkin
0c5e010efe Merge "Revert "Initial camera device implementation"" 2013-06-25 05:14:37 +00:00
Igor Murashkin
36483e9622 Revert "Initial camera device implementation"
This reverts commit 59bc67c732eab53b370b196066e8012d3f6bf09a.

Change-Id: I9e1ce3b9f4af4e2b9b98855c0ca533581c87ea7f
2013-06-25 05:13:55 +00:00
Romain Guy
e981c516e7 Merge "Make sure we have a valid EGL context before drawing Bug #9404946" 2013-06-25 02:23:08 +00:00
Romain Guy
cc6b7caff0 Make sure we have a valid EGL context before drawing
Bug #9404946

Run another EGL context check after invoking user code to ensure
we have a valid context/surface pair before drawing the display list.

Change-Id: Iefb0ced7900ce0c54eb81b62d24ec00700bdce47
2013-06-24 19:19:21 -07:00
Dianne Hackborn
d982851d29 Merge "Use FastPrintWriter... everywhere." 2013-06-25 01:18:57 +00:00
Dianne Hackborn
8c84109b9f Use FastPrintWriter... everywhere.
One problem this turned up is, because FastPrintWriter does
its own buffering, a lot of code that used to use PrintWriter
would fail -- if it pointed to a StringWriter, there was no
buffering, so it could just immediately get the result.  Now
you need to first flush the FastPrintWriter.

Also added some new constructors to specify the size of buffer
that FastPrintWriter should use.

Change-Id: If48cd28d7be0b6b3278bbb69a8357e6ce88cf54a
2013-06-24 18:16:48 -07:00
Igor Murashkin
d5540fb1a9 Merge changes I183dd47d,I29864a5d
* changes:
  Initial camera device implementation
  Partial CameraManager implementation
2013-06-25 00:48:53 +00:00
Igor Murashkin
59bc67c732 Initial camera device implementation
* Working streaming preview requests only
* Almost everything else returns empty objects that don't do anything

Bug: 9213377
Change-Id: I183dd47ddd737ec2c3c374e5c3461542a97f09b0
2013-06-24 17:41:10 -07:00
Igor Murashkin
e473f7d8f9 Partial CameraManager implementation
Bug: 9213377
Change-Id: I29864a5d1f7971ed589d1ffaddeefbb703e34018
2013-06-24 17:41:09 -07:00
Christopher Tate
4ce55a3987 Fix FLAG_PRIVILEGED numbering
Change-Id: Ia04326acb51a76c0f1931fce94f0501d4ce7faba
2013-06-24 16:44:39 -07:00
Dianne Hackborn
3af16b226b Merge "Improve FastPrintWriter." 2013-06-24 23:02:02 +00:00
Dianne Hackborn
e5a9c92377 Improve FastPrintWriter.
Change-Id: I23acb8d4c3db1f2f8e2f8003296f8c253e2ae7d2
2013-06-24 15:54:52 -07:00
Derek Sollenberger
87751a282d Merge "Fix SkASSERT errors resulting from the order objects are allocated on the stack." 2013-06-24 19:54:57 +00:00
Derek Sollenberger
6b0437c2c7 Fix SkASSERT errors resulting from the order objects are allocated
on the stack.

Change-Id: I24649fed5c069d8d3777d153e8fb31a55a9cf7a1
2013-06-24 15:40:54 -04:00
Svetoslav
cf165a0ae0 Merge "Print APIs documentation update" 2013-06-24 18:34:33 +00:00
Craig Mautner
07f36c738e Merge "Add activity token to display system." 2013-06-24 18:31:54 +00:00
Alan Viverette
db759c3f02 Merge "Implement FastScroller as an animated overlay." 2013-06-24 17:23:19 +00:00
Chet Haase
edaf0794bb Merge "Fix ViewGroupOverlay's handling of invalidating viewgroups" 2013-06-24 16:37:55 +00:00
Svetoslav
fd90651cfc Print APIs documentation update
Change-Id: I0df438e45ef540cc42c9ee5baafc816ebafa1c7b
2013-06-24 09:05:38 -07:00
Craig Mautner
48d0d18867 Add activity token to display system.
First step in adding activity specific information to displays.
Replace CompatibilityInfoHolder with DisplayAdjustmentsHolder that
holds an activity token in addition to the CompatibilityInfo.

Change-Id: Ie113cd8dd9c62e0b5311204e039a4829096bea68
2013-06-22 15:30:13 -07:00
Svetoslav
53f57d162b Print API tweaks.
Change-Id: I4fcf93f17495740e8b8d0dc4e425a89862716b42
2013-06-22 00:26:49 -07:00
Svetoslav Ganov
4b9a4d1687 Print - platform APIs
Related changes:
    Skia (inlcude PDF APIs): https://googleplex-android-review.googlesource.com/#/c/305814/
    Canvas to PDF: https://googleplex-android-review.googlesource.com/#/c/319367/
    Settings (initial version): https://googleplex-android-review.googlesource.com/#/c/306077/
    Build: https://googleplex-android-review.googlesource.com/#/c/292437/
    Sample print services: https://googleplex-android-review.googlesource.com/#/c/281785/

Change-Id: I104d12efd12577f05c7b9b2a5e5e49125c0f09da
2013-06-21 18:43:17 -07:00
Chet Haase
e4a2d7c48e Fix ViewGroupOverlay's handling of invalidating viewgroups
Invalidating a view property (alpha, rotation, etc.) causes an
invalidation process that does not work correctly when the view is
in a ViewOverlay. Specifically, if the view is not directly in the
overlay, but is instead inside a hierarchy which is within the overlay,
then the invalidation process stops at the ViewOverlay itself, because
the ViewOverlay has no "parent" view.

The fix is to override the invalidateChildInParentFast() method, just
like we override invalidateChildInParent(), to forward the invalidation
to the host view.

Issue #9389230 Animations not running for nested views under ViewGroupOverlay

Change-Id: I03fcef10ed1c8a91cb26d5d9d6945634b0b695b5
2013-06-21 17:49:36 -07:00
Alan Viverette
0ebe81e8b1 Implement FastScroller as an animated overlay.
Bug: 9372090
Change-Id: I46cb67ef0482a4c8f721248d5f5e2e692144c3a1
2013-06-21 17:01:36 -07:00
Dianne Hackborn
142dd91583 Merge "Faster PrintWriter." 2013-06-21 23:49:08 +00:00
Romain Guy
35c70f94ef Merge "When destroying a surface, only unmake current if necessary Bug #9404946" 2013-06-21 23:44:32 +00:00
Romain Guy
c8ba0b4616 When destroying a surface, only unmake current if necessary
Bug #9404946

The Calendar app destroys one of its popup windows during a draw
traversal. Without this patch, we end up with no current context
nor surface after we're done gathering display lists. This means
that all of our EGL/GL calls will either fail or have undefined
behaviors. This could explain the PBO crash we are seeing with
the monkeys. Without a proper GL context, the driver returns NULL
when we map the PBO in CPU memory.

Change-Id: I210cf724be73da909a7621f807298a9f4a58e61d
2013-06-21 16:40:30 -07:00
kmccormick
00c5620acf am 30c8973f: am 75c59fb9: am dc22fa92: Merge "Doc change: new Bluetooth LE doc" into jb-mr2-dev
* commit '30c8973f66ad035a1734c8e53173b58ac1fbd32d':
  Doc change: new Bluetooth LE doc
2013-06-21 16:34:40 -07:00
kmccormick
30c8973f66 am 75c59fb9: am dc22fa92: Merge "Doc change: new Bluetooth LE doc" into jb-mr2-dev
* commit '75c59fb9d9a1408146165300eae0899a965897bf':
  Doc change: new Bluetooth LE doc
2013-06-21 16:31:41 -07:00
Chet Haase
2ea7f8b9c5 Refactoring/simplifying Transition code/API
Transitions used to be three phase:
- captureValues(): get all relevant property values in the
affected view targets
- setup(): set appropriate start values for affected views
prior to any transitions being played
- play(): create/play Animators for affected views

Now the second and third phases have been collapsed (and named
"play()"). This single step sets initial values for target views
and creates any Animators that should be played during the transition.
The transition mechanism stores these Animators and then starts
them at the appropriate time in the overall transition.

Issue #9507585 Transitions: Simplify Transition.play() design

Change-Id: I3fc67599b38fe49eee885dc5d32444db90b7703b
2013-06-21 16:07:14 -07:00
Dianne Hackborn
db4e33f1f1 Faster PrintWriter.
Change-Id: I4e1ae7e0357214deb7e19ae65f8701b69b347c6e
2013-06-21 16:00:30 -07:00
kmccormick
dc22fa924a Merge "Doc change: new Bluetooth LE doc" into jb-mr2-dev 2013-06-21 23:00:18 +00:00
Michael Wright
862a301bf9 Merge "Paint current points a different color in PointerLocation" 2013-06-21 22:26:36 +00:00
Michael Wright
76936eb96a Paint current points a different color in PointerLocation
Change-Id: I05be4ce1886f944cd948ded4d9ace08d70cdb00e
2013-06-21 15:18:06 -07:00
Dianne Hackborn
f35f56a1bd Merge "More procstats work: separate global proc account, more dumping." 2013-06-21 22:06:28 +00:00
Dianne Hackborn
a17c0f5e16 More procstats work: separate global proc account, more dumping.
We now keep track of the time actually process run independently
of the time packages run in process, so we can give an accurate
summary of how long each physical process runs.

New command line options can be supplied to restrict printing to
a specific package, dump in a new csv format, control what is
printed in the csv format, and print a checkin report.

Add toString methods to ArrayMap and ArraySet.

Change-Id: I47b8f68472592ecc0088c5286d3564aa615f4e0a
2013-06-21 15:03:41 -07:00
kmccormick
f14ff1c9ce Doc change: new Bluetooth LE doc
Change-Id: Ib6d67497a9b4d54d13b4da8f1f9ee991bc5ef562
2013-06-21 14:52:05 -07:00
John Spurlock
e539ee865f Merge "Introduce SystemUI-managed alternative system bars." 2013-06-21 21:34:38 +00:00
John Spurlock
5c4541246c Introduce SystemUI-managed alternative system bars.
If a service component is defined in a new secure setting,
SystemUI will attempt to use that service as the status bar
provider.

Falls back to the existing in-process implementation configured
in the product config if the setting is missing or invalid.

Nothing changes yet from a permission point of view.  Alternative
system bar implementations still require the status bar permission.

Also nothing changes from an api point of view.  Alternative
system bar implementations use the existing IStatusBar interface.

This simply enables testing alternative system bar implementations
installed from other trusted, platform-signed packages.

Known caveat: the setting is stored per user, multi-user changes
will be handled in a future CL.

Change-Id: I0413df185f7e75f77ad2ae1bc3689306d5e6e0fb
2013-06-21 17:31:25 -04:00
Romain Guy
4a7052a775 Merge "Safely dispose of the resize buffer" 2013-06-21 21:08:26 +00:00
Romain Guy
27e0bf6278 Safely dispose of the resize buffer
We just ensure there is a valid EGL context before
we destroy the associated layer.
2013-06-21 14:07:07 -07:00
Svetoslav Ganov
b06accf34f Merge "Generate PDF from Canvas." 2013-06-21 20:09:51 +00:00
Georgi Nikolov
3b8b276644 Merge "Add javadoc comments explaining SYNC_EXTRAS that did not have documentation" 2013-06-21 17:27:12 +00:00
Brian Carlstrom
7d73e227fe Merge "Remove libdvm dependency" 2013-06-20 23:54:18 +00:00
Brian Carlstrom
9f8203a159 Remove libdvm dependency
Change-Id: I7d37db4e72e9435ecd514340cf61a051dc272f04
2013-06-20 16:34:45 -07:00
Chet Haase
6ebe3de331 Fix transitions on disappearing view hiearchies
Previously, Fade transitions did not work correctly on hirearchies; they
only handled individual views. in particular, they would side-effect all
fading views by removing them from their parent to fade them out in the
overlay of the scene root. This worked for the fade-out transition itself,
but caused problems when those same hierarchies were added back in and
another Fade was run on the hierarchy, because now all of the views inside
that parent node had been removed, so they didn't fade in at all.

The fix was to add logic in Visibility to detect when a disappearing
view was inside a hierarchy that was also disappearing, and to skip the
fade on the views inside that hierarchy, leaving only the top-most
disappearing view to be faded out, thus preserving the hierarchy under
that faded-out group.

Along the way, there were various cleanups, fixes, and refactorings in the
transition code, and slight API modifications.

Issue #9406371 Transitions: Removing view hierarchy not working correctly
Issue #9470255 Transitions: Separate different transitions by Scene Root

Change-Id: I42e80dac6097fee740f651dcc0535f2c57c11ebb
2013-06-20 15:35:04 -07:00
Georgi Nikolov
b3395575a3 Add javadoc comments explaining SYNC_EXTRAS that did not have documentation
Change-Id: I3500f03076694fe5981fd5ec82e7f29062dfec53
2013-06-20 13:49:25 -07:00