9351 Commits

Author SHA1 Message Date
Jeff Brown
1a937b04e6 Initial draft of new MediaRouter APIs.
This patch introduces basic infrastructure for the new MediaRouter
API.  The code is fully documented but incompletely implemented.
It is being submitted not to facilitate API reviews.

MediaRouter is a new class that applications used to discovery,
connect to, and control media devices as represented by media
destinations and their routes.  Routes may offer a variety of
capabilities.  This new class is a much more powerful replacement
for the existing MediaRouter.

MediaRouteService is a base class for creating media route services
which third-parties can implement to make routes available to
applications.  It is analoguous to the MediaRouteProvider
infrastructure of the old media router support library but it
is designed to be integrated into the framework and enable a
variety of new usages such as remote display projection.

Stay tuned for more...

Change-Id: I2c7c6013d9f751d71e83697e7fc9e49bf7751fef
2014-07-14 04:38:14 -07:00
Jeff Brown
01a500ed1c Delete first draft of media routing APIs.
The new APIs will not be as tightly integrated into MediaSession.

Change-Id: I5cfd37d9d8d0c5d46c55edb5cf0772a8f1ef13ab
2014-07-14 04:06:44 -07:00
Wink Saville
7ab9d759f5 Telephony: Introduce config item for Hot Swap support
When a Uicc Card is inserted or removed, Android pops up a prompt
to the user to reboot the device. This prompt is unnecessary if the
modem supports Hot Swapping of cards.

Introduce a new config item to indicate if the modem supports
hotswapping. Frameworks can then check this before propmting the
user.

Bug: 12161291
Change-Id: I0f2c3134525aa2301fd667d0a1819f4419eecae0
(cherry picked from commit 5cbf6098c0d4bb830acd6ef45e8a3c1cedfb165c)
(cherry picked from commit 067089c6a1a8acc638f563f817dafef9172083f0)
(cherry picked from commit fd5d8910922bb16095367d09077e5974422e57ce)
2014-07-13 12:43:07 +00:00
Alan Viverette
58c42c3596 Specify light and shadow properties in theme
BUG: 15859361
Change-Id: I65c9aa8c7ad7a709504c879d96158efba040d3ce
2014-07-12 20:49:17 -07:00
Adam Powell
278902c982 Updated "with-default" layout added for ResolverActivity
Add a layout that promotes the last chosen activity to the top for
ResolverActivity. Alter ResolverActivity behavior as appropriate: Only
the last selected activity can be set as default. Different activity
selections take effect immediately. You can only set a default if it
was the last-used target of the intent.

Also add some default strings for invoking common intents to make the
no-title invocations a bit more user-friendly than just, "complete
action using."

Bug 15694906

Change-Id: I8c75d2f812926805c949cc76bab48aa4094e002f
2014-07-12 18:48:13 -07:00
Sreeram Ramachandran
06b6cdaed5 Remove unnecessary code and APIs.
This stuff has been replaced by setNetworkForUser() in NetdClient.

Change-Id: If525ee259b74314191d1913f7c2a3e828e05c38f
2014-07-11 18:16:04 -07:00
destradaa
a4fa3b5aa5 Add support in the platform for Activity Recognition Hardware.
Change-Id: I7c4fff3526583475a5edf1f4ba8fede4e9419ead
2014-07-11 15:58:36 -07:00
Fabrice Di Meglio
dfaa6c7439 Fix TimePicker behavior
- use Alert Theme and make the TimePickerDialog show its done button
in the legacy mode
- if targetSdkVersion < L or if TV UI show the legacy TimePicker

Change-Id: I19ca6dbbcb50599c7e230262a23956c185f53a5c
2014-07-11 22:48:26 +00:00
Adam Powell
6223aa1054 Merge "Block focus with a touchscreen for ActionBars and Toolbars" 2014-07-10 21:02:07 +00:00
Aaron Whyte
9cd6e647c6 resolved conflicts for merge of d2b5f7da to master
Change-Id: I8ec28728c12d7cc3ce2c4f3d09d9ce6162504618
2014-07-11 13:34:41 -07:00
Adam Powell
ed68773e82 Block focus with a touchscreen for ActionBars and Toolbars
Focus in the presence of a keyboard follows content, not navigational
elements.

Change-Id: I08d0f2fcfe0d4c58418466545b7b57d1345bd07f
2014-07-11 13:27:16 -07:00
Aaron Whyte
d2b5f7da35 am f5e67474: Allow overlays to configure ConnectivityService\'s network sampling to not wake the device. This can increase clockwork device battery life. Bug:15455204
* commit 'f5e6747440cc0d29c663a792e32d9618f842ecf2':
  Allow overlays to configure ConnectivityService's network sampling to not wake the device. This can increase clockwork device battery life. Bug:15455204
2014-07-11 01:46:08 +00:00
Aaron Whyte
f5e6747440 Allow overlays to configure ConnectivityService's network sampling to not wake the device.
This can increase clockwork device battery life.
Bug:15455204

