155811 Commits

Author SHA1 Message Date
Alan Viverette
13e13ddd4e Format ListPreference summary with empty string if entry is null
Adding serif-monospace and sans-serif-monospace font families bumped
out the previous monospace, which left the summary as %s. Returning
an unformatted summary is never correct, and we should simply return
a summary populated with an empty string.

BUG: 17666124
Change-Id: Ic22dc5dc87d9ba3ad6f6b92ee059f5c98cbf103a
2014-10-21 17:05:07 -07:00
Wale Ogunwale
be23ff4949 Fix issue #17674789: Recents icon resets if persist mode is 'persistNever'
Changed TaskPersister worker thread to not delete task information on disk
for tasks that are in recents but not persistable.

Also, changed logic that writes tasks information (excluding thunmbnail)
to disk to not write information for tasks that are not persistable.

Bug: 17674789
Change-Id: Iff7c5d24677f8a75157bb6be504fc2d9d6bcc098
2014-10-21 16:47:58 -07:00
Santos Cordon
40f1589544 am 028217eb: Merge "Add hidden method to access a connection\'s service." into lmp-dev
* commit '028217eb6789e82c96ef5ff5fe0a5a9e0c740d97':
  Add hidden method to access a connection's service.
2014-10-21 23:29:41 +00:00
Jinsuk Kim
0c74939024 Merge "CEC: Add missing protections for some HdmiControlService API - DO NOT MERGE" into lmp-dev 2014-10-21 23:25:58 +00:00
Santos Cordon
028217eb67 Merge "Add hidden method to access a connection's service." into lmp-dev 2014-10-21 23:22:02 +00:00
Paul Jensen
1de55d3cc8 Show ProgressDialog when waiting for radio to turn on when provisioning.
Turning on the cellular radio when user selects the provisioning notification
can take 30-60s so a UI is needed to keep the user informed that the radio is
coming up. This is only for provisioning APN support (only AT&T tablets now).

bug:15990642
Change-Id: Ibea894ee934bae2045c0462ae79bfa39d0ef3f05
2014-10-21 16:06:35 -07:00
Bryce Lee
584a445179 [Theater Mode] framework implementation through global setting
Bug: 17684570
Change-Id: I64a9c9c0620049cdfcca0150648fa201281f7178
2014-10-21 15:55:55 -07:00
Filip Gruszczynski
baecc0b2d1 Merge "Disable activity's translucency until it starts being swiped away." into lmp-sprout-dev 2014-10-21 22:14:40 +00:00
Guang Zhu
55bc7dc428 am ccbeb61a: Block monkey from creating user profiles
* commit 'ccbeb61ac21527839deb115199cbe98fa2b73c05':
  Block monkey from creating user profiles
2014-10-21 22:12:38 +00:00
Filip Gruszczynski
3f8dd14451 Disable activity's translucency until it starts being swiped away.
Change-Id: Ia5dceac7bd9ff57920a43736f9db6a33175e01ac
2014-10-21 15:12:00 -07:00
Jinsuk Kim
5c0f472d82 CEC: Add missing protections for some HdmiControlService API - DO NOT MERGE
A few methods are found to be missing protection with system permission.
Add enforceAccessPermission() like other methods.

Bug: 17408780

Change-Id: I58a336b5cc9df2d195bdfe7b928898dde5ff169f
(cherry picked from commit b22d9ee0a364b10d488dd6a2e8ba69d5ca7f6258)
2014-10-21 21:57:34 +00:00
Svetoslav
7e9c21547a Grant the shell user a permission to let apps host widgets.
An app can host widgets only if it has a special signature premission
or the user allowed this app to be able to bind to widgets. This change
grants the permission to whitelist an app to bind to app widgets to the
shell user. Now a test can have a host that will have some widgets. Note
that this is different from whitelisting corp widgets.

bug:17993121

Change-Id: Ic6b866cb2a822254e94a130b876ee5db66ed4fbf
2014-10-21 14:52:31 -07:00
Svetoslav
3a5c721072 APIs for an accessibility service to put interaction tracking overlays.
An accessibility service may register to observe the interactive windows
on the primary display. These windows are the one that has input focus and
ones a sighted user can touch. It is sometimes beneficial for an
accessibility service to overlay a window to intercept user interaction
and based on that introspect and perform an action on the windows that
are on the screen. This is problematic as overlaying a full screen window
that is touchable prevents the accessibility service to introspect the
content under this window.

This change adds a special type of window that only an accessibility service
can place which does not affect what an accessibility service can "see" on
the screen. Hence, even putting such a window full screen the service will
be able to interact with the other interactive windows it covers.

Change-Id: I053ccc3a5c6360a98dc40bdb172b54dab35d8b31
2014-10-21 14:45:53 -07:00
Adrian Roos
c19586a805 am 7b4a38b1: Delay discovery of system trust agents
* commit '7b4a38b197ce43cb286d80fc6c4e9713b2807f13':
  Delay discovery of system trust agents
