197314 Commits

Author SHA1 Message Date
Dianne Hackborn
6b33538053 am 47306086: am a681d7d9: Merge "Improve alarm manager docs." into mnc-dev
* commit '4730608646b19c3c230978da09050890b3d7e380':
  Improve alarm manager docs.
2015-07-10 01:54:17 +00:00
John Reck
ef6be305ff am 31b81b3c: am 6ed4b9df: Merge "Deep-copying sucks when all you want is a borrow" into mnc-dev
* commit '31b81b3cb94befad39d1632d449b0a4d6eedf604':
  Deep-copying sucks when all you want is a borrow
2015-07-10 01:54:12 +00:00
John Reck
19cb068505 am 31ff4513: am b7ba1220: Teach ImageView to recycle internal drawables
* commit '31ff4513d25b215f4e36ac24c313239d25998f86':
  Teach ImageView to recycle internal drawables
2015-07-10 01:54:08 +00:00
Svet Ganov
3ceb043fcc am b7cf986e: am 171fe6ac: Merge "Add an API for apps to query if a permisison is denied by policy." into mnc-dev
* commit 'b7cf986eb875e7a8b4489c30b73e43a52951b4f1':
  Add an API for apps to query if a permisison is denied by policy.
2015-07-10 01:54:04 +00:00
John Reck
f8a504fcee am 1a51a136: am 4ee9b23a: Merge "Delete dead code" into mnc-dev
* commit '1a51a136fdabe24a26b218fd1f52197093307ce5':
  Delete dead code
2015-07-10 01:54:00 +00:00
Dianne Hackborn
4730608646 am a681d7d9: Merge "Improve alarm manager docs." into mnc-dev
* commit 'a681d7d92b6938194d5670a11b79486365cbcd72':
  Improve alarm manager docs.
2015-07-10 01:43:23 +00:00
John Reck
31b81b3cb9 am 6ed4b9df: Merge "Deep-copying sucks when all you want is a borrow" into mnc-dev
* commit '6ed4b9dfd6130f4517af5a99d99c5cb125600baa':
  Deep-copying sucks when all you want is a borrow
2015-07-10 01:43:18 +00:00
John Reck
31ff4513d2 am b7ba1220: Teach ImageView to recycle internal drawables
* commit 'b7ba1220a3dc3012d2e22825eaeb0e643333f5a4':
  Teach ImageView to recycle internal drawables
2015-07-10 01:43:13 +00:00
Svet Ganov
b7cf986eb8 am 171fe6ac: Merge "Add an API for apps to query if a permisison is denied by policy." into mnc-dev
* commit '171fe6ac0aa5b0d2dd64ac1cdda25cdcb5f183f3':
  Add an API for apps to query if a permisison is denied by policy.
2015-07-10 01:43:03 +00:00
John Reck
1a51a136fd am 4ee9b23a: Merge "Delete dead code" into mnc-dev
* commit '4ee9b23a6f1856bfe7fa810b585b4ced02745d65':
  Delete dead code
2015-07-10 01:42:58 +00:00
Dianne Hackborn
a681d7d92b Merge "Improve alarm manager docs." into mnc-dev 2015-07-10 01:19:49 +00:00
Dianne Hackborn
14c5ab4cb9 Improve alarm manager docs.
Change-Id: I7547b48327a709783d908509efc7afd1a3f1a06a
2015-07-09 18:17:54 -07:00
John Reck
6ed4b9dfd6 Merge "Deep-copying sucks when all you want is a borrow" into mnc-dev 2015-07-10 01:02:40 +00:00
John Reck
bea77a0783 Deep-copying sucks when all you want is a borrow
Bug: 22378829

std::string only knows how to move & deep-copy, and we really
don't want either here since the Paint object for certain outlives
the stack scope so use a const reference instead.

Change-Id: I1c822c6ba9647953899cfe89dcc670d7265e3973
2015-07-09 17:47:50 -07:00
John Reck
b7ba1220a3 Teach ImageView to recycle internal drawables
Bug: 22289362

It's pretty common for ImageView#setBitmap to be called
repeatedly. Avoid re-creating the BitmapDrawable in this scenario
as that has high object churn of semi-expensive objects like
Paint.

Change-Id: Ib77719cd0366d02c1a42f774850bf3b9caa9c288
2015-07-09 17:40:41 -07:00
Svet Ganov
171fe6ac0a Merge "Add an API for apps to query if a permisison is denied by policy." into mnc-dev 2015-07-10 00:32:12 +00:00
John Reck
4ee9b23a6f Merge "Delete dead code" into mnc-dev 2015-07-10 00:31:09 +00:00
Adrian Roos
1ec13f1837 am 4dfeea4f: am 4d8134c1: Merge "Fix black keyguard / missing status bar" into mnc-dev
* commit '4dfeea4f2243b7824ca56fa8906e12c90ce979ab':
  Fix black keyguard / missing status bar
2015-07-10 00:29:03 +00:00
Adrian Roos
4dfeea4f22 am 4d8134c1: Merge "Fix black keyguard / missing status bar" into mnc-dev
* commit '4d8134c1b9e11c2b3a92195fb753da7b144bad1e':
  Fix black keyguard / missing status bar
