2464 Commits

Author SHA1 Message Date
Narayan Kamath
ac044909f5 Merge "Revert "Cellinfo: Update to version 12"" into mm-wireless-dev
am: c980eca638

* commit 'c980eca638e549be342f99ba2bd6f27ada184736':
  Revert "Cellinfo: Update to version 12"
2016-01-26 09:49:20 +00:00
Narayan Kamath
c980eca638 Merge "Revert "Cellinfo: Update to version 12"" into mm-wireless-dev 2016-01-26 09:46:14 +00:00
Narayan Kamath
d44d16f700 Revert "Cellinfo: Update to version 12"
This reverts commit aa2be45a560b37c5249600667ee36a9f156515c2.

Change-Id: I5cc76b15b311e47bc5a892704930d218c9f72b0d
2016-01-26 09:44:54 +00:00
Tomasz Mikolajewski
165e2849ff Unhide DocumentsContract.copyDocument and moveDocument.
Change-Id: I304e4219ac679b9da88d785529f946dac058bbff
2016-01-26 08:06:46 +00:00
Jae Seo
533b345682 TIF: Make TvInputService.onCreateRecordingSession a non-abstract method
Change-Id: I1ecf5d2f66825fa9e87fd743d9d293d8bd395fce
2016-01-25 20:34:12 -08:00
Jeremy Klein
0301cd9523 Merge "Expose a simple tethering API which includes provision checks." 2016-01-26 03:59:51 +00:00
Jae Seo
9df90a5ab6 Merge "TIF: Recording API" 2016-01-26 01:39:05 +00:00
Jeremy Klein
36c7aa0325 Expose a simple tethering API which includes provision checks.
This CL exposes startTethering and stopTethering functions which also
encapsulate all provisioning check logic. Right now, only silent checks
are implemented, but UI checks will come in a follow-up CL. GTS tests
and Settings changes are under the same topic ID.

BUG: 26247383
Change-Id: I65f61d899594cb3f9035d8496366af17a57a090f
2016-01-25 16:37:09 -08:00
Jae Seo
a826d0172a TIF: Recording API
Bug: 23786643
Change-Id: Ie26e8944312048bc865b4506aa49fced15360fe4
2016-01-25 16:30:51 -08:00
Sanket Padawe
3ea9b72a8e Merge "Cellinfo: Update to version 12" into mm-wireless-dev
am: 480bd2b97a

* commit '480bd2b97a46628f36fee606a2b63248aa75dd8a':
  Cellinfo: Update to version 12
2016-01-25 23:58:15 +00:00
Sanket Padawe
480bd2b97a Merge "Cellinfo: Update to version 12" into mm-wireless-dev 2016-01-25 23:54:37 +00:00
Ashutosh Joshi
deee720a52 Merge "Adding a sensor for device pose with six degrees of freedom" 2016-01-25 23:46:07 +00:00
David Gross
407a385b7b Merge "Unhide Script::reduce() interface for general reduction." 2016-01-25 23:45:14 +00:00
Ashutosh Joshi
17efe02a05 Adding a sensor for device pose with six degrees of freedom
Adding a sensor type that returns the device pose as a -
    . quaternion representing rotation from a vector due north
      and zero pitch and roll &&
    . a translation from an initial position

Change-Id: I8764b8c0b9a2518632f75c7a19c203836dd04b1a
2016-01-25 23:02:38 +00:00
Sanket Padawe
aa2be45a56 Cellinfo: Update to version 12
Add support for:
GSM: arfcn, bsic, ta
WCDMA: uarfcn
LTE: earfcn
Updated public APIs for getting above fields.

Bug: 23528586

Change-Id: I538a9f392550716d8a9a90e01fc88bc082ef7b81
2016-01-25 14:14:30 -08:00
Philipp Weiß
28950ae525 Merge "Make API createAndManageUser public" 2016-01-25 21:39:27 +00:00
phweiss
a92e1216ca Make API createAndManageUser public
Remove @hide, and add parameter for specifying profile owner. The PO
has to live in the same package as the device owner.

Bug: 25288732
Bug: 25860170
Change-Id: I40e8984a71ee9d1ff74e57d4e79e298deef9bc35
2016-01-25 22:33:52 +01:00
Felipe Leme
2216d824f6 Merge "Fixed RestrictBackgroundStatus signature by adding @hide." 2016-01-25 21:06:49 +00:00
Dianne Hackborn
bfb94e21d3 Merge "Add and implement JobScheduler content observer APIs." 2016-01-25 20:34:41 +00:00
David Gross
ba038689b1 Unhide Script::reduce() interface for general reduction.
Bug: 23535724

Change-Id: I7a43622954de9f4168f7e4376f39d6ec54191c03
2016-01-25 12:17:29 -08:00
Felipe Leme
ecfcceaecb Fixed RestrictBackgroundStatus signature by adding @hide.
BUG: 26082535
Change-Id: I2e4b63327a8f791db01ee0c1ab090557170857fa
2016-01-25 12:09:03 -08:00
Mitchell Wills
12eef9f18a Updates for gscan HAL updates in N
am: c90855d7a9

* commit 'c90855d7a9f3ebd300de4dad9842cd6771ff27d1':
  Updates for gscan HAL updates in N
2016-01-25 19:12:55 +00:00
Sandra Kwan
0b84b456a7 AccountManager: add finishSessionAsUser api.
Change-Id: I9a08d957a9b25be4c6cf12e4ed35cdc0bfbb8605
2016-01-25 10:09:20 -08:00
Rubin Xu
795c458c89 Merge "Turn off profile by stopping the user." 2016-01-25 17:33:43 +00:00
Felipe Leme
0f9f67132c Merge "Fixed javadoc so @hide annotations don't show up in the API." 2016-01-25 17:13:51 +00:00
Rubin Xu
f13c980169 Turn off profile by stopping the user.
Bug: 22541941
Change-Id: I713ab9b87f3dd1b7bd6206af137562d20a44d76d
2016-01-25 16:29:29 +00:00
Niels Egberts
c99ba1c3ed API to listen in on the synthesized audio.
Change-Id: Ic943d39a0540f0061ef6f629e4934dc71f69ab6b
2016-01-25 15:20:59 +00: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
Felipe Leme
dc7af96141 Fixed javadoc so @hide annotations don't show up in the API.
BUG: 26082535

Change-Id: Ifb5ddedddc87bc65dc5158286503c64581b5a4f3
2016-01-22 18:48:44 -08:00
Dianne Hackborn
1a30bd9b13 Add and implement JobScheduler content observer APIs.
Allows one to schedule jobs to run when content URIs
change, and find out what changed when the job executes.

This required adding a new API to StateController to
tell it when we are about to start executing a job, so
we can transfer the currently collected changes out of
its internal state to fill it in to the JobParameters.

Also some additional dumpsys debug output to help
understand what is going on in the job scheduler.

Change-Id: I91f51b226ff4add7a271a8333beffa5e86c7bf18
2016-01-22 18:25:02 -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