5284 Commits

Author SHA1 Message Date
Svetoslav
6283608e0b Tweak the print APIs.
1. Adding bundle with metadata to PrintDocumentAdapter#onLayout
   with one key for now to specify whether this is for a preview.

2. Cleaned up docs.

Change-Id: I89380781bf3ae41aa89f8a0347d74516a210394c
2013-07-17 14:55:15 -07:00
Svetoslav
17b7f6e6d4 Clean up of the print APIs.
1. Fixed a case in which the onPrintCompleted callback may not be invoked.

2. Added string resulrces for the different error messages for failed
   printing in OnPrintCompletedCallback

3. Fixed the string comments for the MediaSize constants.

4. Added APIs to create certain print attributes by passing in a
   string label instead of resource and package name since in some cases
   a print service may be getting already internationalized lables
   or it may not know all possible values.

5. Fixed a crash in PrintJobConfigActivity if there is no input or
   output tray.

Change-Id: Ie877b7dc669051606394aa290e6d2b979a42db4c
2013-07-16 14:39:32 -07:00
Svetoslav Ganov
c59df3caeb Merge "Refactoring of the print sub-system and API clean up." 2013-07-16 20:01:34 +00:00
Svetoslav Ganov
a00271533f Refactoring of the print sub-system and API clean up.
1. Now a user state has ins own spooler since the spooler app is
   running per user. The user state registers an observer for the state
   of the spooler to get information needed to orchestrate unbinding
   from print serivces that have no work and eventually unbinding from
   the spooler when all no service has any work.

2. Abstracted a remote print service from the perspective of the system
   in a class that is transparently managing binding and unbinding to
   the remote instance.

3. Abstracted the remote print spooler to transparently manage binding
   and unbinding to the remote instance when there is work and when
   there is no work, respectively.

4. Cleaned up the print document adapter (ex-PrintAdapter) APIs to
   enable implementing the all callbacks on a thread of choice. If
   the document is really small, using the main thread makes sense.

   Now if an app that does not need the UI state to layout the printed
   content, it can schedule all the work for allocating resources, laying
   out, writing, and releasing resources on a dedicated thread.

5. Added info class for the printed document that is now propagated
   the the print services. A print service gets an instance of a
   new document class that encapsulates the document info and a method
   to access the document's data.

6. Added APIs for describing the type of a document to the new document
   info class. This allows a print service to do smarts based on the
   doc type. For now we have only photo and document types.

7. Renamed the systemReady method for system services that implement
   it with different semantics to systemRunning. Such methods assume
   the the service can run third-party code which is not the same as
   systemReady.

8. Cleaned up the print job configuration activity.

9. Sigh... code clean up here and there. Factoring out classes to
   improve readability.

Change-Id: I637ba28412793166cbf519273fdf022241159a92
2013-07-16 12:59:59 -07:00
John Spurlock
fe4fb365ba Merge "Un@hide View.PRESSED_STATE_SET." 2013-07-16 13:37:18 +00:00
michaelwr
20555cb645 Merge "Add a keycode to switch audio tracks (1/2)" 2013-07-16 01:38:46 +00:00
Jeff Brown
6c1c0b6cbe Declare permission for accessing input flinger.
Change-Id: I2914b301b74e0d310a9e95e2d6fb5cb72d3e3703
2013-07-15 15:08:39 -07:00
Igor Murashkin
648e4fc7ad Merge "camera2: Implement CameraDevice#getCameraInfo" 2013-07-15 20:45:36 +00:00
Igor Murashkin
d7bf1778df camera2: Implement CameraDevice#getCameraInfo
Bug: 9529161
Change-Id: Ie37d1e07bb8416cbb141f4d49e52337bf7236610
2013-07-15 13:37:08 -07:00
John Spurlock
0a55c94730 Un@hide View.PRESSED_STATE_SET.
Looks like an oversight.  The other state sets are public, and we
reference this one in the public docs.

Change-Id: I1c2d8bec3cb277ebfb55ccaacefab0cb38703177
2013-07-15 12:18:04 -04:00
keunyoung
27116e35e8 Merge "add TYPE_PRIVATE_PRESENTATION window type" 2013-07-12 23:03:21 +00:00
keunyoung
a446bf0e8c add TYPE_PRIVATE_PRESENTATION window type
- This window type can be used for Presentation created on top of virtual
  private display.
- There can be PRIVATE_PRESENTATION specific policy / behavior, but for now,
  there is nothing special.

Change-Id: I9fde0f0376e57fcc60000d3a3f8657a21ef58993
2013-07-12 14:41:10 -07:00
Chet Haase
c81a849388 Fix minor transition bugs and add capabilities
Some view changes require more flexible transitions than the
defaults provided by Crossfade and TextChange - this change supplies some
of that flexibility.

Also, starting a new transition on a hierarchy undergoing a transition
caused the first to get canceled, then the start values to be retrieved.
The new transition should actually get the start values from the intermediate
state of the views, so we now cancel the previous transition only after the
start values have been captured.

Issue #9756349 Transitions: Crossfade does not handle interruption/reverse correctly
Issue #9295863 Transitions: Add behavior API/flags to various transitions
Issue #9275859 Transitions: Improve mechanism for transition interruption

