148 Commits

Author SHA1 Message Date
Alan Viverette
ff8dbfea75 Merge "Add missing accessor to CompoundDrawable, clean up javadoc" 2015-02-13 18:51:44 +00:00
John Spurlock
45cc62a33e Merge "NLS: Add a public signal value for an undefined filter value." 2015-02-13 18:35:50 +00:00
John Spurlock
8310410365 NLS: Add a public signal value for an undefined filter value.
We have three possible defined values for getInterruptionFilter().
i.e. All/Priority/None.

However, this value is only returned to listeners once connected,
otherwise we return 0, an undefined value.

This change gives a name to this undefined value to make it clear
that callers should not infer any meaning from it.

INTERRUPTION_FILTER_UNKNOWN = 0;

Bug: 19288429
Change-Id: I8ae94d1723289ca5714800906f9bf4e7e8111813
2015-02-13 09:27:15 -05:00
Narayan Kamath
f129af204c Merge "Move apache specific portions of android.net.http to external/apache-http." 2015-02-13 09:51:44 +00:00
Todd Volkert
0653f2596f Increase visibility of Transition.areValuesChanged() to protected to allow
subclasses outside the android.transition package to override it.

Change-Id: Ib6a5502827e734de7494958b510afc9ddb80dffe
2015-02-12 15:27:57 -08:00
Alan Viverette
6a394f4def Add missing accessor to CompoundDrawable, clean up javadoc
Removes button resource identifier field, which was useless.

Bug: 19369976
Change-Id: I1a34cb981a2db93d10e93ff954294f76ea604006
2015-02-12 15:03:22 -08:00
Alan Viverette
cbcf1d4854 Merge "Add support for user-selectable night mode" 2015-02-12 19:15:53 +00:00
Alan Viverette
4cc1e9e707 Add support for user-selectable night mode
Adds a Material theme that automatically selects light or dark UI based
on the night mode resource qualifier.

Removes restriction that night mode only works when car mode is enabled
or the device is docked, which was applied inconsistently anyway and
only actually worked when in car mode (regardless of docked state).
Night mode is now always applied according to the system preference.

Change-Id: I526807c907eb29a2ab588d15932afe3e6ab180c2
2015-02-12 11:01:06 -08:00
Alan Viverette
3358d5c0a7 Merge "API for adding layers to LayerDrawable" 2015-02-12 18:51:41 +00:00
Alan Viverette
d8c18e81c0 API for adding layers to LayerDrawable
Change-Id: I859c956a47d95fa1ce65b9eea9bc7be4659486bf
2015-02-12 18:49:42 +00:00
Narayan Kamath
3bdd327f85 Move apache specific portions of android.net.http to external/apache-http.
We continue to compile external/apache-http into ext.jar. This contains
a few changes apart fom the classes moving around :

- Makefile changes to build docs and api-stubs for now. A future change
  will revert these changes and remove these classes from stubs and
  docs.
- Hardcode event IDs in legacyerrorstrings to avoid a dependency between
  the frameworks and apache. These strings are on their way out and will
  never change anyway.
- Remove imports due to {@link} tags and use {@code} instead.
- Remove an accidental(?) dependency on apache commons code that's a
  part of apache-http.

bug: 18027885

Change-Id: I51cd038d846ec7d02c283a4541b10a6a9cf62ecf
2015-02-12 11:15:49 +00:00
Adam Powell
f4071c709d am 97e0ba69: am b73e029f: am 0ec652cf: Merge "Add DENSITY_280" into lmp-mr1-dev
automerge: bee1def

* commit 'bee1def31bb7a3a22e7c83904a3d8c418eeb5e48':
  Add DENSITY_280
2015-02-12 07:49:31 +00:00
Adam Powell
97e0ba6912 am b73e029f: am 0ec652cf: Merge "Add DENSITY_280" into lmp-mr1-dev
* commit 'b73e029fea53fd5aeaf01ad7ba15560329d8de1c':
  Add DENSITY_280
