44486 Commits

Author SHA1 Message Date
Baligh Uddin
da90357cf8 Merge "Import translations. DO NOT MERGE" 2013-09-17 04:04:36 +00:00
Svetoslav
06c7f39f6f am e7d34086: am be0d9317: Merge "App UI freezes when printing. API clean up." into klp-dev
* commit 'e7d3408652dd6e997a3c5abfd5abc6855aa170c0':
  App UI freezes when printing. API clean up.
2013-09-16 19:32:41 -07:00
Svetoslav
e7d3408652 am be0d9317: Merge "App UI freezes when printing. API clean up." into klp-dev
* commit 'be0d9317e27b600eee7deb8f328358cdb38115c6':
  App UI freezes when printing. API clean up.
2013-09-16 19:30:50 -07:00
Svetoslav
be0d9317e2 Merge "App UI freezes when printing. API clean up." into klp-dev 2013-09-17 02:28:34 +00:00
Dianne Hackborn
5f318189f2 am bb7a51e1: am 8a7a93e2: Merge "Work on issue #10771346: runtime restart" into klp-dev
* commit 'bb7a51e1ef28e26a8ead2c0cf3d6880081526d52':
  Work on issue #10771346: runtime restart
2013-09-16 18:50:01 -07:00
Dianne Hackborn
bb7a51e1ef am 8a7a93e2: Merge "Work on issue #10771346: runtime restart" into klp-dev
* commit '8a7a93e20d8755602938a56d4a88398baf2359e4':
  Work on issue #10771346: runtime restart
2013-09-16 18:47:19 -07:00
Dianne Hackborn
8a7a93e20d Merge "Work on issue #10771346: runtime restart" into klp-dev 2013-09-17 01:43:09 +00:00
Christopher Tate
4b8dd603cf am cf611b77: am 60fcce6c: Merge "Introduce maxSdkVersion for <uses-permission>" into klp-dev
* commit 'cf611b776ed5163008fdad87452f3047c966ec08':
  Introduce maxSdkVersion for <uses-permission>
2013-09-16 18:09:04 -07:00
Christopher Tate
cf611b776e am 60fcce6c: Merge "Introduce maxSdkVersion for <uses-permission>" into klp-dev
* commit '60fcce6cb1bbe720634ae5e3d94aeae5e4c1e53e':
  Introduce maxSdkVersion for <uses-permission>
2013-09-16 18:06:27 -07:00
Christopher Tate
60fcce6cb1 Merge "Introduce maxSdkVersion for <uses-permission>" into klp-dev 2013-09-17 01:01:47 +00:00
Svetoslav
2fbd2a7f07 App UI freezes when printing. API clean up.
1. The UI of a printing app was freezing a little when calling the print
   method since the print manager service was waiting for it to bind to the
   print spooler which generated the print job id (and the initial print
   job info really). Now the print manager service is responsible for job
   id generation and does not not wait for the print spooler to spin. Hence,
   the app UI is not blocked at all. Note that the print manager initiates
   the binding to the spooler and as soon as it completes the spooler shows
   the print UI which is hosted in its process. It is not possible to show
   the print UI before the system is bound to the spooler since during this
   binding the system passes a callback to the spooler so the latter can
   talk to the system.

2. Changed the print job id to be an opaque class allowing us to vary the
   way we generate print job ids in the future.

3. The queued print job state was hidden but the print job returned by the
   print method of the print manager is in that state. Now now hidden.

4. We were incorrecly removing print job infos if they are completed or
   cancelled. Doing that is problematic since the print job returned by
   the print method allows the app to query for the job info after the
   job has been say completed. Hence, an app can initiate printing and
   get a print job whose state is "created" and hold onto it until after
   the job is completed, now if the app asks for the print job info it
   will get an info in "created" state even though the job is "completed"
   since the spooler was not retaining the completed jobs. Now the spooler
   removes the PDF files for the completed and cancelled print jobs but
   keeps around the infos (also persisting them to disc) so it can answer
   questions about them. On first boot or switch to a user we purge the
   persisted print jobs in completed/cancelled state since they
   are obsolete - no app can have a handle to them.

