230488 Commits

Author SHA1 Message Date
Suprabh Shukla
731bf243ee Merge "Minor fixes" 2016-01-22 22:43:38 +00:00
Thierry Strudel
38622c3055 Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793 am: e8b476e8e8
am: afbf1570ac

* commit 'afbf1570acfac5dfc28196c3f4b424fdaef85508':
  Don't assume kernel tick is 100Hz
2016-01-22 22:35:05 +00:00
Chris Wren
ab98ee87b8 Merge "implement onNotificationEnqueued callback" 2016-01-22 22:32:55 +00:00
Thierry Strudel
afbf1570ac Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev am: 0064c4c793
am: e8b476e8e8

* commit 'e8b476e8e81ee8bc4fe70fbc78db2f496b2aa023':
  Don't assume kernel tick is 100Hz
2016-01-22 22:28:41 +00:00
Thierry Strudel
e8b476e8e8 Merge "Don\'t assume kernel tick is 100Hz" into mnc-dr1.5-dev
am: 0064c4c793

* commit '0064c4c79341bcb47bcb5b9ff568871f34f1dc63':
  Don't assume kernel tick is 100Hz
2016-01-22 22:20:30 +00:00
Adam Lesinski
ac7c606c90 Merge "AAPT2: Allow specifying non-final IDS when building 'legacy' style libraries" 2016-01-22 22:12:01 +00:00
Adam Lesinski
ef9c50120d AAPT2: Allow specifying non-final IDS when building 'legacy' style libraries
Real libraries will be built correctly, but since we are not doing that
yet, support the old way and allow a flag --non-final-ids to remove
the final modifier from R.java.

Change-Id: Iad55fb9140e55dbb0f41d0d55f2e2bd958294c8e
2016-01-22 14:09:53 -08:00
Thierry Strudel
0064c4c793 Merge "Don't assume kernel tick is 100Hz" into mnc-dr1.5-dev 2016-01-22 22:07:32 +00:00
Amith Yamasani
9b4716b531 Check apps idle states on time changes am: c465e71cdc am: d4bd4cb4b1
am: 375901244c

* commit '375901244c051d85a63d7ca83807e5f1ca7a5d0a':
  Check apps idle states on time changes
2016-01-22 21:49:37 +00:00
Ben Gruver
1ed9046617 Merge "Specify the time units for waitForActivityWithTimeout" 2016-01-22 21:27:44 +00:00
Ben Gruver
87904e83f9 Specify the time units for waitForActivityWithTimeout
Change-Id: I21bf943e03d1f85094af5e7579fefb27f302f16c
2016-01-22 13:11:11 -08:00
Amith Yamasani
375901244c Check apps idle states on time changes am: c465e71cdc
am: d4bd4cb4b1

* commit 'd4bd4cb4b1faa8663cc8dde4d9bab15a9ec764d3':
  Check apps idle states on time changes
2016-01-22 20:58:46 +00:00
Ruben Brunk
cda00b15d2 Merge "Log important VrManagerService lifecycle events." 2016-01-22 20:55:10 +00:00
Amith Yamasani
d4bd4cb4b1 Check apps idle states on time changes
am: c465e71cdc

* commit 'c465e71cdc401e1565c29a895a5c6d366ba5344c':
  Check apps idle states on time changes
2016-01-22 20:51:34 +00:00
Ruben Brunk
87112f73f0 Log important VrManagerService lifecycle events.
- Events are rare, and user triggered, so will not
  cause logcat spamming.

Change-Id: I2bdf29b0ca7d86ab64e9a20ee018e3f9e8eb1e5d
2016-01-22 12:48:26 -08:00
Ben Kwa
3900e4c9a0 Merge "Show empty file cabinet for no search results." 2016-01-22 20:44:40 +00:00
Michael Wright
1262dc0390 Merge "Switch and store keyboard layouts based on IME subtype." 2016-01-22 20:18:29 +00:00
Chris Wren
4763342533 implement onNotificationEnqueued callback
Bug: 22455414
Change-Id: I9dafc7b8cbf0268b28d9e9fb0cae9c3b451be52c
2016-01-22 15:10:37 -05:00
Filip Gruszczynski
fea5aa3bf3 Merge "Fix minor logging issues in WindowSurfacePlacer." 2016-01-22 20:05:08 +00:00
Tor Norbye
df8373389d Merge "Specify a maximum value for View.MeasureSpec.makeMeasureSpec" 2016-01-22 20:00:16 +00:00
Steve McKay
9ed88a4da7 Show empty file cabinet for no search results.
And for empty directory.

Magic-submit? Yes please!

