148 Commits

Author SHA1 Message Date
Santos Cordon
c66f3baa42 Hide calllog entries for unregistered phone accounts
Change-Id: If1f873dd41c973442fa7a24020e56d13b7b5ad2c
2015-03-03 00:33:35 +00:00
Adam Lesinski
a4005662c7 Merge "Add generic "INTERACTION" event type to UsageStatsManager" 2015-03-02 22:22:58 +00:00
Adam Lesinski
978a1ed5aa Add generic "INTERACTION" event type to UsageStatsManager
This will allow for updating a package's last time used
property for packages that are interacted in ways other than
launching their activities (interacting with notifications, etc.)

Change-Id: Ic6f9519f46fa04abd37ea6fc9475bcd9ea721003
2015-03-02 12:54:14 -08:00
James Cook
99e6d7a17a Merge "Add TextView XML attribute for undo support" 2015-02-27 22:35:15 +00:00
Jim Miller
c5ff04cbc4 Merge "Add fingerprint settings support to the framework" 2015-02-27 21:51:27 +00:00
James Cook
f1dad1ea82 Add TextView XML attribute for undo support
* Defaults to true, but can easily be changed if we decide that undo
  should be off by default.

Bug: 19332904
Change-Id: Ic4f3814a1b0a5e25171a910f2fe628606e16104e
2015-02-27 13:40:56 -08:00
James Cook
7af589995f Merge "Reland: Add basic support for Ctrl-Z to editable TextViews" 2015-02-27 20:44:45 +00:00
Jim Miller
ba67aee02c Add fingerprint settings support to the framework
- cleanup thread issue and simplify native FingerprintService methods
- add new permissions and enforce them
- add fingerprint hardware detection API

Change-Id: I87c2243ea2412061f1e85b044138480d0161bcdf
2015-02-27 12:03:32 -08:00
Alan Viverette
228fd600ce Merge "Implement landscape layout for time picker dialog" 2015-02-27 18:13:54 +00:00
James Cook
f59152cf00 Reland: Add basic support for Ctrl-Z to editable TextViews
Reland 9201e797833f35b9afb219f88c10d3b6fda02a4e which was reverted in
c8f08e07a47cc259a25caed3f731ee7044328635.

Original description:
* Add an UndoManager to the Editor for each editable TextView
* Record operations as being owned by that Editor
* Parcel the undo state
* Wire hardware keyboard shortcuts Ctrl-Z for undo and Ctrl-Shift-Z
  for redo into TextView shortcut handling.
* Expose IDs for "undo" and "redo" for symmetry with cut/copy/paste.

Additional fix:
* Ensure each UndoOwner always has a valid mManager, even after the
  UndoManager is parceled and restored.

Bug: 19332904
Bug: 19505388
Change-Id: Iad4476e6e9ca952281e69bf22c07cca915dfa7bd
2015-02-27 10:04:08 -08:00
Nick Kralevich
c94ea96cb7 Merge "expose ST_* in OsConstants" 2015-02-27 14:11:37 +00:00
Chris Banes
9cc36ca1b5 MenuItem, navigation and overflow icon tinting
- iconTint and iconTintMode attrs for MenuItem, with
  associated setters.
- navigationTint and navigationTintMode attrs for Toolbar
  with associated setters.
- overlflowTint and overflowTintMode attrs for Toolbar
  with associated setters.

BUG: 18126050
BUG: 19148351
BUG: 19305408

Change-Id: Ibd1fae7cdbc7a7c42809e52541fae5d8beb18e92
2015-02-27 08:56:04 +00:00
Nick Kralevich
999e6458b7 expose ST_* in OsConstants
Change-Id: I7982843502cf8a17188b2422af44e8d41450a586
2015-02-26 16:34:34 -08:00
Andrew Lee
873cfbf185 Add intent for call accessibility settings.
Preparatory work for adding a new Accessibility settigns activity
in Telephony, which we will need an intent to be able to launch.

Bug: 19372734
Change-Id: Ibf72ffe21da3ba2819eb165dda9bde30204bab68
2015-02-26 15:32:16 -08:00
James Cook
14a92fe75d Merge "Revert "Add basic support for Ctrl-Z to editable TextViews"" 2015-02-26 20:34:16 +00:00
James Cook
c8f08e07a4 Revert "Add basic support for Ctrl-Z to editable TextViews"
This reverts commit 9201e797833f35b9afb219f88c10d3b6fda02a4e.

It causes crashes on typing after device orientation change.

Bug: 19332904
Bug: 19505388
Change-Id: I0d9fb728eb6f8d591beb35fab333c0a182e24542
2015-02-26 12:30:04 -08:00
Brian Attwell
32e819131b Merge "QuickContacts can prioritize phone mimetype. Part1" 2015-02-26 20:19:20 +00:00
Brian Attwell
7035f2be61 QuickContacts can prioritize phone mimetype. Part1
Define the ContactsContract for a new QuickContact extra.
This can be used to tell QuickContacts to prioritize a
given mimetype.

