98376 Commits

Author SHA1 Message Date
Dianne Hackborn
002a54e229 WorkSource can now track package names.
Use this to track the package name of applications
accessing GPS.

And now the app ops service can enforce that callers
must provide valid package names.

Change-Id: I842a0abe236ea85f77926d708547f0f95c24bd49
2013-01-11 17:37:04 -08:00
Craig Mautner
0bdb1e35ec Merge "Call assignLayersLocked when InputMethod is moved." 2013-01-10 17:33:28 -08:00
Craig Mautner
b5eb550fb1 Call assignLayersLocked when InputMethod is moved.
Call was removed by over-ambitious editing in CL 259410.

Fixes bug 7966824.

Change-Id: I9feb2ec27907f4e03b9424710adc2743a8b512d8
2013-01-10 17:29:30 -08:00
Wink Saville
5a98f08182 Merge "Use readUnsignedByte." 2013-01-10 16:03:03 -08:00
Svetoslav Ganov
ea307734e7 Merge "Fixing a memory leak in ViewRootImpl and a focus change callback issue." 2013-01-10 15:45:38 -08:00
Adam Powell
e886d3d33b am 79cc4a2a: am d1779207: am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev
* commit '79cc4a2ab0130acca83de5945a43adf9925beac1':
  Make action bar title a valid touch target for up when relevant
2013-01-10 15:39:00 -08:00
Scott Main
96f4f52652 am b484f8e1: am 782b0f71: am 4459827f: am 25505f95: am cdf5106a: docs: a few doc bugs
* commit 'b484f8e1a4f07e35a194ee43676da8eb4e9d50ef':
  docs: a few doc bugs
2013-01-10 15:38:27 -08:00
Stephen Hines
bb469bde8d Merge "Add parentheses for latest Clang warnings." 2013-01-10 15:23:49 -08:00
Stephen Hines
9be5f0a306 Add parentheses for latest Clang warnings.
Change-Id: I843fd3eb44e1ab0a177d7045ca97cf146fd81231
2013-01-10 15:09:02 -08:00
Scott Main
f8c8333f7d am ccb2a74f: am 2b8603c2: am 8429f43b: am 7bcea4ae: am d149242a: docs: correct the url path to badge images and updated pr-br badge
* commit 'ccb2a74f360bf09ec2c91b28c15e0003a9af440a':
  docs: correct the url path to badge images and updated pr-br badge
2013-01-10 14:51:56 -08:00
Scott Main
6f028480fa am 8a05d13e: am 5b56d432: am 9107fa5d: am 66adf0d0: am 70af3cdb: Merge "docs: resolve bugs from external tracker" into jb-mr1-dev
* commit '8a05d13ef656b0147d85e1826b70a55f6b32e1e3':
  docs: resolve bugs from external tracker
2013-01-10 14:51:43 -08:00
Scott Main
ba6e54b454 am 3ccb33d5: am 4f8a160a: am f344e3c7: am 7ed49126: am 13ef4e43: docs: update GP badges with localized badges. includes AI files for all badges in available languages
* commit '3ccb33d5e08a0f444d16be894827dcbdfd0db42f':
  docs: update GP badges with localized badges. includes AI files for all badges in available languages
2013-01-10 14:51:34 -08:00
Romain Guy
14e066df1c Merge "Clarify javadoc and parameter names Bug #7978741" 2013-01-09 20:18:35 -08:00
Romain Guy
9c5d1b17bf Clarify javadoc and parameter names
Bug #7978741

Change-Id: If713e2e58524ace008797abc142f50b83bfa3c61
2013-01-09 20:16:37 -08:00
Dianne Hackborn
91893471ba Merge "Fix issue #7966357: Super lights out mode vs. volume dialog" 2013-01-09 18:44:33 -08:00
Dianne Hackborn
53897adeb4 Merge "Maybe fix build." 2013-01-09 18:37:41 -08:00
Dianne Hackborn
54372e9402 Maybe fix build.
Change-Id: If9bf7b7e2725cb472918fbbbf0cfb5070d0c6d46
2013-01-09 18:36:16 -08:00
Dianne Hackborn
891d3fbb15 Fix issue #7966357: Super lights out mode vs. volume dialog
The volume panel now forces us out of the UI modes while it
is up.