2014-10-21 21:43:05 +00:00
Adam Powell
054e8be5e0 Merge "Intent chooser callback" into lmp-mr1-dev 2014-10-21 21:41:19 +00:00
Guang Zhu
ccbeb61ac2 Block monkey from creating user profiles
Bug: 17721767
Change-Id: Ibf686d6aa5da29411ee23f8ce6826ed93c1fa970
2014-10-21 14:36:13 -07:00
Andrew Lee
74af670019 Merge "Add video calling setting to TelephonyManager." into lmp-mr1-dev 2014-10-21 21:08:46 +00:00
John Reck
bf463af2a5 Merge "Surface:lockHardwareCanvas" into lmp-mr1-dev 2014-10-21 20:59:53 +00:00
Andrew Lee
4a3084a46d Add video calling setting to TelephonyManager.
We want to add a user setting to enable/disable video calling. This
is a telephony-level setting which the user sets using Telephony's
Call Settings, and applies universally to video calls.

But this setting needs to be accessible in places such as Dialer,
so these changes are to support storing the setting in
TelephonyManager (to be implemented in PhoneInterfaceManager) and
providing access to the setting for applications like Dialer
through TelephonyManager.

+ Add function definitions to ITelephony.
+ Add function wrapper implementations in TelephonyManager.

Bug: 16014284
Change-Id: I1dce8bf5ae4f0ee115698ce9627ba8fc424dd855
2014-10-21 13:49:42 -07:00
John Reck
bb2d0cc7e1 Surface:lockHardwareCanvas
Bug: 17440886

Change-Id: I1f2d98c63ec1a2814c2258cf7e0096139263770a
2014-10-21 13:23:56 -07:00
Ricardo Cervera
41848002af docs: Removing extra semicolons in Wear notif examples.
Bug: 17053734

Change-Id: If11b711e2797eeb2fc392e0658d644c585e4bc54
2014-10-21 13:15:39 -07:00
Andrew Lee
017c6f2daa Merge "Fire onConferenceChanged after reseting conference." into lmp-mr1-dev 2014-10-21 20:02:19 +00:00
Wale Ogunwale
393b1c1e88 Fix issue #17789629: PopupWindow overlaps with navigation bar.
The Lollipop release introduced a feature that allowed
apps to extend under the navigation bar. This also means
any popup window that is anchored to the bottom of its
parent window will overlap with the navigation bar if the
parent window is extending underneath the navigation bar.

This change introduces a new window flag
(FLAG_LAYOUT_ATTACHED_IN_DECOR) that allows the app to
specify if the popup window should be attached to the decor
frame of the parent window thereby avoiding an overlap
with the screen decorations.

By default the flag is set on SDK version LOLLIPOP_MR1 or
greater and cleared on lesser SDK versions.

Also, replaced flags FLAG_NEEDS_MENU_KEY and
PRIVATE_FLAG_NEEDS_MENU_KEY_SET with needsMenuKey state
variable to make room for the new
FLAG_LAYOUT_ATTACHED_IN_DECOR flag.

Bug: 17789629
Change-Id: I2150e0c6ac688c966c0e8f7e54d42fd20285bea6
2014-10-21 12:45:53 -07:00
Alan Viverette
e354a9e4da Check MenuItem.isVisible() for keyboard shortcuts
Parity with support-v7 change.

BUG: 18021345
Change-Id: I583b586d451a21bbd207d2b0584a396e1125ee59
2014-10-21 12:21:32 -07:00
smain@google.com
a010375c54 some fixes to TV App quality and TV games doc.
add section to TV Games doc about controller instructions w/ template download.
clarify use of <meta-data> tag and standardize headings per Training conventions.

Change-Id: I6f61a0d4fd976098a6db9ded33c61419a764ad4f
2014-10-21 12:18:35 -07:00
Adam Powell
0b3c11260a Intent chooser callback
Let an app specify an IntentSender as an extra for ACTION_CHOOSER that
will be notified of the user's chosen target. Apps can use this to
implement things like one-touch last used affordances without
implementing their own one-off chooser UI.

Bug 17363684

Change-Id: Ic5d1d0e0c7a0bae3eda6b1d6ade993f3ba865cfa
2014-10-21 12:17:50 -07:00
John Spurlock
1a3f7db001 VolumeDialog: Restore default-selection logic.
Bug: 18066513
Change-Id: Ie72189edf9b59fd8d192d882aaadf1ac05dcb359
2014-10-21 15:16:16 -04:00
John Spurlock
cc8b3e8d4e Merge "Settings: Make SeekBarVolumizer more null-resilient." into lmp-mr1-dev 2014-10-21 18:39:20 +00:00
Alan Viverette
7c133e19dd Merge "Fix gradient drawable radius when specified as float, dimension" into lmp-mr1-dev 2014-10-21 18:25:01 +00:00
John Spurlock
735f9ebc18 Settings: Make SeekBarVolumizer more null-resilient.
Now that the instances are reusable, ensure all "post" methods
do a handler check, and ensure they are all internal.