2015-07-10 00:15:25 +00:00
Adrian Roos
4d8134c1b9 Merge "Fix black keyguard / missing status bar" into mnc-dev 2015-07-10 00:01:20 +00:00
Todd Kennedy
32eaa6104e am 948a3ed9: am d80cf910: Merge "Allow codepath changes for new OTA packages" into mnc-dev
* commit '948a3ed9bc289c17ada0a5eeb9dffb2314e924a5':
  Allow codepath changes for new OTA packages
2015-07-09 23:42:19 +00:00
Todd Kennedy
948a3ed9bc am d80cf910: Merge "Allow codepath changes for new OTA packages" into mnc-dev
* commit 'd80cf9109aa6b560e473f0197034085ed9062eaa':
  Allow codepath changes for new OTA packages
2015-07-09 23:26:36 +00:00
Todd Kennedy
d80cf9109a Merge "Allow codepath changes for new OTA packages" into mnc-dev 2015-07-09 23:17:40 +00:00
Adrian Roos
76d2fe4288 Fix black keyguard / missing status bar
The status bar window was stuck in the READY_TO_SHOW state
because it was not policy visible, whereas the policy
was waiting for the window to become HAS_DRAWN.

Now BarController also updates states if the window
is READY_TO_SHOW, which in turn allows the window to
become visible and HAS_DRAWN.

Bug: 22072099
Change-Id: I1836c276723ee2205d7d5759be079f02aaa23e2e
2015-07-09 16:09:48 -07:00
Dianne Hackborn
1dfeb0b2a8 am d0e005de: am 0e7d497c: Merge "Fix issue #22328792: Fix scalability issues in AssistStructure" into mnc-dev
* commit 'd0e005de8c2ed3158b430f5867243a15c215957e':
  Fix issue #22328792: Fix scalability issues in AssistStructure
2015-07-09 22:09:09 +00:00
Fyodor Kupolov
1e4be40109 am bda9c9f2: am a1790304: Do not return devices when caller has no location permission
* commit 'bda9c9f266c12fd723249887fcc5230ecb6b5fc5':
  Do not return devices when caller has no location permission
2015-07-09 22:09:05 +00:00
Dianne Hackborn
d0e005de8c am 0e7d497c: Merge "Fix issue #22328792: Fix scalability issues in AssistStructure" into mnc-dev
* commit '0e7d497c10c4f5096cf4cd32a56784fd18ab0f2c':
  Fix issue #22328792: Fix scalability issues in AssistStructure
2015-07-09 21:56:03 +00:00
Fyodor Kupolov
bda9c9f266 am a1790304: Do not return devices when caller has no location permission
* commit 'a179030483a1f3f672be41797dc6e0f077ef4748':
  Do not return devices when caller has no location permission
2015-07-09 21:56:00 +00:00
Dianne Hackborn
0e7d497c10 Merge "Fix issue #22328792: Fix scalability issues in AssistStructure" into mnc-dev 2015-07-09 21:48:37 +00:00
Fyodor Kupolov
a179030483 Do not return devices when caller has no location permission
During startLeScan, do not return devices if calling process has no location
permission/appop

Bug: 21852542
Change-Id: Idce8f4704558574e373e8144390f2a2fa1a7e84a
2015-07-09 21:38:50 +00:00
Christopher Tate
67fbc0bd15 am bf8cc192: am adebbeba: Merge "Remote extraneous debugging log message" into mnc-dev
* commit 'bf8cc1923cd9ca5d5be6b70e2428379cb264f493':
  Remote extraneous debugging log message
2015-07-09 21:37:00 +00:00
John Reck
7209deedcd Delete dead code
Bug: 22378829

Every time setText is called a BoringLayout is created.
BoringLayout internally creates a new Paint called mWorkPaint.

However, creating a Paint turns out to be somewhat substantial
amount of work, and mWorkPaint is never actually used. Deleting
this shaves off roughly 50ms and 1,000 object creations during
a fling on a listview.

Change-Id: I5d03402b9027df6ce0f3e58160752c66c69a4d2d
2015-07-09 21:25:52 +00:00
Christopher Tate
bf8cc1923c am adebbeba: Merge "Remote extraneous debugging log message" into mnc-dev
* commit 'adebbebaa7d516628b5946dd023ff8726e75d2b0':
  Remote extraneous debugging log message
2015-07-09 21:17:57 +00:00
Dianne Hackborn
782d498268 Fix issue #22328792: Fix scalability issues in AssistStructure
We can now stream the AssistStructure across processes, avoiding
IPC size limitations for large structures.  There is also a new
API that gets called on the VoiceInteractionSession if there is
a failure retrieving the assist data.

Also fix issue #22351981: Runtime restart due to ANR in system server,
getting rid of a deadlock.

And also tweak object lifecycles to try to avoid keeping around
in an app the previous AssistStructure after we request a new one.

