4769 Commits

Author SHA1 Message Date
Svetoslav Ganov
26bd5f1d3a Merge "Implement persistence/restoring of print spooler state." 2013-07-22 20:08:16 +00:00
Svetoslav Ganov
88d199130d Implement persistence/restoring of print spooler state.
1. Implemented the persistence and restoring of the print spooler state.
   The print spooler state is saved as an XML on every print job change
   and is restored when we bind to the spooler. The system does not
   unbind from the spooler until the state persistence completes. We
   are now storing the entire state, i.e. all print jobs, when a single
   one changes. This is not optimal but we are not expecting to have
   many such at the same time, so for now we err for simplicity of
   implementation.

2. Enforcing a non-empty print job name.

3. Hidden the STATE_CREATED print job state which should never be visible to a
   client since this is the state of a print job during construction, i.e. the
   print dialog is up and we are doing back and forth with the app.

4. Fixed some PrintAttributes APIs that were incorrectly taking in a PackageManager
   instance.

5. Updated the PrintSpooler build file due to splitting the framework into multiple
   jars.

Change-Id: I52c88eaa1ec9c64920359cc143c79832a4c3d25b
2013-07-22 13:07:09 -07:00
Jim Miller
37ee2647d4 Merge "Fix keyguard layout on hdpi devices" 2013-07-20 01:52:08 +00:00
Jim Miller
99054020b8 Fix keyguard layout on hdpi devices
This reduces the size of the security area slightly to give
the widget more room.

Fixes bug 9642579

Change-Id: I58b861def932450901b17d6df74958dde8207769
2013-07-19 18:37:12 -07:00
Svetoslav
597945fd3a First pass of the print dialog UX
Change-Id: I315a16d7f68c73ca180c76e722847b4b1bdea55b
2013-07-19 16:23:12 -07:00
Baligh Uddin
94edfc99c8 Merge "Import translations. DO NOT MERGE" 2013-07-19 17:19:20 +00:00
Satoshi Kataoka
c0743ec466 Merge "Fix an issue on hardcoded alarm settings intent" 2013-07-19 03:26:53 +00:00
Baligh Uddin
25a78901fd Import translations. DO NOT MERGE
Change-Id: I9a868474b1fa886a461c5f5d81126aabc8d98bef
Auto-generated-cl: translation import
2013-07-18 11:45:05 -07:00
Svetoslav
dc990e7c61 Merge "Tweak the print APIs." 2013-07-17 22:05:21 +00:00
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
John Spurlock
209bede6b9 Remove trailing whitespace from system ui.
Baseline existing .java files, no excuses going forward.

Change-Id: I4bd0f25bbda6f2ec832e34ef5c70d4830bf07f99
2013-07-17 12:23:27 -04: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
Jeff Sharkey
1117048161 Merge "Disable documents test UI." 2013-07-16 20:03:35 +00:00
Jeff Sharkey
e6ddb9222d Disable documents test UI.
Change-Id: Iae8ef3e751a53a3f7df0a7c5bc666ec75e91d9e9
2013-07-16 13:01:57 -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
Chris Wren
7b5c6170db Merge "unify variable naming scheme." 2013-07-16 18:41:00 +00:00
Chris Wren
574a55e9ee unify variable naming scheme.
inflateViews() and updateNotification() reference the same objects
with different names, and it was confusing.  #cleanup

Bug: 6497005
Change-Id: I0d9a94d7ec156b6bfcf4b85c777f9b58311d07d0
2013-07-16 14:34:46 -04: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
Baligh Uddin
894ff8922e Merge "Import translations. DO NOT MERGE" 2013-07-11 18:55:30 +00:00
Baligh Uddin
4301744539 Merge "Import translations. DO NOT MERGE" 2013-07-11 18:53:01 +00:00
Elliott Hughes
a7ac8be1f5 am dff4ec87: am e16a21c6: resolved conflicts for merge of 4a59376d to stage-aosp-master
* commit 'dff4ec87e7b942b7b4410f639fc74c2cffb386d6':
  Track libcore API change.