2015-02-12 02:25:29 +00:00
Adam Powell
0ec652cf72 Merge "Add DENSITY_280" into lmp-mr1-dev 2015-02-12 02:08:04 +00:00
Adam Powell
f6d4045d6c Add DENSITY_280
Bug 19350604

Change-Id: I94f5162c31f9c8853908d7c4699974c236cc7fe7
2015-02-11 13:34:43 -08:00
Nick Vaccaro
668ebe9501 am d0d13d82: Merge "Update API to contain new wrist tilt sensor type and string." into lmp-mr1-modular-dev
automerge: 5ff5711

* commit '5ff571155f0a405d6f7d298c7acaddc84bb8fb26':
  Update API to contain new wrist tilt sensor type and string.
2015-02-11 00:39:14 +00:00
Nick Vaccaro
f5021f6818 Update API to contain new wrist tilt sensor type and string.
Convert the wrist tilt sensor from being a vendor-defined sensor
type to being an official android sensor type.

Change-Id: I39807bdca4f4c853fa0f7e88e6d98c02245f2a8b
2015-02-10 20:43:44 +00:00
Soonil Nagarkar
9e9345c70a Merge "Add @SystemApi annotations to ACTION_QUERY_PACKAGE_RESTART and related." 2015-02-10 19:20:36 +00:00
Soonil Nagarkar
0e8fd09708 Add @SystemApi annotations to ACTION_QUERY_PACKAGE_RESTART and related.
Make Intent.ACTION_QUERY_PACKAGE_RESTART and Intent.EXTRA_PACKAGES
accessible from GmsCore so that location and context components can
properly respond to the broadcast.

BUG: 19298558
Change-Id: I4b5cf4991c69d3aa745d03271187c65794df10b2
2015-02-10 10:37:36 -08:00
Yin-Chia Yeh
7021b7e370 Merge "Camera2: lens shading related HAL3.3 update" 2015-02-10 01:15:56 +00:00
Andre Eisenbach
7518ade9f6 am cd623416: am 8f31fa81: am 3ca77ccf: am 455502b7: Merge "Add API to check if a Bluetooth connection is encrypted (1/2)" into lmp-mr1-dev
* commit 'cd623416455100f64ef3f0be7ced27ffc04938a8':
  Add API to check if a Bluetooth connection is encrypted (1/2)
2015-02-10 00:50:06 +00:00
Andre Eisenbach
8f31fa81e0 am 3ca77ccf: am 455502b7: Merge "Add API to check if a Bluetooth connection is encrypted (1/2)" into lmp-mr1-dev
* commit '3ca77ccf873f12e116a66d1c1a417fe89f75af85':
  Add API to check if a Bluetooth connection is encrypted (1/2)
2015-02-10 00:34:43 +00:00
Yin-Chia Yeh
e4aa2831ce Camera2: lens shading related HAL3.3 update
Codegen doc update.

Change-Id: I0e997b3e6fde7636bef3accdd0f8b7b969d37afa
2015-02-09 11:33:06 -08:00
Andre Eisenbach
2b8696e3a9 Add API to check if a Bluetooth connection is encrypted (1/2)
Bug: 19186961
Change-Id: I24656a07ee23ebfe067a9dfb9c1bc4041c782d8c
2015-02-09 11:31:06 -08:00
Yin-Chia Yeh
98bafbf956 Merge "Camera2: doc update for HAL3.3 tonemapping change" 2015-02-09 19:11:55 +00:00
Zhijun He
fa95b0420c Camera2: add precapture trigger CANCEL
Bug: 19265647
Change-Id: I8f94ee5ace6dd3040ee2f350d589e24e53694f1b
2015-02-09 10:42:42 -08:00
Yin-Chia Yeh
956c52b5a0 Camera2: doc update for HAL3.3 tonemapping change
Codegen doc change.

