362 Commits

Author SHA1 Message Date
Yohei Yukawa
094e64b7cf Merge "Clarify the purpose of EditorInfo#hintLocales." 2016-01-22 09:54:19 +00:00
Tomasz Mikolajewski
319fb497db Make ACTION_QUICK_VIEW public.
Bug: 20822219
Change-Id: I301031c513d31890d46819c2c911c342978bdc2e
2016-01-22 18:17:17 +09:00
Jean-Michel Trivi
b919f6fd71 Unhide audio recording notification API
Introduce new methods and classes for the audio recording
  configuration update and query API.
Callback registration supports a Handler.

Bug 22876530

Change-Id: I819ad464f095d970b5d1d8a3781fcf8dbb310424
2016-01-21 15:09:38 -08:00
Zhijun He
445b316755 Camera2: add surface set ID
Add surface set ID to OutputConfiguration class,and make this class public.

Bug: 25088440
Change-Id: Ib5fd74aa2c7bc06aed70771765767d6fcfefa98f
2016-01-21 14:47:24 -08:00
Yohei Yukawa
d469f2122e Clarify the purpose of EditorInfo#hintLocales.
During the initial attempt to support automatic language switching in
LatinIME, it turns out that the current EditorInfo#locales is difficult
to use and even confusing in some situations.  Based on that
experience, this CL changes as follows:

* Rename EditorInfo#locales to EditorInfo#hintLocales:
  This is mainly to avoid possible confusion when to set this.  We want
  to make it clear that having non-empty LocaleList there is a clear
  signal that the user would switch to certain languages regardless of
  the currently selected input method subtype.

* Make EditorInfo#hintLocales nullable:
  Previously marshaling EditorInfor causes NPE when
  EditorInfo#hintLocales is null.  This CL relaxes such a restriction.

* Introduce TextView#{set, get}ImeHintLocales():
  In the previous implementation [1], we just copied
  TextView#getTextLocales() into EditorInfo.  This is, however, does not
  work well because it is no more or less than the default value.  If
  LatinIME supports automatic language switching, having the default
  value in EditorInfo actually means that whenever you focus in a new
  text field, the keyboard language is reset to the default locale.
  In order to make this "hint" useful for IME developers, this "hint"
  should be specified only when the application developers are confident
  to do so.

  [1]: I738ffaaf07091d8b980f8bfc6e16227fcb85a96a
       0445fdf321e74044dc9f3719922fc8ff4923fdf4

Bug: 22859862
Change-Id: I0a730011874ea8d01e50624ed3f1ecd197d05f94
2016-01-21 21:13:06 +00:00
Oleksandr Peletskyi
b7cc096fd4 Merge "Added restriction if a user is allowed to change the icon. BUG: 25305966" 2016-01-21 20:25:46 +00:00
Oleksandr Peletskyi
7f1f1dfc87 Added restriction if a user is allowed to change the icon.
BUG: 25305966

Change-Id: I3d527224f00087b2bd959879ebb143e2ecb9c914
2016-01-21 20:49:32 +01:00
Phil Weaver
75fab6b8bc Merge "Pass drawing order information to accessibility." 2016-01-21 19:17:48 +00:00
Phil Weaver
1f2225486d Pass drawing order information to accessibility.
Bug: 22721935
Change-Id: I45a2be7c174c8b5a469b68a45dec0eb536825d92
2016-01-21 10:35:26 -08:00
Kenny Guy
772427555f Update PackageMonitor and LauncherApps for suspended apps.
Allow launchers to read ApplicationInfo from LauncherApps
to support suspended flag.
Provide callback to launchers via LauncherApps for suspend
/unsuspend broadcasts.

Change-Id: I772a121c45f60f926e8343bb6f181bef4e8929d3
2016-01-21 15:15:04 +00:00
Jinsong Mu
e09e245b92 Merge "Accessibility services can turn themselves off b/22514381 Added disableSelf() method to AccessibilityService This newly added api used used in https://googleplex-android-review.git.corp.google.com/#/c/833857/" 2016-01-21 06:01:22 +00:00
Jinsong Mu
a9e7a3bbe8 Accessibility services can turn themselves off b/22514381
Added disableSelf() method to AccessibilityService
This newly added api used used in
https://googleplex-android-review.git.corp.google.com/#/c/833857/

Change-Id: I5fe60181058ef90dd496318cf270e0825bcc411a
2016-01-20 21:56:50 -08:00
Ronghua Wu
66d96977bd Merge "media: Add MIMETYPE_VIDEO_DOLBY_VISION." 2016-01-21 00:42:23 +00:00
Andrei Stingaceanu
69d5ebc59e Suspend apps - broadcast intent and API
Send a protected broadcast to registered receivers only
when packages get suspended.

