197740 Commits

Author SHA1 Message Date
Wale Ogunwale
bde85f741c Merge "Fixed issue with background user window consuming touch events" into mnc-dev 2015-07-20 18:46:00 +00:00
Ricardo Garcia
2dcfc7a997 Merge "Fix for MidiManager bug" into mnc-dev 2015-07-20 18:03:45 +00:00
Billy Lau
072e04a7f1 Merge "Bug: 22598083 Document how apps can detect WRITE_SETTINGS or SYSTEM_ALERT_WINDOW through AppOps" into mnc-dev 2015-07-20 17:57:30 +00:00
Jeff Sharkey
71780e7984 Merge "Better logging of MediaPlayer failure reason." into mnc-dev 2015-07-20 17:37:09 +00:00
Billy Lau
24b9c8314b Bug: 22598083 Document how apps can detect WRITE_SETTINGS or SYSTEM_ALERT_WINDOW
through AppOps

Expose OP_STR strings that describes the ops for WRITE_SETTINGS and
SYSTEM_ALERT_WINDOW permissions such that apps can query AppOpsManager
whether this capability is turned on or off by the user.

Change-Id: I0e7a6f39e02389290232e450624b40ffb255abfb
2015-07-20 18:36:39 +01:00
Jean-Michel Trivi
698250fae7 Merge "Media button intent should be send to current user only." into mnc-dev 2015-07-20 17:25:32 +00:00
Roozbeh Pournader
007262e0ae Fix default value of stereoReset() in the documentation.
The default has been 'true' for eternity in the code. But the
documentation was mistakenly saying it was 'false'. Going with the
code, since there are people out there relying on the code continuing
to work the same way.

Bug: 22557371
Change-Id: I6f4e7b2052d0cc30d41e8ccf2b9a5c6111fa0ab7
2015-07-20 10:08:58 -07:00
Christopher Tate
6afdad7e88 Merge "Don't fall back to domain verification state when looking up app linkage state" into mnc-dev 2015-07-20 17:05:32 +00:00
Jeff Sharkey
4fa85b7cad Better logging of MediaPlayer failure reason.
Otherwise exception details are dropped on the floor, making it
hard to debug.

Bug: 22525550
Change-Id: I6ab9eb8461a23b9d9b8a0ea6dd1ae8ee2495dd01
2015-07-20 09:38:02 -07:00
Jason Monk
dd5bdc6a78 Fix hotspot brokenness
- Only get state from broadcast to not get out of sync with Settings
 - Actually set the state when there isn't a boolean in the refresh
   object
 - Remove unused things

Bug: 22573156
Change-Id: Ibfb4966c99ba85f83701695c38275ba217854b22
2015-07-20 12:23:30 -04:00
Jason Monk
93fb68fdce Fix network name not showing in QS sometimes
Only set the network name from service state if we are sure we
a value for it.

Bug: 22212693
Change-Id: I0811e8fe4682180d9187c42362bc40ab19922f2c
2015-07-20 11:43:56 -04:00
Erik Kline
e7d0179df5 Change to connectivitycheck.gstatic.com
Bug: 18869302
Bug: 22368233
Change-Id: Iaecb59e4ef13a0fa82a0a4a920689804d24044c8
2015-07-20 23:40:01 +09:00
Jason Monk
1c040dbee6 Fix crash in NetworkControllerImpl
Happened due to multiple entry points of configuration changes
running on different threads.

 - Remove the unneeded listening for configuration broadcasts
 - Make the handling for configuration changes happen on the right
   thread
 - Happen to fix the tests :)

Bug: 22560859
Change-Id: I194b4fa233f0a8a33c4ac3252ddec70a93822337
2015-07-20 09:45:54 -04:00
Terry Heo
5a3ef42422 TIF: Use copied track list for onTracksChanged() callback
In notifyTracksChanged(), the calling onTracksChanged() could be delayed.
To prevent race condition on tracks, we should use the copy of tracks.

Bug: 22436933
Change-Id: I0c595df9d06d5f7bda4a9f8c21a661f7aa7db71f
2015-07-20 01:29:44 +00:00
Wale Ogunwale
4eef94f2b8 Fixed issue with background user window consuming touch events
When adding a window for a background user, it is possible for
the window to consume touch events because it is in the
COMMIT_DRAW_PENDING state. We allow the background user window
to transition READY_TO_SHOW state, but hide the window.

Change is based on https://android-review.googlesource.com/#/c/158772
and also reverts commits 6ee618509a392adb183c2e70390cd9e2031ff0d8
and 588932a53e63c0a7ee281dea22559c129b40eb99

Bug: 22531717
Bug: 22207948
Bug: 18510914
https://code.google.com/p/android-developer-preview/issues/detail?id=2667