Bug: 18391003
Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
2015-02-26 11:47:25 -08:00
Dianne Hackborn
93ec05ca47 Merge "Rework voice interaction session lifecycle." 2015-02-26 18:59:57 +00:00
Alan Viverette
62c79e9a64 Implement landscape layout for time picker dialog
Adds support overriding default alert dialog panel elements by including
them in the dialog's custom content view, but no public API (yet!) since
the panel IDs have never been public. Some minor cleanup and refactoring
in TimePickerDialog. Removes Holo styles for "clock" and "calendar" style
pickers since they are new in Material. If the new styles are used against
Holo they will match Material but with Holo primary/accent colors.

Also implements themed color state lists to resolve TODOs in both time
and date pickers.

Bug: 19431361
Change-Id: I095fd8d653e02d9e5d20d66611432a08a7a5685e
2015-02-26 09:47:10 -08:00
Alan Viverette
745677f117 Merge "Clean up AlertDialog javadocs, add overlay theme for dialogs" 2015-02-26 01:36:49 +00:00
Dianne Hackborn
ffeecb1bfb Rework voice interaction session lifecycle.
We now have a formal concept of the session being shown and
hidden, with it being able to continue running while hidden
as long as there is enough RAM.

This changes the flow that a VoiceInteractionSession will
see: onCreate() is when it is first created, onCreateContentView()
is when its UI first needs to be built, onShow() is called each
time it needs to be shown and has the arguments given when the
show request was made (which has been renamed from startSession to
showSession), and then onHide() will be called when the UI is
no longer shown.

The methods show() and hide() now allow a VoiceInteractionSession
subclass to control when it is shown and hidden, working with the
shown state being maintained by the system.

Change-Id: Ic4a430ec7e8bf76a5441fd0425e2932806170fcc
2015-02-25 17:36:17 -08:00
Jeff Brown
6e53931f49 Add Context.getSystemService(Class<?>).
Added an overload of getSystemService() that takes a class instead of a
service name to eliminate the extra cast and provide more type safety.

Cleaned up docs.

Removed the default constructor of BatteryManager which should not have
existed.

Change-Id: I9da46b20641fc83ecd3342560e5b94cb721f289c
2015-02-25 17:04:13 -08:00
Jim Miller
74160d8cdb am b060f018: am 91aa1bdb: am 19847b07: am b46e4806: Merge "Remove TrustAgent whitelisting API" into lmp-mr1-dev
* commit 'b060f018effb27a79797e55f9eb6a592db2cb39a':
  Remove TrustAgent whitelisting API
2015-02-25 18:30:10 +00:00
Jim Miller
91aa1bdb57 am 19847b07: am b46e4806: Merge "Remove TrustAgent whitelisting API" into lmp-mr1-dev
* commit '19847b07e81b9b29e3574ce6ab8acf7a958a1a63':
  Remove TrustAgent whitelisting API
2015-02-25 18:17:13 +00:00
Jim Miller
bc4f2ccf6c Remove TrustAgent whitelisting API
Due to a bug caught late in the release, this API is broken
and should be removed from API 22 because it's too late for
a fix and there's no workaround.

Bug 19461292

Change-Id: Ib0757a4484b14afe7f83ae9527bb3f5f4834ee62
2015-02-24 20:15:02 -08:00
Keisuke Kuroyanagi
b103709d02 Paste as plain text by Ctrl-Shift-V
Detect Ctrl-Shft-V in onKeyShortcut() and perform paste
as plain text.

Bug: 19287899
Change-Id: I0b27bf6155222a042eeb61dfbd4544c8312904ce
2015-02-24 12:51:46 +09:00
Alan Viverette
49f118ef08 Clean up AlertDialog javadocs, add overlay theme for dialogs
Also cleans up CheckedTextView javadocs.

Bug: 19482450
Change-Id: I47559533784b19267e9381af10c456ce0d20d329
2015-02-23 17:15:27 -08:00
Alan Viverette
6a8253fdc9 Update progress bar and seek bar backgrounds, fix seek bar thumb
Ensures LayerDrawable copies out the correct layer properties during
"tileification". This really needs to be deprecated or replaced in a
future CL, though, because it is potentially lossy (e.g. for
RippleDrawable, which is an instanceof LayerDrawable).

Bug: 19448441
Change-Id: I483e9c34fd781e280c13eb5951f96bc71a252819
2015-02-23 12:49:47 -08:00
Alan Viverette
b3f3762ee0 Merge "Unify wrapper-type drawables" 2015-02-23 20:39:01 +00:00
Alan Viverette
a129622071 Unify wrapper-type drawables
Fixes several issues with constant state and propagation of drawable
property changes to wrapped drawables. Also un-hides the layout
direction accessors and hotspot getter.

Change-Id: Iff19db6a95059cbcfcbde7af0ac33871ccd41615
2015-02-20 15:00:25 -08:00
Alan Viverette
955471300c Merge "Update time picker to match latest Material spec" 2015-02-20 22:03:06 +00:00
Alan Viverette
adbc95f015 Update time picker to match latest Material spec
Also removes saveLayerAlpha() call from radial time picker's disabled
drawing path.