Bug: 22776761
Change-Id: I043053ed45bdc202ead18518a0c1e39cce47947c
2016-01-20 17:52:41 +00:00
Jason Monk
8bcbb9bc87 Merge "Add LinearLayout#getGravity" 2016-01-20 15:55:44 +00:00
Jason Monk
efe916c3c7 Add LinearLayout#getGravity
Change-Id: I290790b8e84e14f2702c6fc9c679b1c435cc13a8
2016-01-20 10:55:09 -05:00
Junda Liu
3f4c8d21e2 Merge "Make getIccSimChallengeResponse a carrier API." 2016-01-20 06:33:09 +00:00
Tyler Gunn
f97a009f76 Add capability to determine if downgrade to audio is denied.
By default we assume downgrade to audio is permitted; this capability
probides a means for a carrier to specifically deny that.

Bug: 22728624

Change-Id: I75e0a5b9e5ad2d970003a4691b6fc0ac0dcfe9e0
2016-01-19 15:59:34 -08:00
Rubin Xu
900fe2410d Merge "Add JNI bridge to the new logd security buffer." 2016-01-19 23:31:32 +00:00
Jonathan Basseri
663d09ab42 Merge "Un-hide carrier config keys." 2016-01-19 17:09:50 +00:00
Martijn Coenen
6f9595382c Merge "NFC: Allow apps to specify they're done with tag." 2016-01-19 15:32:36 +00:00
Wonsik Kim
886e562bc5 media: add HEVC support to MediaRecorder
Bug: 22879917
Change-Id: Ie4ffd3fdf215296d742ace669ae1897bda6df380
2016-01-18 23:37:50 -08:00
Jaesung Chung
5a8b9627c7 Extend MediaScanner and MtpDatabase to support RAW image files
Bug: 25871812
Change-Id: Iee92632585dc9020238a9b562defd06d6d2a91dc
2016-01-19 09:43:35 +09:00
Neil Fuller
c5064327ea Unhide @FunctionalInterface
Bug: 26623636
Change-Id: I3e483fe8780a3ffc706c2ab9a3116588e97d513f
2016-01-18 16:20:56 -08:00
Martijn Coenen
3748600bad NFC: Allow apps to specify they're done with tag.
When an application is no longer interested in
communicating with a tag, but the tag is kept in
range of the device for a long amount of time, we
will burn a lot of power keeping the connection
to it alive.

Instead, allow the app to signal it's "done" with
the tag, which allows us to put the controller
in a low-power mode. This will save power in scenarios
such as an NFC tag embedded in a car dock or
wireless charging dock.

Bug: 26426491
Change-Id: I7a0149ede46e0c7610b06ed1776344b772677350
2016-01-18 14:53:28 -08:00
Michal Karpinski
a8c8851caa Merge "DPM changes to support remote bugreports" 2016-01-18 10:00:55 +00:00
Yohei Yukawa
ac3e599069 Merge "Introdude IC#deleteSurroundingTextInCodePoints()." 2016-01-18 05:34:26 +00:00
Ricardo Garcia
ed5865b172 Merge "Adding UNPROCESSED to the available audio_sources and SUPPORT_AUDIO_SOURCE_UNPROCESSED property" 2016-01-17 20:07:15 +00:00
rago
a7cc59c318 Adding UNPROCESSED to the available audio_sources and
SUPPORT_AUDIO_SOURCE_UNPROCESSED property

bug: 25564291
Change-Id: I05d48fcc1859501902aa38604a5b86fa5d468468
2016-01-15 18:33:13 -08:00
Amith Yamasani
12747879b0 User creation with an intent
New API for an app to request creating a new user with
a given user name and seed account information for the
SetupWizard to use when that user is switched into.

Also adds system APIs to read the seed account data from
UserManager.

Bug: 22776757
Change-Id: I0bc3f11ee19c15e0ee2a908c88d98b13296cc30d
2016-01-15 17:06:35 -08:00
Paul Mclean
33c1c5560a Merge "Native Audio Routing and (Java) AudioRouting (interface)." 2016-01-15 23:07:39 +00:00
Paul McLean
ed36ca3d4f Native Audio Routing and (Java) AudioRouting (interface).
Adding AudioRouting (Java) interface for routing control
in AudioTrack and AudioRecord.
Deprecating current (Marshmallow) Routing APIs in
AudioTrack and AudioRecord.
Adding package-private constructors to AudioTrack and AudioRecord
to connect to native player/recorder.

Bug: 23899814
Change-Id: I7df7a687fbd56a34c1f5769ffe005eba2a059505
2016-01-15 15:59:37 -07:00
Jonathan Basseri
ab5acff9c7 Un-hide carrier config keys.
CarrierConfigManager is not meant to have hidden keys, but some were
needed after API 23 freeze. So add them to API 24.

Change-Id: Ibf25cd3c779bf90ccf1b113445b823707bfb918e
2016-01-15 14:51:57 -08:00
Yohei Yukawa
ccc2e0d9df Merge "Replace Locale with LocaleList in LocaleSpan." 2016-01-15 21:46:36 +00:00
Yohei Yukawa
c38b519539 Replace Locale with LocaleList in LocaleSpan.
This is a straightforward upgrading of LocaleSpan.