Change-Id: Idd5185767c177f3179e5833be3f42357a5ead25f
2015-02-06 12:53:31 -08:00
Bryce Lee
a7e8717eb4 am 53b9fbd1: Expose userActivityTimeout through @SystemApi getter/setter.
automerge: 2820911

* commit '28209111cc74e05fb6caa3d5b1756e57639247a4':
  Expose userActivityTimeout through @SystemApi getter/setter.
2015-02-06 20:20:47 +00:00
Bryce Lee
53b9fbd161 Expose userActivityTimeout through @SystemApi getter/setter.
This reverts commit 0dad5720902fad041bc8e2221953aab6dd1d2d8f.
System api documentation is not updated under PDK builds.

Change-Id: I851bcd66e0b764265e69ac104d5604bf316d5d10
2015-02-06 12:06:34 -08:00
Dianne Hackborn
a7bb6fbeab First quick implementation of auto assist data.
Introduce new AssistData class that contains all data
the framework automatically generates for assist.  Currently
populated with a very simple tree structure representing
the app's view hierarchy.

Reworked how we populate the class name for accessibility
info, so this is provided through a new method call on View
that subclasses can override.  This method is also used
to populate the class name in AssistData.

Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
2015-02-06 10:42:44 -08:00
Bryce Lee
e847b5baef Make THEATER_MODE_ON a System API.
Bug: 19043538
Change-Id: Ibf0d6b45868ca90eb792a40c5d1b1395774486b8
(cherry picked from commit cdfebd60fad097fa58d45f13104990cd323be61b)
2015-02-06 02:41:09 +00:00
Filip Gruszczynski
fe7712e758 am 7acd679c: Merge "Add wallpaper controlling system apis." into lmp-mr1-modular-dev
automerge: 96f3462

* commit '96f3462958977a29aeb8acf102dd5e86c4a5417a':
  Add wallpaper controlling system apis.
2015-02-06 00:16:41 +00:00
Brian Attwell
c6dbe3be2c Unhide and rename PhoneNumberUtils tts methods
Renamed ttsSpanAsPhoneNumber #1 -> getPhoneTtsSpannable
Renamed ttsSpanAsPhoneNumber #2 -> addPhoneTtsSpan
Added  				   getPhoneTtsSpan

Instead of removing the original hidden methods, I deprecated them.
Since Telephony changes initially get checked into wireless-dev
branch and dialer/contacts changes get checked into master branch,
immediately deleting the ttsSpanAsPhoneNumber methods would break
builds.

In ContactsCommon, I plan on removing
ContactDisplayUtils#getTelephoneTtsSpannable and instead using
these Telephony APIs. Numbers I tested worked in ToT master talkback:
911, (650) 215 3111, 22222222222, 333-3333, 013334612234, +1 905 471 8484,
001 39 02 444 4444. The changes in this diff cause the numbers
to be talked-back at least as well as before.

Some context: go/question-about-telephonys-ttsspan

Bug: 18777272
Change-Id: I3a6ead3ee9c030761bde903cf88f4aa4fc7a3460
2015-02-05 14:32:03 -08:00
Filip Gruszczynski
9fedc72a0b Add wallpaper controlling system apis.
Change-Id: Ibaa8009e9b9d2e58254a4d9107a316c7f1de2211
2015-02-05 12:29:42 -08:00
Robin Lee
3798ed5e0b Device Policy API to choose a private key silently
Support for certificate chooser (keychain) to first query a profile
owner (if one exists) for a silent credentials grant which will be
passed back to the caller as an alias.

Bug: 15065444
Change-Id: I0729b435c218b7991e6cb5faedefb7900577afcc
2015-02-05 19:38:43 +00:00
Brian Attwell
dd26b2dd63 Merge "Unhide telecom APIs needed by Contacts" 2015-02-05 18:25:52 +00:00
Brian Attwell
ad147f4b59 Unhide telecom APIs needed by Contacts
* Removed @SystemApi and @hide from some telecom classes
  and APIs