5. Removed the print method that takes a file since we have a public
   PrintDocumentAdapter implementation for printing files. Once can
   instantiate a PrintFileDocumentAdapter and pass it to the print
   method. This class also allows overriding of the finish method to
   know when the data is spooled and deleted the file if desired, etc.

6. Replaced the wrong code to slice a large list of parcelables to
   use ParceledListSlice class.

bug:10748093

Change-Id: I1ebeeb47576e88fce550851cdd3e401fcede6e2b
2013-09-16 17:55:14 -07:00
Dianne Hackborn
50ef0b62f0 Work on issue #10771346: runtime restart
Haven't found the underlying cause, but this will give us more
information when we get into the bad state.

Change-Id: I9aebd3a025a7c0d931f43098461b64ee3c220746
2013-09-16 17:40:27 -07:00
Christopher Tate
fb0676a902 Introduce maxSdkVersion for <uses-permission>
This way an application can automatically sunset its permission requests
when running on later versions of the OS where those permissions are no
longer relevant, but may be alarming to the user.  A canonical example
is WRITE_EXTERNAL_STORAGE, which as of KLP becomes unnecessary for an app
to use the external storage volume solely for its own large-data needs,
without the need for actual file-system sharing among multiple apps.

Bug 9761041

Change-Id: I60130af3a108fe4a750c356038a1c8cb897e9c8b
2013-09-16 17:03:02 -07:00
John Spurlock
9dfcf1f311 am 74d21364: am c8d19b89: Merge "Update transient navigation confirmation wording & behavior" into klp-dev
* commit '74d2136477bdea626edbfa2e36b1a0ea7c777b40':
  Update transient navigation confirmation wording & behavior
2013-09-16 16:11:09 -07:00
John Spurlock
74d2136477 am c8d19b89: Merge "Update transient navigation confirmation wording & behavior" into klp-dev
* commit 'c8d19b894ebe659d9508a9a4763388d8573c6d76':
  Update transient navigation confirmation wording & behavior
2013-09-16 16:08:09 -07:00
John Spurlock
c8d19b894e Merge "Update transient navigation confirmation wording & behavior" into klp-dev 2013-09-16 23:03:25 +00:00
Igor Murashkin
a250b071da am 3877a865: am 1e4e3825: Merge "camera2: Add key enumeration functionality to CameraMetadata" into klp-dev
* commit '3877a8650781c2b63d9cd195bc9a022dc7b365c9':
  camera2: Add key enumeration functionality to CameraMetadata
2013-09-16 15:54:12 -07:00
Igor Murashkin
3877a86507 am 1e4e3825: Merge "camera2: Add key enumeration functionality to CameraMetadata" into klp-dev
* commit '1e4e38252f8eb44fe382e371e29857834cf9fc15':
  camera2: Add key enumeration functionality to CameraMetadata
2013-09-16 15:51:16 -07:00
Igor Murashkin
1e4e38252f Merge "camera2: Add key enumeration functionality to CameraMetadata" into klp-dev 2013-09-16 22:47:07 +00:00
Igor Murashkin
77cd5ace33 am ad2b04a6: am 901be0ae: Merge "camera2: Update Face class." into klp-dev
* commit 'ad2b04a6f167f8574c7e0efbf8c30b15fa966b5b':
  camera2: Update Face class.
2013-09-16 15:43:53 -07:00
Igor Murashkin
ad2b04a6f1 am 901be0ae: Merge "camera2: Update Face class." into klp-dev
* commit '901be0ae33faf8ece17170b0d9d4c4429121b6ab':
  camera2: Update Face class.
2013-09-16 15:39:51 -07:00
Igor Murashkin
901be0ae33 Merge "camera2: Update Face class." into klp-dev 2013-09-16 22:32:11 +00:00
Dianne Hackborn
68ba583b79 am 366894b5: am 0a6a80f4: Fix build.
* commit '366894b544e723b11f591a3071599066d0ada2da':
  Fix build.
2013-09-16 15:29:46 -07:00
Dianne Hackborn
366894b544 am 0a6a80f4: Fix build.
* commit '0a6a80f43de1b64b452aff2cbb6bdbfc9915c2a9':
  Fix build.