Change-Id: I25f29af5b6518aba695b64a75977ae240b742118
2013-01-09 18:31:37 -08:00
Tim Murray
8d1127ef3f Merge "Update IP2 to use bitmap-backed allocations." 2013-01-09 18:15:15 -08:00
Fabrice Di Meglio
978ad10cab Merge "Make SystemUI RTL aware" 2013-01-09 18:12:26 -08:00
Tim Murray
f9485d0313 Update IP2 to use bitmap-backed allocations.
Change-Id: I2967fff71db40b4a8a00cd0152bcc04c43b87f80
2013-01-09 16:33:57 -08:00
Nick Kralevich
ee49a3a007 Merge "Add K api version." 2013-01-09 16:11:06 -08:00
Nick Kralevich
6b0fb36870 Merge "Revert "App home directories are now 0700 for targetSdkVersion > 17"" 2013-01-09 16:10:14 -08:00
Nick Kralevich
a985c3bb14 Add K api version.
Change-Id: I2b74e06f8bda8b23c5cc4280af4b18a5ad66a6c2
2013-01-09 16:03:14 -08:00
Nick Kralevich
1506921e8e Revert "App home directories are now 0700 for targetSdkVersion > 17"
This reverts commit 92091fa9636403728fe94cc83400495a8612c2d3.

Bug: 7966399
Bug: 7208882
2013-01-09 15:54:56 -08:00
Fabrice Di Meglio
82fca5d27d Make SystemUI RTL aware
- mirror vibrate and silent statusbar icons
- add code for updating icons when Locale is changed

See bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Ib7125d7f01ed8d1b8d63c2a9b119eb173efcf49f
2013-01-09 15:48:09 -08:00
Jason Sams
daa944a167 Merge "Add YUV allocation creation." 2013-01-09 15:32:41 -08:00
Romain Guy
33a9741c1b Merge "Cleanup 9patch mesh matching code Bug #7970966" 2013-01-09 14:39:13 -08:00
Romain Guy
5341cead27 Cleanup 9patch mesh matching code
Bug #7970966

The bug described in #7970966 should normally never happen but just in
case, change the detection code to be more robust.

Change-Id: I7040a6087590e34abe8803cb8f83f051d77f3944
2013-01-09 14:15:58 -08:00
Dianne Hackborn
82e60952f2 Merge "New "app ops" service." 2013-01-09 14:07:41 -08:00
Baligh Uddin
d10b6246d9 Merge "Import translations. DO NOT MERGE" 2013-01-09 13:55:54 -08:00
Dianne Hackborn
a06de0f29b New "app ops" service.
Initial implementation, tracking use of the vibrator, GPS,
and location reports.

Also includes an update to battery stats to also keep track of
vibrator usage (since I had to be in the vibrator code anyway
to instrument it).

The service itself is only half-done.  Currently no API to
retrieve the data (which once there will allow us to show you
which apps are currently causing the GPS to run and who has
recently accessed your location), it doesn't persist its data
like it should, and no way to tell it to reject app requests
for various operations.

But hey, it's a start!

Change-Id: I05b8d76cc4a4f7f37bc758c1701f51f9e0550e15
2013-01-09 12:47:47 -08:00
Svetoslav Ganov
149567f9d5 Fixing a memory leak in ViewRootImpl and a focus change callback issue.
1. ViewRootImpl was keeping reference to the old focused view so it can
   call back the global on focus change listener when another view gets
   focus. The stashed reference, however was not cleared which caused a
   memory leak if the last focused view was removed from the view tree.
   In general keeping additional state for the last focus in ViewRootImpl
   is not a good idea since this add complexity due to additional book
   keeping work that is required. The view tree already keeps track of
   where the focus is and it should be the only place that holds this
   data. Since focus does not change that frequently it is fine to look
   up the focus since this operation is O(m) where m is the depth of the
   view tree. This change removes the duplicate book keeping from
   ViewRootImpl and the focus is looked up as needed.

2. ViewRootImpl was calling the global focus change callbacks when focus
   is gained, lost, or transferred to another view. This was done in
   *ChildFocus methods. In the case of a child losing focus, i.e. in
   clearChildFocus, there was a check whether focus searh yields a view
   to take focus and if so it did not call back the global focus listener
   assuming the the found view will take focus (the view tree gives focus
   to the first focusable when a view looses focus). This is not a correct
   assumption since some views override methods called as a result of
   View.requestFocus that determine what the next focused view should
   be. For example, HorizontalScrollView overrides onRequestFocusInDescendants
   and changes the direction of the search. In fact focus search does not
   take into accound ViewGroup descendant focusability. Hence, the view found
   by calling the focus search from the root is not necessarily the one
   that will get focus after calling requestFocus. Actually, it is
   possible that the focus search will find a view but no view will
   take focus. Now the View class is responsible for calling the
   global focus listeners which avoids the above problem. Also this
   saves book keeping in ViewRootImpl.