Change-Id: Ifb136a0d31a14e56a8db6b90768d9fc65557a17f
2015-07-09 14:06:47 -07:00
Christopher Tate
adebbebaa7 Merge "Remote extraneous debugging log message" into mnc-dev 2015-07-09 21:04:32 +00:00
Jeff Brown
43dc8e5ece am 8a5252fb: am 2a67840c: Fix a bad merge.
* commit '8a5252fb46b279b713eef1f19e0a2c1f14d6f23e':
  Fix a bad merge.
2015-07-09 21:03:52 +00:00
Jeff Brown
8a5252fb46 am 2a67840c: Fix a bad merge.
* commit '2a67840c3c35a6267663e5d3ae921ee9ac614db9':
  Fix a bad merge.
2015-07-09 20:47:34 +00:00
Jeff Brown
2a67840c3c Fix a bad merge.
Change-Id: Ib722459a25c189bb800eb85d48b80bdc91a2b7db
2015-07-09 13:36:41 -07:00
Jeff Brown
8e4dde2c80 am 2ad03d0c: am c1aebfa0: Merge "Clean up USB Manager and fix ADB." into mnc-dev
* commit '2ad03d0c3275c902d6c86dcef8f4bd91183d397f':
  Clean up USB Manager and fix ADB.
2015-07-09 20:28:06 +00:00
Raph Levien
0d18477a28 am 75d6197e: am 968f9fdf: Merge "Slightly more precise RTL check in BoringLayout.isBoring()" into mnc-dev
* commit '75d6197ee827c1cb229977d8e7fe4754bbbe0c43':
  Slightly more precise RTL check in BoringLayout.isBoring()
2015-07-09 20:28:02 +00:00
Jeff Brown
2ad03d0c32 am c1aebfa0: Merge "Clean up USB Manager and fix ADB." into mnc-dev
* commit 'c1aebfa02c393471fb344c3a94ee2ae62bb78f93':
  Clean up USB Manager and fix ADB.
2015-07-09 20:10:21 +00:00
Raph Levien
75d6197ee8 am 968f9fdf: Merge "Slightly more precise RTL check in BoringLayout.isBoring()" into mnc-dev
* commit '968f9fdf8b2042b4d7b408f4b2a9db5008eaca6e':
  Slightly more precise RTL check in BoringLayout.isBoring()
2015-07-09 20:10:17 +00:00
Jeff Brown
c1aebfa02c Merge "Clean up USB Manager and fix ADB." into mnc-dev 2015-07-09 20:03:29 +00:00
Raph Levien
968f9fdf8b Merge "Slightly more precise RTL check in BoringLayout.isBoring()" into mnc-dev 2015-07-09 19:56:20 +00:00
Jeff Brown
460a146eb8 Clean up USB Manager and fix ADB.
Moved functions which parse the USB functions list into one common
place on UsbManager.

Deleted the no longer supported USB_FUNCTION_MASS_STORAGE.

Ensured that the UserManager.DISALLOW_USB_FILE_TRANSFER rule is
consistently applied during user switch and when changing the
current USB functions and make sure it only affects MTP and PTP.

Collapsed the boot completed and user switched receivers to
ensure consistent ordering of side-effects.

Validate the list of functions passed to setCurrentFunction() so
that the separation of concerns is clearer.  It was somewhat
ambiguous as to whether functions such as ADB could / should be
enabled through that interface.  Improved the docs for clarity.

Fixed a bunch of broken stuff related to the USB config
persistent property (list of default functions) that could cause
ADB and other functions to not work at all.  Added new failsafes
to ensure that we reliably get back into a happy state.

Bug: 22206076
Change-Id: I02915ddfce7193a8f67a14f0d76bab22fc575dfa
2015-07-09 12:55:56 -07:00
Jorim Jaggi
9acf475c6c am 35094376: am 3cc5c24b: Merge "Fix assist for hardware long-press" into mnc-dev
* commit '35094376726c3a0d4b6fa73ef836f733fad39ae9':
  Fix assist for hardware long-press
2015-07-09 19:46:46 +00:00
Raph Levien
a0419de2a9 Slightly more precise RTL check in BoringLayout.isBoring()
This patch refines the crude check for potential RTL characters, based
on ranges containing RTL scripts and format characters that affect
bidi. This will make it much less likely that a StaticLayout will be
chosen instead of a BoringLayout.

Bug: 22328919
Change-Id: I9a0ed9b3f3373069052de21c836b3372f175430f
2015-07-09 12:43:13 -07:00
Christopher Tate
bf0c1ac109 Remote extraneous debugging log message
Bug 22069429

Change-Id: I4e3803aff58449b2544d9d7cca27d8d2115ccdd6
2015-07-09 12:42:50 -07:00
Jorim Jaggi
3509437672 am 3cc5c24b: Merge "Fix assist for hardware long-press" into mnc-dev
* commit '3cc5c24b83edaab66c97b161e25ff0bd93b3e1b4':
  Fix assist for hardware long-press
2015-07-09 19:31:54 +00:00
Julia Reynolds
07ea25a7d1 am 68e4d688: am 279678e1: Merge "Show a default icon for permissions that lack a group." into mnc-dev
* commit '68e4d688ba4c4b4bd23a8acc8c807d2f8b446342':
  Show a default icon for permissions that lack a group.
2015-07-09 19:25:43 +00:00