2013-09-16 15:26:16 -07:00
Dianne Hackborn
0a6a80f43d Fix build.
Change-Id: I2b2168ff3b2826a60353fd137a2fa255b1ace4bb
2013-09-16 15:20:27 -07:00
Dianne Hackborn
df2dae01b0 am 40489be9: am 61158244: Merge "Implement issue #10691359: Kill long-running processes" into klp-dev
* commit '40489be90b7c145da75034f793932500f0e5d380':
  Implement issue #10691359: Kill long-running processes
2013-09-16 14:37:30 -07:00
Dianne Hackborn
40489be90b am 61158244: Merge "Implement issue #10691359: Kill long-running processes" into klp-dev
* commit '61158244b42df547ecf8ca145d539c814b154a4a':
  Implement issue #10691359: Kill long-running processes
2013-09-16 14:34:55 -07:00
Dianne Hackborn
61158244b4 Merge "Implement issue #10691359: Kill long-running processes" into klp-dev 2013-09-16 21:33:04 +00:00
Xia Wang
b2ca5bf607 am bac2fcac: am 326f4505: Merge "Update the Connectivity Manager test suit to use InstrumentationTestCase." into klp-dev
* commit 'bac2fcacbef1366327aa3450d6be942688fb6a68':
  Update the Connectivity Manager test suit to use InstrumentationTestCase.
2013-09-16 14:19:18 -07:00
Xia Wang
bac2fcacbe am 326f4505: Merge "Update the Connectivity Manager test suit to use InstrumentationTestCase." into klp-dev
* commit '326f4505e04b24f384e84da7efcefab256777a27':
  Update the Connectivity Manager test suit to use InstrumentationTestCase.
2013-09-16 14:15:55 -07:00
John Spurlock
d67ec25a9c Update transient navigation confirmation wording & behavior
1. Decrease transient navigation confirmation annoyance.

  - Only use the power-key as a signal if we detect a screen-off
    screen-on within a short threshold value.

 - Auto-confirm if user performs the indicated gesture.

 - Remember confirmation across reboots.

2. Update wording to new final wording.  Remove now obsolete
short + long versions.  Decrease message font temporarily
until the new platform toast redesign is finalized.

3. Remove pre-ship ImmersiveModeTesting debug helper.

Bug:10602929
Change-Id: I0bff826391058c7b282eeb61817b93b79de84893
2013-09-16 17:12:17 -04:00
Xia Wang
326f4505e0 Merge "Update the Connectivity Manager test suit to use InstrumentationTestCase." into klp-dev 2013-09-16 21:11:31 +00:00
Chet Haase
ea3b4506f3 am 8b575ec3: am c05c3628: Merge "Ensure that transitions animating alpha end on a reasonable value" into klp-dev
* commit '8b575ec3a733d5e08b0fc9ce995d2aa2148f47a6':
  Ensure that transitions animating alpha end on a reasonable value
2013-09-16 14:08:26 -07:00
Igor Murashkin
8f64e3cd42 am 14297141: am 5cf86aa7: Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into klp-dev
* commit '142971418c8e9ca539dae40f3c2532956f258e6b':
  media: Update ImageReader to remove MaxImagesAcquiredException
2013-09-16 14:08:23 -07:00
Xia Wang
19306af73a Update the Connectivity Manager test suit to use InstrumentationTestCase.
- Remove ConnectivityManagerTestActivity as the test activity could be destroyed
  after a system config change, which cause test failure in the wifi stress test.
- Update all tests to use InstrumentationTestCase, which instruments the test package.

Bug : 10426067

Change-Id: Ibf6f1f7cffd7a7eabc4cc63c7e033b59274b724e
2013-09-16 14:07:25 -07:00
Dianne Hackborn
35f72be50b Implement issue #10691359: Kill long-running processes
We now have the activity manager kill long-running processes
during idle maintanence.

This involved adding some more information to the activity manager
about the current memory state, so that it could know if it really
should bother killing anything.  While doing this, I also improved
how we determine when memory is getting low by better ignoring cases
where processes are going away for other reasons (such as now idle
maintenance).  We now won't raise our memory state if either a process
is going away because we wanted it gone for another reason or the
total number of processes is not decreasing.

