230693 Commits

Author SHA1 Message Date
Ben Gruver
87904e83f9 Specify the time units for waitForActivityWithTimeout
Change-Id: I21bf943e03d1f85094af5e7579fefb27f302f16c
2016-01-22 13:11:11 -08:00
Andres Morales
06f5bc70a6 expose hwui frame stats through FrameStatsObserver
Change-Id: I88884bafc8e2f6d7f67a36d3609490e83cf8afd5
2016-01-22 12:58:51 -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
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
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
Vladislav Kaznacheev
ba761124e6 Change mouse pointer when drag and drop is active
Mouse pointer is set to STYLE_GRAB when the drag has started and
reset to STYLE_DEFAULT when the drag has ended.

Resetting the pointer shape to the one defined by an underlying
view will be handled in a separate patch.

Bug: 24415739
Change-Id: I8df0a08c5701a34a48f10ec6b43c2cf2e6362d61
2016-01-22 12:09:45 -08: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
Rubin Xu
58d2599832 Show dialog when launching work apps is not possible.
There are two cases when this could happen. First is when the work
profile is turned off by the user, and the second is when the profile
owner has suspened the package.

Bug: 22776761
Bug: 22541941
Change-Id: Ibc671e93f87dff0168bb7643494b9d6b45a1a7f9
2016-01-22 19:53:01 +00: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
Deepanshu Gupta
4f3d0c6caa Remove GregorianCalendar hack
Bug: http://b.android.com/199424
Change-Id: I589d153e1f57b6302c6fe3c031c5c63e33ad9996
2016-01-22 11:33:53 -08: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
Winson Chung
1fedd8c8c9 Merge "Fixing crash with retrieving the first stack task." 2016-01-22 17:58:58 +00:00
Xiaohui Chen
8c24cc13b8 Merge "sysui: refactor PhoneStatusBar" 2016-01-22 17:47:19 +00:00
Winson
35a8b04140 Fixing crash with retrieving the first stack task.
- We should be retrieving the first stack task for calculating the 
  thumbnail transition, regardless of whether it is freeform or not.

Bug: 26739531
Change-Id: I27037a480201396011d7f9b8d094b4d9afe66f0e
2016-01-22 09:41:09 -08:00
John Reck
bd41ded590 Fix accidental activateTexture(0)
Bug: 26584230

activateTexture(0) was accidentally refactored into
Texture::upload. Only OffscreenBuffer intended for the
texture unit to change

Change-Id: I5dbfc3eab8843733084ce1ce38a0a946abf0e05b
2016-01-22 09:31:28 -08:00
John Reck
1f42e989c9 Merge "ALOGE is not ALOGV" 2016-01-22 17:22:28 +00:00