bug:7962363

Change-Id: Ic95a18b364e997021f3f6bb46943559aac07d95a
2013-01-09 12:34:49 -08:00
Martijn Coenen
2e9f65f978 Merge "Make NfcAdapter states public and fix build." 2013-01-09 12:28:44 -08:00
Martijn Coenen
e55fe4f3bb Make NfcAdapter states public and fix build.
Change-Id: Idb2dd5e524cda5e3c03d4f2689266fa03be4ea13
2013-01-09 12:27:22 -08:00
Jason Noguchi
ceea88578c am 68ba8b91: am e71bb772: am f9719d11: am daf9b7d1: am 3f72bf32: Merge "Refactoring the media recorder stress test. Added test cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the
* commit '68ba8b919f8659711b85d8c5bd8a5cb013f441bc':
  Refactoring the media recorder stress test. Added test cases for: - record & playback @ 1080p - record & playback @ 720p - record & playback @ 480p - record & playback @ custom Plus extending the record duration to a full minute.
2013-01-09 11:53:55 -08:00
Jason Noguchi
9964fd37a6 am 8d73c043: am be6ff0b8: am 66480258: am ba5fd35e: am 7b4e597f: Merge "Adding camera scene mode stress test." into jb-mr1-dev
* commit '8d73c043c8c4fe5af8963bbe5c29a47a3dff2677':
  Adding camera scene mode stress test.
2013-01-09 11:53:51 -08:00
Dake Gu
96c2a83cd7 am 05d48504: am af6dd103: Merge "fix ImageView.getImageMatrix()" into jb-mr1-aah-dev
* commit '05d485044bc4607759e2b4ca5188858bceb120f8':
  fix ImageView.getImageMatrix()
2013-01-09 11:53:36 -08:00
Martijn Coenen
8a9120f04e Merge "Make NfcAdapter STATE_CHANGED intent action public." 2013-01-09 11:45:15 -08:00
Martijn Coenen
4ba5eaf7f3 Make NfcAdapter STATE_CHANGED intent action public.
Bug: 5141885
Change-Id: Ia357409a51fb45f1739bb37940fa746f94fa9056
2013-01-09 11:41:16 -08:00
Adam Powell
79cc4a2ab0 am d1779207: am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev
* commit 'd17792073fd3ab963bd5e0a7edcb312720fcea26':
  Make action bar title a valid touch target for up when relevant
2013-01-09 11:28:27 -08:00
Adam Powell
d17792073f am 0bf63a9a: am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev
* commit '0bf63a9a76ba513b5f6c603857bcd4d3e4506566':
  Make action bar title a valid touch target for up when relevant
2013-01-09 11:26:07 -08:00
Adam Powell
0bf63a9a76 am d29f2d26: Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev
* commit 'd29f2d263af9a3017799d3098ed208a49c5ecc69':
  Make action bar title a valid touch target for up when relevant
2013-01-09 11:23:37 -08:00
Adam Powell
d29f2d263a Merge "Make action bar title a valid touch target for up when relevant" into jb-mr1.1-dev 2013-01-09 11:19:22 -08:00
Wink Saville
aa621bf26f Use readUnsignedByte.
To remove any doubt about how java is doing its byte/integer arithmetic
use readUnsignedByte instead of readByte.

Change-Id: I5bdc200ed0cda51ad739804ac1d8d13c043424ec
2013-01-09 10:53:51 -08:00
Baligh Uddin
28753f57ed Import translations. DO NOT MERGE
Change-Id: Ibb356352fbe9d8e869c49f6695bdff8d6a2f190c
Auto-generated-cl: translation import
2013-01-09 10:06:52 -08:00
Marco Nelissen
b102fb8ed5 Merge "Fix media scan NPE" 2013-01-09 09:50:13 -08:00
Marco Nelissen
299942002b Fix media scan NPE
b/7966288

Change-Id: I066bc9f00bccf070332d87d6f1bf3d6054b31136
2013-01-09 09:46:54 -08:00
Romain Guy
64a0f914a1 Merge "Optimize drawHardwareAccelerated method in Editor class" 2013-01-09 09:35:38 -08:00
Przemyslaw Szczepaniak
176baa7de1 Revert "Deprecate unused and implementation-specific parts of TTS API"
This reverts commit 8a3d9f03199b93e07a5f5edc14660eab6cd233e7

Change-Id: I5a5c18f72ae2ea73c21dc27c7469c68d6b4b4c24
2013-01-09 03:36:23 -08:00