Bug: 18063070
Change-Id: Idc478c636686f666f5656f3d07bf2738ba3e9a5a
2014-10-21 14:23:24 -04:00
John Spurlock
624dd5ce9d Merge "Sysui: Include shared prefs in service dump." into lmp-mr1-dev 2014-10-21 18:16:47 +00:00
Alan Viverette
3d52809bad Merge "Prevent excessive accessibility announcements in TimePicker" into lmp-mr1-dev 2014-10-21 18:16:25 +00:00
Alan Viverette
46b4920ac8 Merge "Propagate state changes even when we don't change drawable index" into lmp-mr1-dev 2014-10-21 18:14:50 +00:00
Alan Viverette
2efbe9816e Fix gradient drawable radius when specified as float, dimension
BUG: 18070756
Change-Id: I991ff792c376c9695a007f8f1187390ab5ff6e3c
2014-10-21 11:04:04 -07:00
Ye Wen
2cb65604bc Send HTTP status code back in case of MMS HTTP failure (1/3)
We need this in SMS app so that we can treat 404 specially

b/17520290

Change-Id: Ifae1c1b323411143c740fb589c2b978b5ff9bc4e
2014-10-21 10:58:06 -07:00
Andrew Lee
8f8e473cac Fire onConferenceChanged after reseting conference.
Bug: 17423848
Change-Id: Ic53f40e806f2bfd5b49bff2caad64bb93b290bad
2014-10-21 10:32:49 -07:00
Ricardo Cervera
f08c488b19 docs: Fixed 404 link in SDK Tools page.
Bug: 17950558

Change-Id: Ibd110b6aa693b4f5f4c8ca46efdb2c32a88f3dd2
2014-10-21 10:18:19 -07:00
Ricardo Cervera
2102ac1eed docs: Fix hprof-conv location in docs.
https://code.google.com/p/android/issues/detail?id=76691

Change-Id: I8550731c1defe867d26d5ab4568c4935c89e37d6
2014-10-21 10:12:08 -07:00
John Spurlock
7bbb9f6410 Sysui: Include shared prefs in service dump.
Also:
 - Remove obsolete Prefs helper.
 - Use common file for zen-mode prefs.

Bug: 18062541
Change-Id: I9a6a4733eac0ec1c55da5d359c996cb5fe3bb8af
2014-10-21 12:26:45 -04:00
Ricardo Cervera
3057840860 docs: Fix typo in search class
Change-Id: Ia1be1f1f3cae60ed9742c8b6d12f6689a48d023f
2014-10-21 09:19:20 -07:00
Ricardo Cervera
449319b535 docs: Fixing misc minor bugs.
Bug: 13872976

Change-Id: I4ea9893b81d8157bf8699820f25c086fd0c4911c
2014-10-21 08:32:02 -07:00
Adrian Roos
7b4a38b197 Delay discovery of system trust agents
Waits for BOOT_COMPLETED when enabling system trust agents.
This fixes an issue where no agents were discovered because the
packages were not ready after an OTA.

Bug: 18065140
Change-Id: Ibff9948e1536e07f868d6b29f432923a137091e6
2014-10-21 17:07:41 +02:00
Leon Scroggins III
e463bc388e am 3c8bde55: Merge "Report that a JavaInputStreamAdaptor is at end." into lmp-dev
* commit '3c8bde5534d81518f5baf3795989f367373f7dfd':
  Report that a JavaInputStreamAdaptor is at end.
2014-10-21 13:56:42 +00:00
Leon Scroggins III
3c8bde5534 Merge "Report that a JavaInputStreamAdaptor is at end." into lmp-dev 2014-10-21 13:52:30 +00:00
Robin Lee
fc56790085 am e1c9489c: Merge "DevicePolicy: Restore CA warning to K behaviour" into lmp-dev
* commit 'e1c9489cc40542bfa2adbb84b6fb77cff4ab8570':
  DevicePolicy: Restore CA warning to K behaviour
2014-10-21 11:58:38 +00:00
Robin Lee
e1c9489cc4 Merge "DevicePolicy: Restore CA warning to K behaviour" into lmp-dev 2014-10-21 11:54:52 +00:00
Geoff Mendal
a9a550dd8e am deddb384: (-s ours) Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev
* commit 'deddb38462389823c194559052c4d64ee6c3b467':
  Import translations. DO NOT MERGE
2014-10-20 23:43:33 +00:00
Geoff Mendal
deddb38462 Merge "Import translations. DO NOT MERGE" into lmp-sprout-dev 2014-10-20 23:39:58 +00:00
Geoff Mendal
e8d005429c Import translations. DO NOT MERGE
Change-Id: Idcc94d2f5b04a7eea17b530c4a8ff7f8b76fff38
Auto-generated-cl: translation import
2014-10-20 16:21:14 -07:00
Jinsuk Kim
17e9d2468f Merge "CEC: Add missing protections for some HdmiControlService API" into lmp-mr1-dev 2014-10-20 22:50:37 +00:00