Bug: 19431361
Change-Id: I18641bb9544107bb8704fc43d0dd6c5b18ff99ce
2015-02-20 10:51:33 -08:00
Alexandra Gherghina
eeab1fa96c Merge "New intent action for returning account migration result" 2015-02-20 16:46:24 +00:00
Alexandra Gherghina
db4bc57760 New intent action for returning account migration result
Bug: 18551835
Change-Id: Ifc5dedf1753a7779793a8b056bac5f5733a2783d
2015-02-20 11:55:52 +00:00
Andrew Lee
7870433c65 Merge "Add intent for configuring RespondViaSms." 2015-02-19 21:27:08 +00:00
Andrew Lee
866080f28a Add intent for configuring RespondViaSms.
Bug: 19372734
Change-Id: I8dcead3281b42d38c2b2f40aa70ad8fbf5b2d8fb
2015-02-19 12:05:33 -08:00
James Cook
c20f54aff6 Merge "Add basic support for Ctrl-Z to editable TextViews" 2015-02-19 18:36:19 +00:00
James Cook
9201e79783 Add basic support for Ctrl-Z to editable TextViews
* Add an UndoManager to the Editor for each editable TextView
* Record operations as being owned by that Editor
* Parcel the undo state
* Wire hardware keyboard shortcuts Ctrl-Z for undo and Ctrl-Shift-Z
  for redo into TextView shortcut handling.
* Expose IDs for "undo" and "redo" for symmetry with cut/copy/paste.

Tests in CTS TextViewTest will land separately in ag/635321

Bug: 19332904
Change-Id: Ibd23843f86b4cd556751faa0b3ad1f35d6d49785
2015-02-19 10:32:14 -08:00
John Spurlock
bbfd31a5d4 AudioAttributes: introduce new flags to bypass audio restrictions.
- New @hidden @SystemApi FLAG_BYPASS_INTERRUPTION_POLICY, request
   to ignore any current audio restrictions, such as zen mode
   content-based notification filtering.
 - Wire up FLAG_BYPASS_INTERRUPTION_POLICY to the existing
   audio restriction checks in the framework.

 - New @hidden @SystemApi FLAG_BYPASS_MUTE, request to play
   audibly, even if the underlying stream is muted.
 - Wiring up to audio framework TBD.

 - Use both of these new flags on the inline volume slider
   controls used in Settings, ensuring playback is heard
   regardless of the current device filter state.

Bug: 19407114
Change-Id: I3d44394931592ccbc1b61ddd9a4d1cc984da17cc
2015-02-18 20:48:26 -05:00
Jorim Jaggi
3c30acf6cd Merge "Add theme for light status bar" 2015-02-18 11:52:22 +00:00
Jorim Jaggi
4c8dfb48f6 Add theme for light status bar
Bug: 19233606
Change-Id: I41007e0124c5a9802a8215d436169efd00b2873f
2015-02-17 23:12:47 +01:00
Robin Lee
abf3570f38 DevicePolicy: Make uid parameter an int
This should not have been a long to begin with.

Change-Id: Icbf6e2e97cb6301b968b3eb8b3f9a46331f7983e
2015-02-17 14:18:32 +00:00
Robin Lee
f6901eb9e2 Merge "Device Policy API to choose a private key silently" 2015-02-16 10:47:51 +00:00
Alan Viverette
93dcc45e3c Merge "Add attribute for controlling ripple radius" 2015-02-13 20:53:13 +00:00
Dianne Hackborn
682c8e509b Merge "Update voice interaction layer for new UI design." 2015-02-13 20:16:04 +00:00
Dianne Hackborn
ae6688b096 Update voice interaction layer for new UI design.
Can switch from a pure overlay at the top of the screen,
to interactive mode with the voice UI drawing at the bottom
and pushing its target activity up like an IME.

Add mechanism to get assist data to the voice interaction UI.

Add some basic visualization of the assist data, outlining
where on the screen we have text.

Add a test ACTION_ASSIST handler, which can propagate the
assist data it gets to the voice interaction session so
you can see what kind of data we are getting from different
apps.

Change-Id: I18312fe1601d7926d1fb96a817638d60f6263771
2015-02-13 11:27:57 -08:00
Alan Viverette
88d44d4ada Add attribute for controlling ripple radius
Sets up the action bar item and control styles to use a 20dp radius
ripple to match latest Material spec.

Bug: 19370157
Change-Id: I87cba01076ee83937a6bfd36fc7dc188e1eb4672
2015-02-13 11:11:12 -08:00
Chet Haase
50dd4c1c59 Merge "Add ClipReveal window transition for application launch" 2015-02-13 19:02:15 +00:00
Chet Haase
10e23ab61b Add ClipReveal window transition for application launch
Issue #19362772 Better material launch animations

Change-Id: Ic94fde910b6b5554ee954dfbbf374949f9eb189d
2015-02-13 11:00:55 -08:00