Change-Id: I5a8c5a12466ddcab9e84e4880930563fa1216f3b
2013-07-12 13:40:38 -07:00
Jaekyun Seok
bfdad8ecad Add a keycode to switch audio tracks (1/2)
A key to switch audio tracks is general on media devices like blu-ray.

Bug: 9728155
Change-Id: Ib61822b8aa9c143a8febc3cff4707fa775119448
2013-07-12 17:23:29 +09:00
Elliott Hughes
bea6525a53 am 9c8685b7: am f094eefc: am c5de9c35: Merge "Track libcore API update."
* commit '9c8685b714b38c2bbf09077b9cba73a95b734269':
  Track libcore API update.
2013-07-11 19:01:40 -07:00
Elliott Hughes
9c8685b714 am f094eefc: am c5de9c35: Merge "Track libcore API update."
* commit 'f094eefc34013c7167effa558b488709eaa54751':
  Track libcore API update.
2013-07-11 18:55:54 -07:00
Elliott Hughes
f094eefc34 am c5de9c35: Merge "Track libcore API update."
* commit 'c5de9c3509e6f91f1a6fca4541c5a2dfc9878dcc':
  Track libcore API update.
2013-07-11 18:52:11 -07:00
Adam Powell
639f37e7ab Merge "Un-hide all ViewParent methods" 2013-07-11 22:50:38 +00:00
Adam Powell
504a10f2f5 Un-hide all ViewParent methods
Make it possible for code outside the framework to implement the
ViewParent interface.

Change-Id: Ic1b4eb15a4b3da1d16c92b59e039d89861d893e4
2013-07-11 15:25:59 -07:00
Igor Murashkin
b519cc52ec camera2 api: Add CameraMetadata get/set support
* Add a Rational class
* Can get/set Key<T> where T is a primitive (or Rational)
* Can get/set Key<T> where T is a primitive array
* Can get/set Key<T> where T is an enum (synthetic constructor only)

Not implemented yet:
* When T is anything else, i.e. Rect, Size, etc

Bug: 9529161
Change-Id: I64438024a1e8327a38dd2672652626f0ffbb70e3
2013-07-11 13:06:56 -07:00
Elliott Hughes
8964b3bb3d am f445a685: am 0b18c149: am 0f50cb31: Merge "Fix build."
* commit 'f445a6856777cdcbec14342c2a3510b26ea7b675':
  Fix build.
2013-07-11 10:17:12 -07:00
Elliott Hughes
9444fcae54 Track libcore API update.
Change-Id: I7ad4ee87008c2ba0f8f16d1c86d81b8114359e04
2013-07-11 10:06:35 -07:00
Craig Mautner
fb20eb48aa Merge "Add convertToTranslucent to API." 2013-07-10 21:52:28 +00:00
Dianne Hackborn
1304f4ae32 Add new location monitoring op, make some of app ops public.
The new location monitoring op is to tell us when an application
is monitoring for any location changes.  It may be useful information
in addition to the more explicitly information about when location
data actually goes to the app.

Also make parts of AppOpsManager public for use by gcore.  It is
not available to third party apps.

Change-Id: Ib639f704258ffdd7f3acd7567350ed2539da628a
2013-07-09 18:17:27 -07:00
Elliott Hughes
f445a68567 am 0b18c149: am 0f50cb31: Merge "Fix build."
* commit '0b18c14931c4ca618c67b5ac5c8351246879e90a':
  Fix build.
2013-07-09 17:53:32 -07:00
Elliott Hughes
0b18c14931 am 0f50cb31: Merge "Fix build."
* commit '0f50cb31980c8354a4516094863c4ad0cdd0d03b':
  Fix build.
2013-07-09 17:51:34 -07:00
Elliott Hughes
bfa5465ed2 Fix build.
Change-Id: Icdbf7811e7acb8bed372def3beec8385a631713a
2013-07-09 17:48:11 -07:00
Craig Mautner
5eda9b3301 Add convertToTranslucent to API.
Rename convertToOpaque to convertFromTranslucent. Add the
counterpart to Activity.convertFromTranslucent() for returning from
opaque to a translucent Activity. The caller should wait until
TranslucentConversionListener.onTranslucentConversionComplete() is
called before actually changing the background to translucent.

Change-Id: Id04b026bcc4dd8bad9a33a7af126e1bb28fb9c03
2013-07-09 14:50:12 -07:00
Elliott Hughes
6295aac184 am 269d3722: am 86aa1953: am 2a26547f: Merge "Track libcore API update."
* commit '269d3722762c74a766b9c3200a25832ba8307aa9':
  Track libcore API update.
2013-07-08 10:06:20 -07:00
Elliott Hughes
269d372276 am 86aa1953: am 2a26547f: Merge "Track libcore API update."
* commit '86aa19532896dc6ede04d53ee96708becde9b0dc':
  Track libcore API update.
2013-07-08 10:03:48 -07:00
Elliott Hughes
86aa195328 am 2a26547f: Merge "Track libcore API update."
* commit '2a26547fd391c8038ad9f57fcb51d62fba0ee543':
  Track libcore API update.