LocaleSpan was designed to be a mechanism to override text locale only
in a certain substring.  Since now text locale supports multiple locales
with LocaleList, it should make sense to let LocaleSpan have the ability
to have multiple locales with LocaleList.

This CL also addresses an existing issue that LocaleSpan maintained only
Language/Country/Variant tags.  Now Locale data associated with a
LocaleSpan is guaranteed to be preserved as long as each of them can be
created from a BCP 47 language tag with Locale#forLanguageTag(String).

Bug: 26567158
Change-Id: Ib754796d399cd00f9d02005df88874a5cd5c7642
2016-01-15 13:14:03 -08:00
Rubin Xu
75431fbe36 Add JNI bridge to the new logd security buffer.
Bug: 26127031
Bug: 22860162
Change-Id: I14e08850ece7d9c0229b7213ee2e25cd089defc1
2016-01-15 17:18:49 +00:00
Julia Reynolds
f4fb94ceab Merge changes I1149cb5b,Ib89a17aa
* changes:
  Allow condition providers to specify a rule instance limit.
  Verify zen rule owners before persisting rules.
2016-01-15 16:43:57 +00:00
Julia Reynolds
43b70cdc39 Allow condition providers to specify a rule instance limit.
Bug: 25563007
Change-Id: I1149cb5be59668f8869c81cb46c5ead49aec933a
2016-01-15 10:30:17 -05:00
Benjamin Franz
d5002c1244 Merge "Introduce new intent action to set parent challenge" 2016-01-15 14:04:00 +00:00
Benjamin Franz
c992109885 Introduce new intent action to set parent challenge
Introduce a new intent action that triggers setting of the challenge of
the parent user. The existing intent action is repurposed to always
trigger setting the challenge of the calling user.

Change-Id: Ia7afe268b2de95537bed5bbb57163fd23bb55b6a
2016-01-15 11:39:16 +00:00
Yohei Yukawa
f1fc5a0fe8 Merge changes Ib5ea8131,I571d6cc9
* changes:
  Add a new API IMM#dispatchKeyEventFromInputMethod().
  BaseInputConnection shouldn't rely on @hide APIs.
2016-01-15 01:23:09 +00:00
Andre Eisenbach
2787b33708 Fix OOB pairing related API build breakage
Change-Id: I813eaec0c5e97939998f4a1b26875af222ab4f89
2016-01-15 00:35:00 +00:00
Yohei Yukawa
e36c8078c4 Merge "Introduce SuggestionSpan#getLocaleObject()." 2016-01-14 20:36:53 +00:00
Yohei Yukawa
60fbc8e3bb Introduce SuggestionSpan#getLocaleObject().
This is a series of CLs to promote Java Locale object as a primary data
object to represent locale information in Android APIs.

With this CL, developers can get Locale information from SuggestionSpan
without semantically losing the original data.  Possible use cases would
be:
 - Emoji subtag (CLDR Ticket #9063)
 - Stable and reliable 3-letter country codes handling
 - Custom attributes based on private extensions.

Note that this CL does not change the current behavior of
SuggestionSpan#getLocale() as is, even if it is created with a malformed
Locale object:

  new SuggestionSpan(new Locale(" a ", " b c ", " e"), new String[0], 0)
          .getLocale() -> " a  b c  e".

Bug: 22858221
Change-Id: I96dfd4f819a236ee2e6dbd3e12903d1214223cb0
2016-01-14 12:16:06 -08:00
Robin Lee
b68d2d5b68 Merge "Always-on app VPNs" 2016-01-14 11:37:18 +00:00
Michal Karpinski
3fc437e89b DPM changes to support remote bugreports
Bug: 22860136
Change-Id: If984318e421f511d9b0fc7138aacd36d5334698f
2016-01-14 11:00:22 +00:00
Yohei Yukawa
c89e22a6ff Introdude IC#deleteSurroundingTextInCodePoints().
This CL introduces a API variant of IC#deleteSurroundingText(), named
IC#deleteSurroundingTextInCodePoints().  Major differences from
the existing one are:
  - The lengths are supplied in code points rather than code units.
  - This API does nothing if there are one or more invalid surrogate
    pairs in the requested range.  (Failure Atomicity)

Note that due to the asynchronous nature of the input method
architecture in Android, implementing the same logic in the input method
side basically ends up with unreliable and unpredictable results.

Bug: 6526420
Change-Id: I7f6a2c5d3d52079ae71623fd5e40d60c688dd5fb
2016-01-13 22:48:14 -08:00
Daichi Hirono
cc1251b9b2 Merge "Change offset and size arguments of MtpDevice#getPartialObject to Java long." 2016-01-14 02:28:45 +00:00
Daichi Hirono
2dd48256e9 Change offset and size arguments of MtpDevice#getPartialObject to Java
long.

To represents full range of 32-bit unsigned integer, we should use
jlong instead of jint.

BUG=26284424

Change-Id: Id3fa9e3daa778c204ab8e38f821d454c709c317a
2016-01-14 09:42:59 +09:00
Makoto Onuki
9bd64e2b88 Merge "API for blocked number provider" 2016-01-13 23:51:35 +00:00