Change-Id: I68d2e532c2b1def0d7b22c9b60e48110cf3cd686
2015-07-17 22:29:54 -07:00
Jorim Jaggi
29cf9aea54 Adjust fingerprint icon placement to spec
Bug: 22502068
Change-Id: I12952cb1ea43f365d5a63ec2636a5d60a981b93f
2015-07-18 00:53:12 +00:00
Chris Craik
0bb5c26bce Merge "Fix AssetAtlas usage in BitmapShaders" into mnc-dev 2015-07-17 23:59:17 +00:00
Dirk Dougherty
0d0c4b6804 Doc change: add note about not exiting on onPause().
Change-Id: Iaa5199133b34431b84622bc13579d41131a14390
2015-07-17 16:48:12 -07:00
Keisuke Kuroyanagi
fd3eff27bd Fix: Wrong suggestion popup position in extract mode.
Replace text was handled by the original EditText; thus, we
couldn't correctly decide popup window position.
Also, changing selection range replaces entire text of the
extracted EditText. As a result, text cannot be replaced
with the selected item when there is a selection.

This change is a workaround for this issue. This quits
offering "Replace" for selection in extract mode.

Bug: 22038802
Change-Id: I052b027cfd10eeb289f77f4c6b228acf58fea636
2015-07-17 16:36:57 -07:00
Adrian Roos
57ee4b87fe Merge "Fix image wallpaper size" into mnc-dev 2015-07-17 23:29:58 +00:00
Jeff Sharkey
c9eb398a1b Merge "Clear identity when killing media provider." into mnc-dev 2015-07-17 23:29:54 +00:00
Chet Haase
d3f327be2d Merge "Localize SimpleMonthView" into mnc-dev 2015-07-17 23:28:15 +00:00
Jeff Sharkey
b3cf953345 Clear identity when killing media provider.
Otherwise various shell "sm" commands fail because they don't hold
the right permissions.

Bug: 22564405
Change-Id: I88081e8a9b27ee43904d3ea6f745aba3af4e2150
2015-07-17 16:21:43 -07:00
Jeff Sharkey
259453024c Merge "Persist version data on a per-volume basis." into mnc-dev 2015-07-17 23:20:37 +00:00
Jeff Sharkey
f80b52b08a Persist version data on a per-volume basis.
Now that we support multiple adopted external storage devices, we
need to keep track of version data for each volume.  This means we
now correctly handle certificate upgrade edge cases, permission
regranting, and clearing of code caches on a per-volume basis.

Bug: 22298966
Change-Id: Ifb9940c197f6c058a3ecca728257f853ce0fd7f4
2015-07-17 16:19:00 -07:00
xinhe
822f6141d4 Merge "Add API to turn OFF "best network selection" feature" into mnc-dev 2015-07-17 23:13:07 +00:00
Chris Craik
6ad690e16f Fix AssetAtlas usage in BitmapShaders
bug:22521999

Change-Id: I60859748ceee19ebc89ec98845e550ea26e36ecd
2015-07-17 15:53:24 -07:00
Svetoslav Ganov
fbc6f2cb6c Merge "Revert "Do not auto grant GET_ACCOUNTS as it is temporarily normal"" into mnc-dev 2015-07-17 22:39:34 +00:00
Christopher Tate
d85a664202 Don't fall back to domain verification state when looking up app linkage state
This is in support of the always/never/ask UI tweaks in Settings: any
"assume always" fallback at the verification layer should not be
conflated with the user-facing semantic toggle.  This was causing the
UI to report apps as being in the 'always open their links' state
inappropriately.

Bug 22532193

Change-Id: Iaa4bc3a2d5db814e1b0d96bc1c4ecfaafb1e3105
2015-07-17 15:39:08 -07:00
Dianne Hackborn
5c269121d8 Merge "Work on issue #22556778: Starting under voice control not allowed" into mnc-dev 2015-07-17 22:03:46 +00:00
Chet Haase
1ea4715cec Localize SimpleMonthView
The days of the month were not being localized, resulting in
English numbers for non-English languages. Now we format the numbers
with the current locale.

Issue #22540629  [MRA14D][Arab][Token] numbers displayed in english

Change-Id: I2b17d55ba2d0aa47b5a28c8846c6cf9723ababb1
2015-07-17 14:26:17 -07:00
Svet Ganov
5ff4383b46 Merge "Grant default permissions to default apps despite user choices." into mnc-dev 2015-07-17 20:58:13 +00:00
Svet Ganov
4bb5187e63 Grant default permissions to default apps despite user choices.
This implements the policy of granting default permissions to default
apps upon a selection despite past user permission choices. The act of
picking the app as the default one means the user expects it to work in
this capacity as SMS app, Phone app, Browser app.

bug:22062549

Change-Id: I5e427f2b939e85bb8bbfd311cc271b96857a7ce6
2015-07-17 13:43:34 -07:00
Svetoslav Ganov
54a0cf1b95 Revert "Do not auto grant GET_ACCOUNTS as it is temporarily normal"
This reverts commit 33852d8cd21434b4106b8f2c504752ef34abb2da.

