12132 Commits

Author SHA1 Message Date
Martijn Coenen
9ef46c26f1 Add new APIs to test-current.txt
Change-Id: I187fe73c9ce47e4f4ed74c1be8ce70cf66bd52cc
2016-01-25 11:33:52 +01:00
Martijn Coenen
f82ab8bea4 Merge "Implementation of HCE for NFC-F." am: e168012ff2
am: cf2f9d0966

* commit 'cf2f9d0966af01eb269b9ce6f2d08870647dd22f':
  Implementation of HCE for NFC-F.
2016-01-25 10:00:32 +00:00
Martijn Coenen
e168012ff2 Merge "Implementation of HCE for NFC-F." 2016-01-25 09:48:43 +00:00
Daichi Hirono
7ed413524b Merge "Add eventsSupported property to MtpDeviceInfo." 2016-01-25 01:59:27 +00:00
Daichi Hirono
148954a657 Add eventsSupported property to MtpDeviceInfo.
The property provides the set of event code that are supported by
MtpDevice.

BUG=26147375

Change-Id: I54be75e4bb52ddfe9aba8630538ddd32d1a641c8
2016-01-25 10:47:01 +09:00
Tomasz Mikolajewski
c46d891170 Merge "Make ACTION_QUICK_VIEW public." 2016-01-25 01:04:02 +00:00
Zhijun He
aa40596889 Merge "Camera2: add surface set ID" 2016-01-24 17:42:43 +00:00
Amith Yamasani
0af6fa7015 Voice Interaction from within an Activity
This allows an app to show a voice search button
and invoke a voice interaction session for use
within the activity. Once the activity exits, the
session is stopped.

Test application has a new activity that
demonstrates it with the test voice interaction
service.

This initial version is functional enough for
an integration test, with some more tests
and improvements to come later.

Bug: 22791070
Change-Id: Ib1e5bc8cae1fde40570c999b9cf4bb29efe4916d
2016-01-23 21:25:50 -08:00
Yin-Chia Yeh
74fc02bf79 Merge "Camera: add post RAW sensitivity keys" 2016-01-23 23:05:03 +00:00
Sailesh Nepal
9c4b82cf95 Merge "Make missed call action public" 2016-01-23 18:28:31 +00:00
Sailesh Nepal
be15ad9b79 Make missed call action public
This CL makes the missed call notification action public. This will be
used by the dialer app to show it's own missed call UI.

See ag/850080 for more info.

BUG: 22857261

Change-Id: Ifae82d3036a278e5619edc8c766a1d0781296e72
2016-01-22 17:33:55 -08:00
Yin-Chia Yeh
1ee1a0ae60 Camera: add post RAW sensitivity keys
Codegen change.

Bug: 26625646
Change-Id: I1b84fa5545db73002640d03fa6b9786986a3afdf
2016-01-22 15:31:55 -08:00
Chris Tate
6e3f354583 Merge "Expanded wallpaper APIs for keyguard and change detection" 2016-01-22 23:24:54 +00:00
Selim Gurun
c20ba757cb Merge "Provide a way to supply different algorithms for token binding key" 2016-01-22 22:52:51 +00:00
Selim Gurun
57a8d2ae31 Provide a way to supply different algorithms for token binding key
Bug: 22665752

The user of the API can provide different algorithms for key generation.
The API should also provide information about which algorithm is
used for generating the key.

Change-Id: I1d671ba351ca495b031b159132f33291a4f33aac
2016-01-22 14:50:42 -08:00
Christopher Tate
ad3c2592a0 Expanded wallpaper APIs for keyguard and change detection
* There is a nonzero integer ID associated with the currently-set
  wallpaper image, and this changes every time any caller sets
  the wallpaper.  This is to support external change detection.

* The API now permits a caller to independently set imagery as
  the new general system wallpaper or keyguard-specific wallpaper.
  The backing implementation is not yet plumbed through, but the
  API is now in place for clients to safely write code against.

Bug 25454501
Bug 25454162