Change-Id: Ifc551e6a522627dc8e5cfdfb8f56d4e3cbeea936
2014-07-10 14:05:35 -07:00
Adam Powell
ff0d298adb Add API to block focus in the presence of a touchscreen
For the sake of devices with touchscreens and optional keyboards, add
the touchscreenBlocksFocus attr and associated get/set methods to
ViewGroup. This will act much like FOCUS_BLOCKS_DESCENDANTS, but only
if the context reports that a touchscreen is present. This allows an
app to define much coarser-grained block elements for focus instead of
navigating between each individual (normally) focusable element, on
the theory that the readily available touchscreen or other keyboard
shortcuts allow for more fine-grained interaction. Keyboard focus
navigation thereby becomes more efficient at a coarse level.

Bug 13987814

Change-Id: Ie652b8845122a59046e96ad6074b3de163779adc
2014-07-10 20:38:42 -07:00
dcashman
989eb371bf Change key-set/public-key manifest relationship.
Separate definition of public keys and keysets in the manifest to better
represent their relationship. The 'key-set' tags should have nested additional
'public-key' tags that indicate which of the defined 'public-key' tags are
associated with them.  The first use of a given 'public-key' name should define
its value; subsequent uses may refer to it only by name.  'key-set' and
'public-key' names may not intersect.

Also, change 'keys' tag to 'key-sets' to avoid issues with previous keysets
implementation.

Bug: 6967056
Change-Id: I7534e4a42326e97b67b55509187c0d3c21a2bb32
2014-07-10 18:23:11 -07:00
Adam Powell
8e77c47d7c Merge "Elevation for action bars" 2014-07-10 20:54:59 +00:00
Adam Powell
14d1fa4ba7 Elevation for action bars
Expose theme attributes and API for ActionBar to adjust elevation of
the bar.

Remove the windowContentOverlay fake shadow from material themes and
use elevation instead.

Mmm, realtime shadows.

Bug 16207490

Change-Id: I254567a13422b6d2f657b9991608398885f45204
2014-07-10 16:23:39 -07:00
Alan Viverette
244911f976 Merge "API for inflating action bar menus against a different theme" 2014-07-10 20:54:59 +00:00
Alan Viverette
3d0f21dab8 API for inflating action bar menus against a different theme
BUG: 16162344
Change-Id: I5bf9f133de56a1830028bca6326cc2c50888a052
2014-07-10 16:15:35 -07:00
Andres Morales
ef6a8cc008 Updating strings to make them more clear for TC
Bug: 15893731
Change-Id: Ib6f5591322e76a35336a62a93863c13363e30dba
2014-07-10 15:03:01 -07:00
Adrian Roos
c42a1e1071 Add AlarmClock API to AlarmManager
Adds a new kind of alarm that represents an alarm clock and
a way to query the next scheduled alarm clock.

Deprecates Settings.System.NEXT_ALARM_FORMATTED.

Bug: 14589952
Change-Id: I297eeeff36d07adcda010afac183d0f5ee37dc99
2014-07-10 17:07:36 +00:00
Adam Powell
4f6c2050a8 ResolverDrawerLayout for ResolverActivity
Internal widget to allow nested scrolling of the grid of intent filter
targets. Initial logic complete.

Bug 15694906

Change-Id: Ib19723146bf1722db6bdd68f95cc6e623462d0f0
2014-07-09 23:16:15 -07:00
Alan Viverette
503dca6f58 Merge "Add API for specifying popup window shadows and shadow insets" 2014-07-10 16:04:18 +00:00
Alan Viverette
ccb11e1837 Add API for specifying popup window shadows and shadow insets
BUG: 14569120
BUG: 13211941

Change-Id: Ia21596b25a0471344d42d59377074f67fce00042
2014-07-09 18:26:30 +00:00
Yorke Lee
99bd4eabd1 Merge "Add manage voicemail permission (1/4)" 2014-07-09 14:50:26 +00:00
Alan Viverette
d5c72cbc23 Merge "Remove icon from base alert dialog, use light theme" 2014-07-09 21:45:32 +00:00
Alan Viverette
c65ff211af Remove icon from base alert dialog, use light theme
BUG: 16160305
Change-Id: I3cc5b5f0f02ddffb19b06b4796dedb98a6083454
2014-07-09 23:23:43 +00:00
Andres Morales
68d4acd205 Service for reading and writing blocks to PST partition
Permits apps with permission
android.permission.ACCESS_PERSISTENT_PARTITION to obtain
a read and write data blocks to the PST partition.

Only one block ever exists at one time in PST. When
a client writes another block, the previous one is
overwritten.

This permits storing a block of data that will live
across factory resets.

Change-Id: I8f23df3531f3c0512118eb4b7530eff8a8e81c83
2014-07-09 16:27:17 -07:00
Robert Greenwalt
ca19b7cbdf am a7efe9b8: am 912700fc: Merge "Add Telefonica/Movistar specific APN details for dun"
* commit 'a7efe9b8743e4a7d8a5b9ef247f6d780f33b4021':
  Add Telefonica/Movistar specific APN details for dun