Change-Id: I29a212876c93ae0288967ffcff223abafad78827
2015-07-17 20:34:18 +00:00
Svet Ganov
4a1421f3c5 Merge "Do not auto grant GET_ACCOUNTS as it is temporarily normal" into mnc-dev 2015-07-17 20:27:36 +00:00
Svet Ganov
33852d8cd2 Do not auto grant GET_ACCOUNTS as it is temporarily normal
bug:22550851

Change-Id: Iea5dd8fde07074220167a937b32208b1c9488d9d
2015-07-17 13:21:36 -07:00
ztenghui
094c82ada3 Merge "Scaling (Animated)VectorDrawable inside ImageView" into mnc-dev 2015-07-17 20:21:28 +00:00
Adrian Roos
30a7dfa329 Fix image wallpaper size
Fixes a bug where the image wallpaper size
would not correctly update. Suspected cause
is checking the to-be-requested size against
the current surface size instead of the
requested surface size.

Also removes an unused field.

Bug: 21148936
Change-Id: Ief4585bd5aed5922337709d7ae0ca0bf948649d0
2015-07-17 12:30:37 -07:00
Roozbeh Pournader
8d2e0f7898 Bidi-wrap the results of format[Short]FileSize().
Previously, users of the results of formatFileSize() and
formatShortFileSize() needed to unicodeWrap the results themselves
using BidiFormatter, which resulted in several bugs and
inconsistencies across the platform when they didn't, especially in
Hebrew and Urdu locales:

Hebrew and Urdu use Latin abbreviations like 'MB' for file sizes
which cause undesired reorderings (or incorrect detection of the
string direction when the formatted file size starts the string).

With this patch, the results are now bidi-wrapped before being
returned if the locale of the context passed in to the formatter is a
right-to-left locale.

Bug: 22237132
Bug: 22273176
Change-Id: If076636d15828fc810feef6f0fa8806ef52aed5d
2015-07-17 12:02:22 -07:00
Julia Reynolds
3368e69e9d Merge "Remove focusablilty of the status bar." into mnc-dev 2015-07-17 18:49:22 +00:00
Wale Ogunwale
af81434023 Merge "Fixed bad merge conflict resolution" into mnc-dev 2015-07-17 18:44:58 +00:00
Mady Mellor
9c98b859fd Merge "Update stylus gesture to access quick settings to use the new buttons" into mnc-dev 2015-07-17 18:30:53 +00:00
Dianne Hackborn
f38c4ee903 Work on issue #22556778: Starting under voice control not allowed
The ResolverActivity is voice capable.  In fact, it is capable
of EVERYTHING.

Change-Id: I37c4476d546f61fee3540b747aff77e88b702d48
2015-07-17 11:21:26 -07:00
Tingting Wang
ad359f2e70 Merge "Revert "Don't display Custom for PHONE_TYPE=CUSTOM part 1."" into mnc-dev 2015-07-17 18:19:56 +00:00
ztenghui
35289f12d6 Scaling (Animated)VectorDrawable inside ImageView
Before, the VectorDrawable is behaving like BitmapDrawable inside a ImageView,
and it can be blurry due to scaling.
Now apply the scaling information to the cached bitmap, then the size of bitmap
will match the ImageView's screen size. Therefore, no blurry any more.

b/18185626

Change-Id: I979cef3b5178a9bd37ee6cc776df3361ca47c803
2015-07-17 11:16:41 -07:00
Jae Seo
d2a8d71ce0 MediaSession: Do not lock on AudioManager.getStreamVolume
Locking on AudioManager.getStreamVolume method causes watchdog killing
system process for it makes a native call to get devices for stream,
which takes time. This change removes such locking.

Bug: 22404242
Change-Id: I23de3efe33642341205d65f58bc5b74542f1f506
2015-07-17 10:41:55 -07:00
Svetoslav Ganov
2a500e3216 Merge "Revert "Temporary lower GET_ACCOUNTS protection level"" into mnc-dev 2015-07-17 17:36:57 +00:00
Svetoslav Ganov
2c20277dd5 Revert "Temporary lower GET_ACCOUNTS protection level"
This reverts commit 6e20ac343c22ab27e5ac7471bc1219df6bf11282.

Change-Id: I96b21bad9406abffa95c90abde509dc8dcf3eff5
2015-07-17 17:35:05 +00:00
Svet Ganov
ecb887925a Merge "Temporary lower GET_ACCOUNTS protection level" into mnc-dev 2015-07-17 17:34:17 +00:00
Svet Ganov
6e20ac343c Temporary lower GET_ACCOUNTS protection level
bug:22550851

Change-Id: If43f10639220f9a69d304b08def6d869658c2960
2015-07-17 10:24:41 -07:00