2013-07-11 10:16:46 -07:00
Baligh Uddin
cbc9afdcd5 Import translations. DO NOT MERGE
Change-Id: I3560b16b347b71c61ad1f723d444dbd056ee0d8f
Auto-generated-cl: translation import
2013-07-10 18:41:54 -07:00
Baligh Uddin
08f8a810d9 Import translations. DO NOT MERGE
Change-Id: I3f2d4b1f5d1ca4bb1f3c0e04757a627ad52ae365
Auto-generated-cl: translation import
2013-07-10 18:08:48 -07:00
Elliott Hughes
dff4ec87e7 am e16a21c6: resolved conflicts for merge of 4a59376d to stage-aosp-master
* commit 'e16a21c6b4f108813e5f5e00f30e0ff075de504c':
  Track libcore API change.
2013-07-09 15:28:51 -07:00
Elliott Hughes
e16a21c6b4 resolved conflicts for merge of 4a59376d to stage-aosp-master
Change-Id: I0e40180b46dc58781c218b8d382299dab73d49cc
2013-07-09 15:25:23 -07:00
Elliott Hughes
befd0b1bdf Track libcore API change.
Change-Id: Ib818a7f21325c5f918bf497033a90d76b25ec9e7
2013-07-09 14:46:18 -07:00
Chris Wren
525b7c020b Merge "heads up notifications, v0.1" 2013-07-09 16:42:12 +00:00
Chris Wren
157026f820 heads up notifications, v0.1
1. re-name intruder alerts to heads up notifications
2. use interrupt for the verb form, instead of intrude
3. new policy: no full screen, high priority, screen on, not locked or dreaming
4. controlled by global setting, with an observer
5. only content view for now, expandable is a todo

to turn it on:
  adb  shell settings put global heads_up_enabled 1
calendar notifications (not pop-up) work well.

Change-Id: I253418c217d0a5cf81dc2fa001f4bad90fafcce5
2013-07-09 11:12:49 -04:00
Jim Miller
668512fc45 Merge "Minor cleanup of KeyguardViewManager" 2013-07-08 21:40:49 +00:00
Jean-Baptiste Queru
3407da1afb am 7dfcae9b: am d8694667: am ae6bdf63: Merge "Add Colemak keyboard layout"
* commit '7dfcae9bae9fc16226b1a0496e947be5cedd1773':
  Add Colemak keyboard layout
2013-07-08 13:47:58 -07:00
Jean-Baptiste Queru
7dfcae9bae am d8694667: am ae6bdf63: Merge "Add Colemak keyboard layout"
* commit 'd8694667da7561301371cc2c125104076c75608b':
  Add Colemak keyboard layout
2013-07-08 13:45:44 -07:00
Jean-Baptiste Queru
d8694667da am ae6bdf63: Merge "Add Colemak keyboard layout"
* commit 'ae6bdf63f532d136d61d0b7dec9117bfa2d37773':
  Add Colemak keyboard layout
2013-07-08 13:41:32 -07:00
Christopher Eby
8c890db75a Add Colemak keyboard layout
Change-Id: I203b92e56522bc7b3014195d5d83dc1fdb3cab15
2013-07-08 13:09:18 -07:00
Satoshi Kataoka
c44f7a251a Fix an issue on hardcoded alarm settings intent
This change fixes a TODO to fix the behavior that the quick settings directly specifies a class of AOSP desk clock.
Currently the quick settings can't work with other alarm clocks and that's fixed by calling "android.intent.action.SET_ALARM" instead.

Change-Id: I028b8a320e945921c096fdc776b52441e7d07202
2013-07-08 18:14:40 +09:00
Baligh Uddin
e323299498 Import translations. DO NOT MERGE
Change-Id: Ief9384906e7c86d91998bc55d74107d9ade5e6c1
Auto-generated-cl: translation import
2013-07-03 11:52:42 -07:00
Baligh Uddin
2c975eda80 am 24a12f67: am 697184b5: Merge "Import translations. DO NOT MERGE" into jb-mr2-dev
* commit '24a12f67ba534bf158ee85cc998c2afbdfc7948a':
  Import translations. DO NOT MERGE