The idle maintanence killing also uses new per-process information
about whether the process has ever gone into the cached state since
the last idle maintenance, and the initial pss and current pss size
over its run time.

Change-Id: Iceaa7ffb2ad2015c33a64133a72a272b56dbad53
2013-09-16 14:05:34 -07:00
Chet Haase
8b575ec3a7 am c05c3628: Merge "Ensure that transitions animating alpha end on a reasonable value" into klp-dev
* commit 'c05c36285dbc715e851671cb4495d376743c4399':
  Ensure that transitions animating alpha end on a reasonable value
2013-09-16 14:05:18 -07:00
Igor Murashkin
142971418c am 5cf86aa7: Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into klp-dev
* commit '5cf86aa7564eff8443158644e866a420d865b1bc':
  media: Update ImageReader to remove MaxImagesAcquiredException
2013-09-16 14:05:14 -07:00
Chet Haase
c05c36285d Merge "Ensure that transitions animating alpha end on a reasonable value" into klp-dev 2013-09-16 21:03:28 +00:00
Igor Murashkin
5cf86aa756 Merge "media: Update ImageReader to remove MaxImagesAcquiredException" into klp-dev 2013-09-16 21:02:32 +00:00
Chet Haase
23c61f6bc5 Ensure that transitions animating alpha end on a reasonable value
The Fade transition sets an initial alpha value of 0 when items are
appearing. This makes items invisible to start with, and then they
eventually fade in as part of the transition when the transition's
animation runs.

But if that animation/transition gets interrupted, or not started, then
the alpha value would not be restored, and the value would stay 0,
making the items invisible indefinitely. This is what was happening in
the action bar of the People app when performing a search.

The fix is to handle Transition and animation events to restore the alpha
to its true value when the transition completes, whether that
transition is canceled or not.

Issue #10726905 ActionBar weirdness in People app

Change-Id: Idb65fd8d471d2ac0a1ddc243fee00ae99f7e72d8
2013-09-16 13:58:23 -07:00
Igor Murashkin
5454e3ddcc am 720b1fce: am 26cb5fd5: Merge "media: Update ImageReader APIs" into klp-dev
* commit '720b1fcecd6c21bf4fbe6d3822e52c8a092b93c4':
  media: Update ImageReader APIs
2013-09-16 13:24:58 -07:00
Igor Murashkin
720b1fcecd am 26cb5fd5: Merge "media: Update ImageReader APIs" into klp-dev
* commit '26cb5fd5fffb2204ec12994cacb3b32639eb4d59':
  media: Update ImageReader APIs
2013-09-16 13:22:06 -07:00
Igor Murashkin
26cb5fd5ff Merge "media: Update ImageReader APIs" into klp-dev 2013-09-16 20:19:15 +00:00
Daniel Sandler
e0339ab5a3 am c1c5e117: am 311daf20: Merge "New platlogo for K." into klp-dev
* commit 'c1c5e1177d0ad675c151a7081bd42eef9b0872d2':
  New platlogo for K.
2013-09-16 13:14:00 -07:00
Daniel Sandler
c1c5e1177d am 311daf20: Merge "New platlogo for K." into klp-dev
* commit '311daf205348849c97822d33d6a4f7b75bfec6d8':
  New platlogo for K.
2013-09-16 13:11:11 -07:00
Daniel Sandler
311daf2053 Merge "New platlogo for K." into klp-dev 2013-09-16 20:09:05 +00:00
Daniel Sandler
80c3c4e960 New platlogo for K.
Bug: 10605145
Change-Id: I23f285ec24118982b10f5d801b75925b9dc81c64
2013-09-16 14:40:03 -04:00
Zhijun He
cc6b5bf214 am e4688207: am 78a1de65: Merge "Camera2: Add MAX_CAMERAS_IN_USE error case handling" into klp-dev
* commit 'e468820757743b95fb5622ae3010fbccb9338a0c':
  Camera2: Add MAX_CAMERAS_IN_USE error case handling
2013-09-16 11:30:34 -07:00
Matthew Williams
86f4b37d19 Merge "Refactor SyncManager rename authority->target" 2013-09-16 18:29:36 +00:00