2014-07-08 17:03:36 +00:00
Robert Greenwalt
912700fca8 Merge "Add Telefonica/Movistar specific APN details for dun" 2014-07-07 19:33:32 +00:00
Albert
b2df39a709 Add Telefonica/Movistar specific APN details for dun
Movistar Spain needs to add a specific APN to offer tethering
in their devices.

Change-Id: I5554ff98a5ac4c5f33b9af0083e1fac8305c9e13
Signed-off-by: Albert <alberto.crespell@gmail.com>
2014-07-08 06:56:08 +02:00
Nick Kralevich
569172e2da am aa4ff2ef: am eb822cec: Merge "Typo fix in permission string"
* commit 'aa4ff2efecb1aa03b6a6843bf8a4c19b885db4fc':
  Typo fix in permission string
2014-07-05 16:27:14 +00:00
Nick Kralevich
eb822cecdb Merge "Typo fix in permission string" 2014-07-03 01:32:01 +00:00
Narayan Kamath
404b8578c5 Merge "Add manifest attribute for multiArch apps." 2014-07-02 19:53:18 +00:00
Narayan Kamath
589a1bc0b0 Add manifest attribute for multiArch apps.
bug: 16013931
Change-Id: Ie8b01d364eed0846deeddf11e0d6e4cc1fba3e61
2014-07-09 18:00:41 +01:00
George Mount
f32b3de8c9 Merge "Make Theme.* disable windowContentTransitions by default." 2014-07-09 05:53:23 +00:00
Nick Kralevich
6752cba464 Merge "ConfigUpdateInstallReceiver: pass content via content provider" 2014-07-09 05:53:23 +00:00
George Mount
b27e495648 Make Theme.* disable windowContentTransitions by default.
Bug 16132922

Change-Id: I1d93e5f582fa73802c9f24d54547eac88638fbe9
2014-07-08 23:07:04 +00:00
Alan Viverette
d04675d507 Make the positive dialog button use accent color
BUG: 16134401
Change-Id: Icada7415328cea16288824f75049a2952303841f
2014-07-07 17:53:57 -07:00
Craig Stout
9eef3f4fb9 NumberPicker fixes for Android TV.
Fixed stuck dpad navigation when end of range is reached.
Adds theme attribute 'hideWheelUntilFocused'.

b/15194230

Change-Id: I9a77c6ad29a1fd930a8920d9944ad1eb15ca6b96
2014-07-08 00:10:05 +00:00
Shishir Agrawal
684b8ce8de Merge "Remove permission SIM_COMMUNICATION." 2014-07-07 17:47:39 +00:00
Shishir Agrawal
b708ce5f1a Remove permission SIM_COMMUNICATION.
The permission is replaced by the MODIFY_PHONE_STATE permission which is
System|Signature.

Change-Id: I74dbd242fc0fdbb5884fdc7a5c3f0063424fbfcf
2014-07-08 10:17:50 -07:00
John Spurlock
a37e9c8dcb Update status bar icon policy for volume + zen.
Only show vibrate in the volume slot, create a separate slot
for zen.

Bug:15831713
Change-Id: I9d23a2d370bc6f98be3bdc98c2990bbea6643ce7
2014-07-08 09:40:31 -04:00
Craig Stout
59c7b4b04f TimePickerDialog does not force new ui on TV.
Add support for done button in LegacyTimePickerDelegate.
Provide leanback themed legacy time picker layout with buttons
on the side.

b/15194230

Change-Id: Ie05c1cf45b334e9642095d63c682aba314ff3c6b
2014-07-07 23:08:11 +00:00
Robert Greenwalt
8fdc7133a2 am ca19b7cb: am a7efe9b8: am 912700fc: Merge "Add Telefonica/Movistar specific APN details for dun"
* commit 'ca19b7cbdfadb50f578fd688bec18a3fc34d98cd':
  Add Telefonica/Movistar specific APN details for dun
2014-07-08 17:08:45 +00:00
Fabrice Di Meglio
f9499b36e6 Add PreferenceFragment styling
- add the capability to specify a specific layout for PreferenceFragment

Change-Id: I2fa36b8fa8110e6cbc8006e1d000dc90ae6a5f0b
2014-07-07 20:08:27 +00:00
Jason Monk
a8f569c10a Add toast when user tries to leave lock-to-app
The toast will describe how to exit when entered normally, but when
entered by a DPM whitelisted app it will just notify them they are in
the mode.

Bug: 15780115
Change-Id: I75ac8540c31a75ac68e34b3b5c8260e191894b39
2014-07-07 17:13:34 +00:00
Alan Viverette
6424f9d0f8 Clean up styles and themes, extract Holo, fix ANR dialog theme
BUG: 16085915
Change-Id: Ia4013fc2240360db3a866d9ebd8f8e99e095f70d
2014-07-06 18:22:25 -07:00
Baligh Uddin
5240aa49e2 Merge "Import translations. DO NOT MERGE" 2014-07-02 18:50:12 +00:00
Baligh Uddin
041628cea4 Import translations. DO NOT MERGE
Change-Id: Ie10265b48d7fce4ed1335fb6e6dbc33c260aa762
Auto-generated-cl: translation import
2014-07-05 13:36:45 -07:00