2013-07-02 12:36:43 -07:00
Jeff Sharkey
05373e9daf Merge "Support sorting in storage UI." 2013-07-02 03:30:51 +00:00
Jeff Sharkey
1482789374 Support sorting in storage UI.
Extract mode information into DisplayState which is now consistent
across directory traversal.  Use grid mode by default when working
with images.  Dialog to switch sort order.

Add testing UI to exercise until we have real clients.

Change-Id: Ic423584d4559732fb3d2aea9e0406b57d43f6e6d
2013-07-01 20:28:20 -07:00
Jeff Sharkey
bd54e06e21 Merge "Support multi-select in storage UI." 2013-07-02 00:02:31 +00:00
Wink Saville
0bc2fe425d am e2be0651: am f313da5b: am aff0ac4d: Merge "Do not set the network mode differently for LTE+CDMA"
* commit 'e2be065142dc22f1eea033334f6ba4cf16559e56':
  Do not set the network mode differently for LTE+CDMA
2013-07-01 17:01:23 -07:00
Jeff Sharkey
be8b12e687 Support multi-select in storage UI.
When caller has specified that multiple documents are okay, enable
multi-select action mode.  Currently only allows document selection,
not directories.  Returns multiple documents through ClipData.

Fix bug where GridView was stuck with 2 columns on tablets.

Change-Id: Id49b29a86330639b56fa116d37e7f0d874980c5b
2013-07-01 17:00:14 -07:00
Wink Saville
e2be065142 am f313da5b: am aff0ac4d: Merge "Do not set the network mode differently for LTE+CDMA"
* commit 'f313da5bfe1953fef509ba6bab7f654516a71509':
  Do not set the network mode differently for LTE+CDMA
2013-07-01 16:03:38 -07:00
Wink Saville
f313da5bfe am aff0ac4d: Merge "Do not set the network mode differently for LTE+CDMA"
* commit 'aff0ac4d202934dde7765f7418ea2ad38b0c2faa':
  Do not set the network mode differently for LTE+CDMA
2013-07-01 16:00:23 -07:00
Jeff Sharkey
54e55b740f Iterate on storage UI.
Support both grid and list view of documents.  Show breadcrumb
navigation trail in action bar.  Start supporting file and directory
creation.

Change-Id: I93a973da7b0d4387a57fe719e7bb20944adb0290
2013-07-01 15:31:44 -07:00
Naveen Kalla
97ecc9ec24 Do not set the network mode differently for LTE+CDMA
ro.telephony.default_network can be set if needed to set a different
value for LTE+CDMA. No need to hardcode preferred network mode in the source code.

Change-Id: Iae65f72a6a3bc31d500c5ecec87368a6f2a5d117
2013-07-01 11:16:38 -07:00
Baligh Uddin
453df32b1b Import translations. DO NOT MERGE
Change-Id: I3ac72382fe871e8259decec6f202119bf9519972
Auto-generated-cl: translation import
2013-07-01 07:35:00 -07:00
Jim Miller
cf182aac94 Minor cleanup of KeyguardViewManager
Removed unused code and redundant check for high-end graphics.

Change-Id: I750d3918e5448760e622a4b3d1781b375bdc66db
2013-06-28 16:55:56 -07:00
Amith Yamasani
7f50ef7dda am 3f0decd7: am 16a2268f: am e6304a9c: Merge "When a new user AID is generated, dump it to dropbox" into jb-mr2-dev
* commit '3f0decd7dff8b4c12544c24b2d19a41d4eaacd03':
  When a new user AID is generated, dump it to dropbox
2013-06-28 10:48:54 -07:00
Amith Yamasani
3f0decd7df am 16a2268f: am e6304a9c: Merge "When a new user AID is generated, dump it to dropbox" into jb-mr2-dev
* commit '16a2268f8091e1b27cb1b1343d992c7509a2506e':
  When a new user AID is generated, dump it to dropbox
2013-06-28 10:14:30 -07:00