Change-Id: I4934f102d5630485bf2870d83664145ae68a3695
2016-01-22 12:45:42 -08:00
Felipe Leme
3e71e80e36 Merge "Created new public API so applications can customize its metered network usage while running in background." 2016-01-22 19:26:06 +00:00
Felipe Leme
21f255dea9 Merge "Created a new API to grant scoped directory access to applications." 2016-01-22 19:13:10 +00:00
Felipe Leme
c7b1f89e9e Created a new API to grant scoped directory access to applications.
The Storage Access Framework currently provides an
API (OPEN_DOCUMENT_TREE) that lets the user pick a directory to be used
by the application. Although this APIs is very powerful (for example, it
allows the user to create sub-directories, delete and share files,
etc...), it's too complex for simpler use cases like a camera
application trying to have access to the standard Pictures directory.

The new API (OPEN_EXTERNAL_DIRECTORY) simplifies this scenario by
letting the application select a standard, pre-defined directory (as
defined by android.os.Environment). The user still needs to grant access
to the requested directory, but the resulting UI will be simpler and
more straightforward.

Usage example:

  // ...
  int requestCode = 42;
  Intent intent = new Intent(Intent.ACTION_OPEN_EXTERNAL_DIRECTORY);
  intent.setData(Uri.fromFile(
    new File(Environment.getExternalStorageDirectory(),
             Environment.DIRECTORY_PICTURES)));
  startActivityForResult(intent, requestCode);
  // ...

  @Override
  public void onActivityResult(int requestCode, int resultCode, Intent data) {
    if (resultCode != Activity.RESULT_OK) {
      return;
    }
    Uri uri = data.getData();
    int modeFlags = data.getFlags()
        & (Intent.FLAG_GRANT_READ_URI_PERMISSION
        | Intent.FLAG_GRANT_WRITE_URI_PERMISSION);
    getContentResolver().takePersistableUriPermission(uri, modeFlags);
  }

BUG: 23011462
Change-Id: Ie832026532f74e681ef220b761667eb66ff3c8b0
2016-01-22 10:59:29 -08:00
Tim Volodine
28c8356441 Add Service Worker settings and callback support in WebView.
Service Workers are not tied to WebView instances so currently
there is no mechanism to capture callbacks originating from
within Service Workers.

This patch adds the necessary classes to capture callbacks
and allows to set settings specifically for Service Workers.

The main idea is that to control service workers the embedding
app would obtain an instance of ServiceWorkerController using
ServiceWorkerController.getInstance() first. After that it would
be able to set a custom ServiceWorkerClient and change
ServiceWorkerWebSettings via the controller object.

BUG: 22709088
Change-Id: I0eb17be46b767851676b77a94757771611fa3a1b
2016-01-22 18:55:39 +00:00
Felipe Leme
1b103238b9 Created new public API so applications can customize its metered network
usage while running in background.

The new API is 'int getRestrictBackgroundStatus()' and returns the
following values:

 - RESTRICT_BACKGROUND_STATUS_DISABLED: no restrictions
 - RESTRICT_BACKGROUND_STATUS_WHITELISTED: restriction but app is
   whitelisted
 - RESTRICT_BACKGROUND_STATUS_ENABLED: full restriction

The proper way to interprete these values for using metered networks
while running on background is:

 - When disabled, there is no restriction and the application could use the
   metered networks freely.

 - When whitelisted, the application can use the metered network, but should try
   to minimize the usage.

 - When enabled, the application should not try to use metered networks at
   all, since the usage will be denied.

BUG: 26451391
Change-Id: If07d42bb88e4c02802df0234861f38aef2cfead7
2016-01-22 10:50:11 -08:00
Benjamin Franz
947f3557a5 Merge "Add profile policy to set work challenge background color" 2016-01-22 12:59:24 +00:00
Benjamin Franz
59720bb2a6 Add profile policy to set work challenge background color
Adding a policy for profile owners to set the background color of the
confirm credential screen for the managed profile.

Bug: 26638631