2013-07-08 10:01:17 -07:00
Elliott Hughes
2ecdbc5395 Track libcore API update.
Bug: 3484927
Change-Id: Icd8a45d33efd205a5eb21ac6a4fcf781f8b5e064
2013-07-08 09:41:06 -07:00
Dianne Hackborn
d9fb14a38a Merge "Misc memory stuff." 2013-07-02 18:30:43 +00:00
Dianne Hackborn
2286cdc0ca Misc memory stuff.
- New Activity.reportFullyDrawn() method that applicatins can call
  when they know they are fully drawn, allowing us to have better
  app launch time info.  This data is also included in usage stats.
- Added total and free memory data "dumpsys meminfo".
- Tuned the moderate memory levels to be more aggressive about
  considering the device getting low on RAM, and thus starting
  to prune RAM from processes.
- Fixed issues in processstats when reading old data as well as
  resetting and other various fixes.

Change-Id: I20efe7451afb4edfa1aeec448328ba601c24d869
2013-07-02 11:21:04 -07:00
Elliott Hughes
70673628ab am 9544df07: am e88fe7f4: am 94fed1c5: Merge "Track libcore API update."
* commit '9544df0767b7e3e7d9f807cb2290cd3afba73b7a':
  Track libcore API update.
2013-07-01 17:01:31 -07:00
Elliott Hughes
bd856a5516 am aaf16120: am 7c56325d: am c26e5505: Merge "Track libcore API update."
* commit 'aaf1612067451c30d1564f3ac4361527e4ab92c3':
  Track libcore API update.
2013-07-01 17:01:26 -07:00
Elliott Hughes
9544df0767 am e88fe7f4: am 94fed1c5: Merge "Track libcore API update."
* commit 'e88fe7f415334ae04a289f8bc697404212784df0':
  Track libcore API update.
2013-07-01 16:48:00 -07:00
Elliott Hughes
e88fe7f415 am 94fed1c5: Merge "Track libcore API update."
* commit '94fed1c5d570a92d357657451e5b47aba4feee12':
  Track libcore API update.
2013-07-01 16:45:33 -07:00
Elliott Hughes
bf1589d0df Track libcore API update.
Bug: 3484927
Change-Id: I04de17b1191295e3fa874c9e351ae686d9eecef5
2013-07-01 16:39:34 -07:00
Elliott Hughes
aaf1612067 am 7c56325d: am c26e5505: Merge "Track libcore API update."
* commit '7c56325d57c3c6022cfcb9b71343751c572bc656':
  Track libcore API update.
2013-07-01 16:24:48 -07:00
Elliott Hughes
7c56325d57 am c26e5505: Merge "Track libcore API update."
* commit 'c26e5505495f7a36163477e12098d5fd2822cae9':
  Track libcore API update.
2013-07-01 16:22:16 -07:00
Elliott Hughes
812990a9e5 Track libcore API update.
Bug: 3484927
Change-Id: I52a37bdeafe431255034543e0fad5f808955309f
2013-07-01 14:46:31 -07:00
Elliott Hughes
04971a736a am 1a6fe26d: am c63c0682: am e3b94f05: Merge "Track libcore API change."
* commit '1a6fe26d1bd5bcfbd44ed9e6d2cf52c027b764a2':
  Track libcore API change.
2013-06-28 18:15:40 -07:00
Elliott Hughes
1a6fe26d1b am c63c0682: am e3b94f05: Merge "Track libcore API change."
* commit 'c63c068228267b41fb106e22a6914ab19da9e5bc':
  Track libcore API change.
2013-06-28 18:13:29 -07:00
Elliott Hughes
c63c068228 am e3b94f05: Merge "Track libcore API change."
* commit 'e3b94f05b8be2b6305cbee77c23b7f7599bfcff7':
  Track libcore API change.
2013-06-28 18:11:10 -07:00
Elliott Hughes
97c538d5f3 Track libcore API change.
Bug: 3484927
Change-Id: If49d0389e4ecb826052e168e070b673894d91318
2013-06-28 18:03:46 -07:00
Zhijun He
b8b77bf59e Correct request template value for record and still
they should match the request template values defined in camera3.h.

Bug 9213377

Change-Id: Ib24aa33a0ed59aff14b115c5d213ac287ea0d948
2013-06-28 17:46:45 -07:00
Elliott Hughes
ebb77f55a9 am d1411efe: am 324993ab: am 5216f11e: Merge "Track libcore API update."
* commit 'd1411efee372a37fcd0178f3ccffd9bf1d67b70b':
  Track libcore API update.
2013-06-28 16:28:22 -07:00
Elliott Hughes
d1411efee3 am 324993ab: am 5216f11e: Merge "Track libcore API update."
* commit '324993abed48843da1cb63063668147151e4db5c':
  Track libcore API update.
2013-06-28 16:26:08 -07:00
Elliott Hughes
324993abed am 5216f11e: Merge "Track libcore API update."
* commit '5216f11e462b9f17704c0ac9e193d2149f3fa755':
  Track libcore API update.
2013-06-28 16:23:47 -07:00