* Stopped using explicit @link's to ConnectionService, so
  that I didn't need to unhide ConnectionService
* Added @SystemApi to hidden methods inside classes that
  I removed @SystemApi from.
* Ran update-api. This picked up unrelated Math changes
  from b/11388705.

Unbundling

Bug: 18777272
Bug: 11388705
Change-Id: I218e0c3c0ae515d3deb2d3b67657db45a0bad999
2015-02-04 18:04:17 -08:00
Adrian Roos
761c156756 Follow-up to I8a89a10cf2746cefa2feba50dc60c5eccd2ab28d
Bug: 19233606
Change-Id: I394a015371acd124f84f1f6f82bc565fefc669d1
2015-02-04 15:16:04 +00:00
Adrian Roos
75fa38539d Add API for light status bar
Adds a systemUiVisibility flag and links it
to the status bar icon controller. Also adds a
theme attribute for setting the flag.

Bug: 19233606
Change-Id: I8a89a10cf2746cefa2feba50dc60c5eccd2ab28d
2015-02-04 14:28:14 +01:00
Narayan Kamath
406e1ed988 Remove apache specific socket factory API.
Note that this change also includes another (non-breaking) update from
another of my changes from a month ago. I guess nobody has updated API on
master in a very long time..

bug: 18027885
Change-Id: I1fb1bcdaac07131c3bc43b13ad21cacd12a2e7c8
2015-02-04 09:50:46 +00:00
Svetoslav
948c9a6393 Add duplex mode support.
This change adds support for duplex printing. The print UI now has a duplex
option which allows the user to choose one of the supported duplex options
by the currently selected printer. The chosen duplex mode is propaged to the
print service that manages this printer.

Change-Id: I807ba9da2723531535c0e1e33f2f4e1b503a54b0
2015-02-04 05:48:48 +00:00
Yin-Chia Yeh
31fdd4580c Merge "Camera2: framework updates for HAL3.3 keys" 2015-02-03 23:39:52 +00:00
Alan Viverette
7354b30d90 Add layer width, height, gravity, and RTL insets for LayerDrawable
Bug: 18473819
Change-Id: Iae8e3dbd3fcc7f4c2f08b266c69d40036e75dfb6
2015-02-03 13:24:59 -08:00
Wale Ogunwale
ad57529591 Merge "@hide ActivityInfo.resizeable." 2015-02-03 20:30:25 +00:00
Yin-Chia Yeh
d9fc67ce3c Camera2: framework updates for HAL3.3 keys
1. Return new keys in legacy shim
2. Codegened doc update from the spec change
3. Remove DISABLED mode from available scene mode list to ensure
   DISABLED is listed iff scene mode is not supported

Change-Id: If3dc74ea7e0fe6135722723f211024b604094f59
2015-02-03 11:52:04 -08:00
Clara Bayarri
54514cfa3e Merge "Floating Palettes: Create the ActionMode type and use it in Editor." 2015-02-03 18:14:00 +00:00
Wale Ogunwale
4aab1bba69 @hide ActivityInfo.resizeable.
Bug: 19178148
Change-Id: Icc132eef7196cc2b8e50294df10595bde8d73ecd
2015-02-03 10:06:34 -08:00
Brian Attwell
2502f1d414 Merge "Expose EXTRA_MODE" 2015-02-03 17:43:23 +00:00
Brian Attwell
029e6819ae Expose EXTRA_MODE
The ability to set EXTRA_MODE values on QuickContact
intents has existed for ages by setting the extraMode
parameter on showQuickContact().

Now we need a way for QuickContactActivity to read the intent.

Bug: 18777272
Change-Id: If5e4aa5757e62e942926a12a36345512d6fb66ca
2015-02-03 09:37:30 -08:00
Wale Ogunwale
f5db946ffa Merge "Support for activity to opt-in/out of resizeable/multi-window support." 2015-02-03 17:16:16 +00:00