Change-Id: Iea36b94c5a42b6ae12cc36921ec5f840306e81a1
2016-01-22 12:32:10 +00:00
Przemyslaw Szczepaniak
eb6c023710 Merge "Fix incorrect @hide usage in libcore" 2016-01-22 12:22:39 +00:00
Sergey Poromov
507e2c94a3 Merge "Add BackupManager#isAppEligibleForBackup() method to Backup API." 2016-01-22 12:01:16 +00:00
Przemyslaw Szczepaniak
a0dda9ca9d Fix incorrect @hide usage in libcore
@hide annotation is only effective in Javadoc.

Bug: 26689841
Change-Id: Ifc0a1358b64518a40b4334061ef8ca0dd23ea28e
2016-01-22 11:40:06 +00:00
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
Yoshinobu Ito
c52adfe124 Implementation of HCE for NFC-F.
This impementation includes HCE(Host-based Card Emulation) for NFC-F
which emulates NFC Forum Type 3 Tag on a smartphone.

Signed-off-by: Daisuke Ito <DaisukeE.Ito@jp.sony.com>
               Yoshinobu Ito <Yoshinobu.Ito@jp.sony.com>

Change-Id: I1618a7fba801e0705ff3cc078206a1446b3dd56d
2016-01-22 18:14:18 +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
Sergey Poromov
9448196076 Add BackupManager#isAppEligibleForBackup() method to Backup API.
Check is done only in framework.
Transport still can deny backup for the package.

Bug: 26443192
Change-Id: Ifcde67a4d11725aa4b15ab4f57d740f55ab2b265
2016-01-21 22:41:39 +01:00
Makoto Onuki
e5fea6fad1 Merge "SUW shouldn't use hidden APIs." 2016-01-21 21:36:45 +00: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
Kenny Guy
8c32981f12 Merge "Update PackageMonitor and LauncherApps for suspended apps." 2016-01-21 19:04:20 +00:00
Sergey Poromov
d3665f1f0f Merge "Introduce BackupManager#requestBackup & BackupObserver API" 2016-01-21 18:55:28 +00:00
Phil Weaver
1f2225486d Pass drawing order information to accessibility.
Bug: 22721935
Change-Id: I45a2be7c174c8b5a469b68a45dec0eb536825d92
2016-01-21 10:35:26 -08:00
Sergey Poromov
fe06bf64d2 Introduce BackupManager#requestBackup & BackupObserver API
Introduces a way to request immediate backup for list of packages
and receive callbacks on backup progress.

Bug: 25688526
Change-Id: Ib826933d44f4ebf2b981f8be366215b2d37847e2
2016-01-21 19:15:33 +01: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
Selim Gurun
223531d88a Merge "Add the system apis for token binding" 2016-01-21 00:42:44 +00:00
Ronghua Wu
66d96977bd Merge "media: Add MIMETYPE_VIDEO_DOLBY_VISION." 2016-01-21 00:42:23 +00:00
Selim Gurun
a5171370f2 Add the system apis for token binding
Bug: 22665752

Token binding protocol is the next generation channel-ID protocol,
currently it is a draft in IETF
 https://tools.ietf.org/html/draft-ietf-tokbind-protocol-03

Add the api as a system api (will be public once the draft finalizes)

Change-Id: If971cc7e6d14f15c778b9b027df9fc48dac0160c
2016-01-20 14:26:46 -08:00
Sandra Kwan
390c9d2d91 AccountManager: add isCredentialsUpdateSuggested API.
Change-Id: I27e0db0345f3431b796a944740dab767b45f7871
2016-01-20 13:58:49 -08:00
Jeremy Klein
94e95746db Merge "Expose WifiAp methods as @SystemApi." 2016-01-20 19:27:14 +00:00
Jeremy Klein
b625377b1a Expose WifiAp methods as @SystemApi.
GTS tests to follow shortly.

BUG: 22406002
Change-Id: I42883fa5e35a11b4b2d734f07b7d72f2ac0ec1f8
2016-01-20 11:17:53 -08:00