Change-Id: If9e1f8ab48eebd9c275ad043da728e28b850ab73
2016-01-22 11:59:16 -08:00
Julia Reynolds
5971d553b5 Merge "Inline settings color changes." 2016-01-22 19:47:37 +00:00
Felipe Leme
beda539051 Merge "Updates notification while bugreport zip is being changed." 2016-01-22 19:46:38 +00:00
Filip Gruszczynski
501e55a055 Merge "Fix thumbnail header animation to follow the app window." 2016-01-22 19:43:54 +00:00
Alan Viverette
7dfd9e4cd6 Merge "Verify results of methods called during child ordering" 2016-01-22 19:43:18 +00:00
Julia Reynolds
7727ad23b2 Inline settings color changes.
Bug: 26486314
Change-Id: I8c842081e544b05c6d88e99361426052c216d8f7
2016-01-22 14:38:46 -05:00
Felipe Leme
30a70d1cbb Merge "Initial implementation of onShellCommand()." 2016-01-22 19:37:53 +00:00
Makoto Onuki
4e91b3432f Merge "Disable log" 2016-01-22 19:37:09 +00:00
Felipe Leme
50a235e6c9 Initial implementation of onShellCommand().
Only the commands related to restrict background whitelisting were
initially added, so they can be used in the CTS test for the new APIs.

BUG: 26451391
Change-Id: I5479073d85c44b99368497448f1f8e36cd99e63c
2016-01-22 19:29:26 +00:00
Amith Yamasani
c465e71cdc Check apps idle states on time changes
And ensure that the listeners are informed of app standby transitions
that might occur during time changes.

Fix for apps that sometimes don't have network access until reboot.

Bug: 26488100
Change-Id: Ic342c188a6cd19faee88f50b2c6a342a6968cb23
2016-01-22 11:27:16 -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
Filip Gruszczynski
ce4ec406ac Fix minor logging issues in WindowSurfacePlacer.
Change-Id: If4ed3c36004cc8932db92adee74ab349ec2d95c4
2016-01-22 11:22:47 -08:00
Makoto Onuki
81c61eabba Disable log
Change-Id: I373e3f7e31dc697bd5f62d226e2a0e3e7a4aeffd
2016-01-22 11:22:26 -08:00
John Reck
541b193fc4 Merge "Fix mismatch in assumed defaults vs. actual defaults" 2016-01-22 19:18:54 +00:00
John Reck
a5b2029e1b Merge "Fix accidental activateTexture(0)" 2016-01-22 19:18:43 +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
Filip Gruszczynski
565a9dfcc0 Fix thumbnail header animation to follow the app window.
Bug: 25822325
Change-Id: I14c4d877d493cd4fc9397b551099990c31fd471e
2016-01-22 11:10:42 -08:00
John Reck
48247a2956 Fix mismatch in assumed defaults vs. actual defaults
Bug: 26584230
Change-Id: Ia0271b097a40123c18f6b3540c1168cba109b5ce
2016-01-22 11:10:32 -08:00
Tim Volodine
6f2f360610 Merge "Add Service Worker settings and callback support in WebView." 2016-01-22 19:09:24 +00:00
Gustav Sennton
444280d228 Merge "Fetch WebView package even if it is uninstalled for the current user." 2016-01-22 19:00:37 +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
David Gross
1db8ba1b54 Merge "Add general reduction plumbing starting with Java Script::reduce()." am: fca558c549
am: ce9c9b7bce

* commit 'ce9c9b7bce5944a13c60e82c9480654d9cc58737':
  Add general reduction plumbing starting with Java Script::reduce().
2016-01-22 18:52:21 +00:00
Lorenzo Colitti
4ed030384c Merge "Debug logging for when getActiveNetworkInfo returns BLOCKED." into mnc-dr1.5-dev am: a6855a1faa am: d841d71593
am: af0c4d0c7e

* commit 'af0c4d0c7e680208075bea7b4b2df4d39ffc82f7':
  Debug logging for when getActiveNetworkInfo returns BLOCKED.
2016-01-22 18:50:49 +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
Bryce Lee
886a005ae3 Merge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into cw-e-dev am: 2e7ecddd5b -s ours am: 746ea1efe3 -s ours am: b2f0e7f6bc -s ours
am: c248f6c7ad  -s ours

* commit 'c248f6c7ad8ce315cb71a8b282371a0ddaf29abc':
  DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall.
2016-01-22 18:49:04 +00:00
Robert Greenwalt
9dbd85d875 Merge "Add free short codes for Direct Carrier Billing and others." am: 4d9ffdf952
am: bd92c57a4f

* commit 'bd92c57a4f74c5c6ea3b6e20964a5e7950a1f7e1':
  Add free short codes for Direct Carrier Billing and others.
2016-01-22 18:47:17 +00:00
Fyodor Kupolov
aae84105d1 Merge "Use SystemService lifecycle API in input method service" 2016-01-22 18:21:15 +00:00
Roozbeh Pournader
2e98a11055 Merge "Set the default locale list when it is changed." 2016-01-22 18:15:00 +00:00
Seigo Nonaka
cada57a57b Set the default locale list when it is changed.
When the system language is changed by the Settings app, we need to call
LocaleList.setDefault() to change the default locale list
since components like TextView should be able to assume that
LocaleList.getDefault() returns the latest system locale list.

BUG: 26731035
Change-Id: I482567476e1b14cd9b4716343183627f81d96ace
2016-01-22 18:13:23 +00:00