OSDN Git Service

android-x86/frameworks-base.git
8 years agoCheck apps idle states on time changes am: c465e71cdc am: d4bd4cb4b1
Amith Yamasani [Fri, 22 Jan 2016 21:49:37 +0000 (21:49 +0000)]
Check apps idle states on time changes am: c465e71cdc am: d4bd4cb4b1
am: 375901244c

* commit '375901244c051d85a63d7ca83807e5f1ca7a5d0a':
  Check apps idle states on time changes

8 years agoMerge "Specify the time units for waitForActivityWithTimeout"
Ben Gruver [Fri, 22 Jan 2016 21:27:44 +0000 (21:27 +0000)]
Merge "Specify the time units for waitForActivityWithTimeout"

8 years agoSpecify the time units for waitForActivityWithTimeout
Ben Gruver [Fri, 22 Jan 2016 21:11:11 +0000 (13:11 -0800)]
Specify the time units for waitForActivityWithTimeout

Change-Id: I21bf943e03d1f85094af5e7579fefb27f302f16c

8 years agoCheck apps idle states on time changes am: c465e71cdc
Amith Yamasani [Fri, 22 Jan 2016 20:58:46 +0000 (20:58 +0000)]
Check apps idle states on time changes am: c465e71cdc
am: d4bd4cb4b1

* commit 'd4bd4cb4b1faa8663cc8dde4d9bab15a9ec764d3':
  Check apps idle states on time changes

8 years agoMerge "Log important VrManagerService lifecycle events."
Ruben Brunk [Fri, 22 Jan 2016 20:55:10 +0000 (20:55 +0000)]
Merge "Log important VrManagerService lifecycle events."

8 years agoCheck apps idle states on time changes
Amith Yamasani [Fri, 22 Jan 2016 20:51:34 +0000 (20:51 +0000)]
Check apps idle states on time changes
am: c465e71cdc

* commit 'c465e71cdc401e1565c29a895a5c6d366ba5344c':
  Check apps idle states on time changes

8 years agoLog important VrManagerService lifecycle events.
Ruben Brunk [Fri, 22 Jan 2016 20:48:26 +0000 (12:48 -0800)]
Log important VrManagerService lifecycle events.

- Events are rare, and user triggered, so will not
  cause logcat spamming.

Change-Id: I2bdf29b0ca7d86ab64e9a20ee018e3f9e8eb1e5d

8 years agoMerge "Show empty file cabinet for no search results."
Ben Kwa [Fri, 22 Jan 2016 20:44:40 +0000 (20:44 +0000)]
Merge "Show empty file cabinet for no search results."

8 years agoMerge "Switch and store keyboard layouts based on IME subtype."
Michael Wright [Fri, 22 Jan 2016 20:18:29 +0000 (20:18 +0000)]
Merge "Switch and store keyboard layouts based on IME subtype."

8 years agoMerge "Fix minor logging issues in WindowSurfacePlacer."
Filip Gruszczynski [Fri, 22 Jan 2016 20:05:08 +0000 (20:05 +0000)]
Merge "Fix minor logging issues in WindowSurfacePlacer."

8 years agoMerge "Specify a maximum value for View.MeasureSpec.makeMeasureSpec"
Tor Norbye [Fri, 22 Jan 2016 20:00:16 +0000 (20:00 +0000)]
Merge "Specify a maximum value for View.MeasureSpec.makeMeasureSpec"

8 years agoShow empty file cabinet for no search results.
Steve McKay [Fri, 22 Jan 2016 02:46:15 +0000 (18:46 -0800)]
Show empty file cabinet for no search results.

And for empty directory.

Magic-submit? Yes please!

Change-Id: If9e1f8ab48eebd9c275ad043da728e28b850ab73

8 years agoMerge "Inline settings color changes."
Julia Reynolds [Fri, 22 Jan 2016 19:47:37 +0000 (19:47 +0000)]
Merge "Inline settings color changes."

8 years agoMerge "Updates notification while bugreport zip is being changed."
Felipe Leme [Fri, 22 Jan 2016 19:46:38 +0000 (19:46 +0000)]
Merge "Updates notification while bugreport zip is being changed."

8 years agoMerge "Fix thumbnail header animation to follow the app window."
Filip Gruszczynski [Fri, 22 Jan 2016 19:43:54 +0000 (19:43 +0000)]
Merge "Fix thumbnail header animation to follow the app window."

8 years agoMerge "Verify results of methods called during child ordering"
Alan Viverette [Fri, 22 Jan 2016 19:43:18 +0000 (19:43 +0000)]
Merge "Verify results of methods called during child ordering"

8 years agoInline settings color changes.
Julia Reynolds [Fri, 22 Jan 2016 19:38:46 +0000 (14:38 -0500)]
Inline settings color changes.

Bug: 26486314
Change-Id: I8c842081e544b05c6d88e99361426052c216d8f7

8 years agoMerge "Initial implementation of onShellCommand()."
Felipe Leme [Fri, 22 Jan 2016 19:37:53 +0000 (19:37 +0000)]
Merge "Initial implementation of onShellCommand()."

8 years agoMerge "Disable log"
Makoto Onuki [Fri, 22 Jan 2016 19:37:09 +0000 (19:37 +0000)]
Merge "Disable log"

8 years agoInitial implementation of onShellCommand().
Felipe Leme [Sat, 16 Jan 2016 02:37:06 +0000 (18:37 -0800)]
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

8 years agoCheck apps idle states on time changes
Amith Yamasani [Fri, 22 Jan 2016 19:27:16 +0000 (11:27 -0800)]
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

8 years agoMerge "Created new public API so applications can customize its metered network usage...
Felipe Leme [Fri, 22 Jan 2016 19:26:06 +0000 (19:26 +0000)]
Merge "Created new public API so applications can customize its metered network usage while running in background."

8 years agoFix minor logging issues in WindowSurfacePlacer.
Filip Gruszczynski [Fri, 22 Jan 2016 19:22:47 +0000 (11:22 -0800)]
Fix minor logging issues in WindowSurfacePlacer.

Change-Id: If4ed3c36004cc8932db92adee74ab349ec2d95c4

8 years agoDisable log
Makoto Onuki [Fri, 22 Jan 2016 19:22:26 +0000 (11:22 -0800)]
Disable log

Change-Id: I373e3f7e31dc697bd5f62d226e2a0e3e7a4aeffd

8 years agoMerge "Fix mismatch in assumed defaults vs. actual defaults"
John Reck [Fri, 22 Jan 2016 19:18:54 +0000 (19:18 +0000)]
Merge "Fix mismatch in assumed defaults vs. actual defaults"

8 years agoMerge "Fix accidental activateTexture(0)"
John Reck [Fri, 22 Jan 2016 19:18:43 +0000 (19:18 +0000)]
Merge "Fix accidental activateTexture(0)"

8 years agoMerge "Created a new API to grant scoped directory access to applications."
Felipe Leme [Fri, 22 Jan 2016 19:13:10 +0000 (19:13 +0000)]
Merge "Created a new API to grant scoped directory access to applications."

8 years agoFix thumbnail header animation to follow the app window.
Filip Gruszczynski [Fri, 22 Jan 2016 19:10:42 +0000 (11:10 -0800)]
Fix thumbnail header animation to follow the app window.

Bug: 25822325
Change-Id: I14c4d877d493cd4fc9397b551099990c31fd471e

8 years agoFix mismatch in assumed defaults vs. actual defaults
John Reck [Fri, 22 Jan 2016 18:55:32 +0000 (10:55 -0800)]
Fix mismatch in assumed defaults vs. actual defaults

Bug: 26584230
Change-Id: Ia0271b097a40123c18f6b3540c1168cba109b5ce

8 years agoMerge "Add Service Worker settings and callback support in WebView."
Tim Volodine [Fri, 22 Jan 2016 19:09:24 +0000 (19:09 +0000)]
Merge "Add Service Worker settings and callback support in WebView."

8 years agoMerge "Fetch WebView package even if it is uninstalled for the current user."
Gustav Sennton [Fri, 22 Jan 2016 19:00:37 +0000 (19:00 +0000)]
Merge "Fetch WebView package even if it is uninstalled for the current user."

8 years agoCreated a new API to grant scoped directory access to applications.
Felipe Leme [Fri, 15 Jan 2016 23:02:31 +0000 (15:02 -0800)]
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

8 years agoAdd Service Worker settings and callback support in WebView.
Tim Volodine [Wed, 20 Jan 2016 19:23:03 +0000 (19:23 +0000)]
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

8 years agoMerge "Add general reduction plumbing starting with Java Script::reduce()." am: fca55...
David Gross [Fri, 22 Jan 2016 18:52:21 +0000 (18:52 +0000)]
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().

8 years agoMerge "Debug logging for when getActiveNetworkInfo returns BLOCKED." into mnc-dr1...
Lorenzo Colitti [Fri, 22 Jan 2016 18:50:49 +0000 (18:50 +0000)]
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.

8 years agoCreated new public API so applications can customize its metered network
Felipe Leme [Fri, 22 Jan 2016 17:44:57 +0000 (09:44 -0800)]
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

8 years agoMerge "DO NOT MERGE ANYWHERE Improve logging in BluetoothHeadsetClientCall." into...
Bryce Lee [Fri, 22 Jan 2016 18:49:04 +0000 (18:49 +0000)]
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.

8 years agoMerge "Add free short codes for Direct Carrier Billing and others." am: 4d9ffdf952
Robert Greenwalt [Fri, 22 Jan 2016 18:47:17 +0000 (18:47 +0000)]
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.

8 years agoMerge "Use SystemService lifecycle API in input method service"
Fyodor Kupolov [Fri, 22 Jan 2016 18:21:15 +0000 (18:21 +0000)]
Merge "Use SystemService lifecycle API in input method service"

8 years agoMerge "Set the default locale list when it is changed."
Roozbeh Pournader [Fri, 22 Jan 2016 18:15:00 +0000 (18:15 +0000)]
Merge "Set the default locale list when it is changed."

8 years agoSet the default locale list when it is changed.
Seigo Nonaka [Fri, 22 Jan 2016 08:22:11 +0000 (17:22 +0900)]
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

8 years agoMerge "Fixing crash with retrieving the first stack task."
Winson Chung [Fri, 22 Jan 2016 17:58:58 +0000 (17:58 +0000)]
Merge "Fixing crash with retrieving the first stack task."

8 years agoMerge "sysui: refactor PhoneStatusBar"
Xiaohui Chen [Fri, 22 Jan 2016 17:47:19 +0000 (17:47 +0000)]
Merge "sysui: refactor PhoneStatusBar"

8 years agoFixing crash with retrieving the first stack task.
Winson [Fri, 22 Jan 2016 17:41:09 +0000 (09:41 -0800)]
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

8 years agoFix accidental activateTexture(0)
John Reck [Fri, 22 Jan 2016 17:31:28 +0000 (09:31 -0800)]
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

8 years agoMerge "ALOGE is not ALOGV"
John Reck [Fri, 22 Jan 2016 17:22:28 +0000 (17:22 +0000)]
Merge "ALOGE is not ALOGV"

8 years agoALOGE is not ALOGV
John Reck [Fri, 22 Jan 2016 17:17:41 +0000 (09:17 -0800)]
ALOGE is not ALOGV

Change-Id: I973cd7ce28bed38934aab0818e581a948a12cb42

8 years agoMerge "Add general reduction plumbing starting with Java Script::reduce()."
David Gross [Fri, 22 Jan 2016 17:07:59 +0000 (17:07 +0000)]
Merge "Add general reduction plumbing starting with Java Script::reduce()."
am: fca558c549

* commit 'fca558c5490e319448ce69d1f526f5a446bb3045':
  Add general reduction plumbing starting with Java Script::reduce().

8 years agoMerge "Add general reduction plumbing starting with Java Script::reduce()."
David Gross [Fri, 22 Jan 2016 17:00:43 +0000 (17:00 +0000)]
Merge "Add general reduction plumbing starting with Java Script::reduce()."

8 years agoMerge "Fix home button"
Jason Monk [Fri, 22 Jan 2016 15:24:41 +0000 (15:24 +0000)]
Merge "Fix home button"

8 years agoFix home button
Jason Monk [Fri, 22 Jan 2016 15:23:51 +0000 (10:23 -0500)]
Fix home button

Change-Id: Ieafff8758340c1a434eed595ecb56415ed9ae62d

8 years agoMerge "Ensure all showContextMenu() overrides have matching x,y overrides"
Alan Viverette [Fri, 22 Jan 2016 15:20:43 +0000 (15:20 +0000)]
Merge "Ensure all showContextMenu() overrides have matching x,y overrides"

8 years agoVerify results of methods called during child ordering
Alan Viverette [Fri, 22 Jan 2016 15:14:02 +0000 (10:14 -0500)]
Verify results of methods called during child ordering

Also updates nullability annotations for methods called during touch
dispatch. Verifies that TouchTarget and HoverTarget are not recycled
multiple times.

Bug: 26611563
Change-Id: Ica5ff18e18b325b12fe72b8ca145443b25625fe4

8 years agoMerge "Make nav bar customizable through Tunable"
Jason Monk [Fri, 22 Jan 2016 14:58:40 +0000 (14:58 +0000)]
Merge "Make nav bar customizable through Tunable"

8 years agoMake nav bar customizable through Tunable
Jason Monk [Mon, 18 Jan 2016 19:41:03 +0000 (14:41 -0500)]
Make nav bar customizable through Tunable

Change-Id: I18c6bc3db1555ca8ec94f1ce594eb01158f32736

8 years agoMerge "Add support for bitmaps with Grey_8 color type."
Derek Sollenberger [Fri, 22 Jan 2016 14:07:37 +0000 (14:07 +0000)]
Merge "Add support for bitmaps with Grey_8 color type."

8 years agoMerge "Update bmgr cmd line tool to use requestBackup() API in BackupManager"
Sergey Poromov [Fri, 22 Jan 2016 13:59:52 +0000 (13:59 +0000)]
Merge "Update bmgr cmd line tool to use requestBackup() API in BackupManager"

8 years agoMerge "Add profile policy to set work challenge background color"
Benjamin Franz [Fri, 22 Jan 2016 12:59:24 +0000 (12:59 +0000)]
Merge "Add profile policy to set work challenge background color"

8 years agoAdd profile policy to set work challenge background color
Benjamin Franz [Mon, 18 Jan 2016 15:26:11 +0000 (15:26 +0000)]
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

8 years agoMerge "Fix incorrect @hide usage in libcore"
Przemyslaw Szczepaniak [Fri, 22 Jan 2016 12:22:39 +0000 (12:22 +0000)]
Merge "Fix incorrect @hide usage in libcore"

8 years agoUpdate bmgr cmd line tool to use requestBackup() API in BackupManager
Sergey Poromov [Tue, 12 Jan 2016 16:07:11 +0000 (17:07 +0100)]
Update bmgr cmd line tool to use requestBackup() API in BackupManager

The new command works as "bmgr backupnow [list of packages]"
This change should be submitted after ag/834173

Change-Id: Ie1cdd18a38653dd71a1d499620dd2afec3cbbb24

8 years agoMerge "Add BackupManager#isAppEligibleForBackup() method to Backup API."
Sergey Poromov [Fri, 22 Jan 2016 12:01:16 +0000 (12:01 +0000)]
Merge "Add BackupManager#isAppEligibleForBackup() method to Backup API."

8 years agoFetch WebView package even if it is uninstalled for the current user.
Gustav Sennton [Fri, 22 Jan 2016 11:25:34 +0000 (11:25 +0000)]
Fetch WebView package even if it is uninstalled for the current user.

Since the WebView loading mechanism is global - it doesn't differ
between different users, a user for which the current WebView provider
is uninstalled won't be able to fetch any information about the current
provider without passing a certain flag (MATCH_UNINSTALLED_PACKAGES) to
the package manager.

Bug: 26677081
Change-Id: Id1b86164bb22fc7285d292da1b1115fb25e4d226

8 years agoFix incorrect @hide usage in libcore
Przemyslaw Szczepaniak [Fri, 22 Jan 2016 11:16:29 +0000 (11:16 +0000)]
Fix incorrect @hide usage in libcore

@hide annotation is only effective in Javadoc.

Bug: 26689841
Change-Id: Ifc0a1358b64518a40b4334061ef8ca0dd23ea28e

8 years agoMerge "Improve documentation for IntentService"
Ryan Lothian [Fri, 22 Jan 2016 10:32:57 +0000 (10:32 +0000)]
Merge "Improve documentation for IntentService"

8 years agoMerge "Clarify the purpose of EditorInfo#hintLocales."
Yohei Yukawa [Fri, 22 Jan 2016 09:54:19 +0000 (09:54 +0000)]
Merge "Clarify the purpose of EditorInfo#hintLocales."

8 years agoMerge "Initialize InputMethodSubtype with "languageTag"."
Yohei Yukawa [Fri, 22 Jan 2016 07:35:17 +0000 (07:35 +0000)]
Merge "Initialize InputMethodSubtype with "languageTag"."

8 years agoFix build by adding missing method
Selim Cinek [Fri, 22 Jan 2016 07:11:47 +0000 (23:11 -0800)]
Fix build by adding missing method

Change-Id: I4309225f9c799237857ce4c8f7ae2f8667d0b8be

8 years agoInitialize InputMethodSubtype with "languageTag".
Yohei Yukawa [Fri, 22 Jan 2016 06:24:44 +0000 (22:24 -0800)]
Initialize InputMethodSubtype with "languageTag".

My previous commit [1] introduced a new XML attribute "languageTag" for
subtypes but forgot to initialize InputMethodSubtype object with that
attribute.  As a result, InputMethodSubtype#getLanguageTag() has always
returned null even if "languageTag" attribute is specified.

  [1]: I77db5b99a7cf745d800db75baf135bb60ad04820
       8d6eeb01df72891acd3aa75e64aa1595a41cc96e

With this CL, InputMethodSubtype#getLanguageTag() starts returning the
value specified in the XML resource.

Bug: 22859862
Change-Id: I251d3d999afd13c0d618f2cb59e8ed3d47f21c98

8 years agoAdd TextView cursor positioning tests for grapheme clusters.
Keisuke Kuroyanagi [Fri, 8 Jan 2016 10:05:27 +0000 (19:05 +0900)]
Add TextView cursor positioning tests for grapheme clusters.

Bug: 25375561
Bug: 25730231
Change-Id: I7e77e6de027a81ec0f203a1ff9c24a768ffedae3

8 years agoMerge "Use light weight method for text measurement."
Keisuke Kuroyanagi [Fri, 22 Jan 2016 05:09:16 +0000 (05:09 +0000)]
Merge "Use light weight method for text measurement."

8 years agoMerge "Do not allow to move virtual files using conversion."
Tomasz Mikolajewski [Fri, 22 Jan 2016 04:58:21 +0000 (04:58 +0000)]
Merge "Do not allow to move virtual files using conversion."

8 years agoDo not allow to move virtual files using conversion.
Tomasz Mikolajewski [Thu, 21 Jan 2016 03:49:24 +0000 (12:49 +0900)]
Do not allow to move virtual files using conversion.

Change-Id: Ia792bc766272645f7bf8a2683c22895b03df3a1f

8 years agoMerge "Use ActivityOptions.setLaunchBounds to resize PIP"
Youngsang Cho [Fri, 22 Jan 2016 03:46:58 +0000 (03:46 +0000)]
Merge "Use ActivityOptions.setLaunchBounds to resize PIP"

8 years agoUse ActivityOptions.setLaunchBounds to resize PIP
Youngsang Cho [Thu, 21 Jan 2016 22:30:31 +0000 (14:30 -0800)]
Use ActivityOptions.setLaunchBounds to resize PIP

Bug: 26574470
Change-Id: I5444ae40a51cf2746d78b4c006e5936c91d01ae4

8 years agoFixed a bug where the wrong number of notifications were visible
Selim Cinek [Sat, 16 Jan 2016 01:17:58 +0000 (17:17 -0800)]
Fixed a bug where the wrong number of notifications were visible

Since the calculation of the number of notifications is dynamic now
it strongly depends on the notification min heights which are only
calculated once it is laid out.
This is now properly done.

Bug: 26480961
Change-Id: Ic7b270af826c28b4a9d2c08021605a5c9ae78860

8 years agoHandling content intent of groups correctly
Selim Cinek [Sat, 16 Jan 2016 00:33:22 +0000 (16:33 -0800)]
Handling content intent of groups correctly

Content intent of children in groups can now
only be launched if the group is expanded.

Bug: 26582343
Change-Id: I5bf2c853d7659b4c764892409c6c7cc3fc647cc8

8 years agoSwitched the work profile badge used in the notifications
Selim Cinek [Fri, 15 Jan 2016 23:07:06 +0000 (15:07 -0800)]
Switched the work profile badge used in the notifications

Change-Id: I62616f1ae8fcda9953853b9859c69a9f1e6f44ca

8 years agoFixed that music notifications were not clickable on lockscreen
Selim Cinek [Fri, 15 Jan 2016 02:48:41 +0000 (18:48 -0800)]
Fixed that music notifications were not clickable on lockscreen

On the lockscreen we were unintentionally disabling single clicks
on the media buttons while we only wanted to disallow it for the
notification header. This is now fixed by explicitly checking if
we are clicking on the notification header.

Bug: 26325096
Change-Id: I044f25ac3216b98c7769c31d09d19f801a437194

8 years agoFixed the animation on the music template by introducing scale
Selim Cinek [Fri, 15 Jan 2016 01:04:47 +0000 (17:04 -0800)]
Fixed the animation on the music template by introducing scale

The notification images can now animate in scale.

Change-Id: I7cc90e13f31208c76a490dd94a1ccbc05a4f8bd3

8 years agoThe notification content now switches earlier
Selim Cinek [Thu, 14 Jan 2016 21:02:21 +0000 (13:02 -0800)]
The notification content now switches earlier

The notification content visible is now based on the intrinsic
height of the view and not just the actual height anymore.
This allows notifications to switch earlier when clicking on
the collapse button.

Change-Id: Icdf4ea50a7b1bbb78bd57a9f1c3eea25cf9c8d7c

8 years agoChanged the work profile appearance
Selim Cinek [Wed, 13 Jan 2016 23:27:30 +0000 (15:27 -0800)]
Changed the work profile appearance

Change-Id: I0545ee9b18572b93f73b4cf54126cf03085b61b5

8 years agoUpdated notification colors
Selim Cinek [Wed, 13 Jan 2016 04:17:48 +0000 (20:17 -0800)]
Updated notification colors

Change-Id: I23ffc7325ec4947bb0e2d767d1e2ddbaa9b3f369

8 years agoFading out the divider now when removing children
Selim Cinek [Wed, 13 Jan 2016 02:32:11 +0000 (18:32 -0800)]
Fading out the divider now when removing children

Change-Id: I4466da4f82ae4868c6d0bd023a399c6067a9c3fb

8 years agoRemoved staggering animation with notification groups
Selim Cinek [Wed, 13 Jan 2016 01:51:35 +0000 (17:51 -0800)]
Removed staggering animation with notification groups

It was more distracting than helping

Change-Id: I5a1110268d23d9f964ad515b6fff16cf9d9a4992

8 years agoFixed a bug where Sysui could crash
Selim Cinek [Wed, 13 Jan 2016 00:04:21 +0000 (16:04 -0800)]
Fixed a bug where Sysui could crash

If no title was provided, SysUI could crash in a
group.

Change-Id: I9c40175b3e40410ce5b1e8fe1ef7e6c7124b0460

8 years agoAdded the possibility to do custom animations for certain fields
Selim Cinek [Wed, 13 Jan 2016 00:02:42 +0000 (16:02 -0800)]
Added the possibility to do custom animations for certain fields

The text of the single line version now doesn't animate over anymore.

Change-Id: Id41c1145cbb07254bff599b10d4d6df84689f797

8 years agoFixed a bug where the dozemode wasn't working correctly
Selim Cinek [Tue, 12 Jan 2016 02:01:47 +0000 (18:01 -0800)]
Fixed a bug where the dozemode wasn't working correctly

There where 2 different issues which could lead to the dozemode
not working correctly:
1. The new workarabout where we show the expanded notification
if it has the same size as the collapsed, requires that dozemode
is also called on the right notification
2. When the children were not layed out yet, this calculation could be
wrong and the wrong child was selected, leading to the same issue.

Bug: 26459664
Change-Id: Ib67dcaf2ba9b8b9a1bfa5ece5b7d6c4dff677939

8 years agoFixed an inconsistency in the notification templates
Selim Cinek [Tue, 12 Jan 2016 00:58:37 +0000 (16:58 -0800)]
Fixed an inconsistency in the notification templates

The text was never set to GONE when it was invisible,
leading to weird cases when fading between notification contents.

Change-Id: I92825b6d5a417c968c734061e55553be314af2b8

8 years agoImproved notification transformations
Selim Cinek [Sun, 3 Jan 2016 06:42:02 +0000 (14:42 +0800)]
Improved notification transformations

All views are now faded, even if they are not handled specially

Change-Id: I2970548667e0388984098293ac0dfcbdbed12df1

8 years agoContinued the template switch implementation
Selim Cinek [Fri, 1 Jan 2016 19:29:12 +0000 (20:29 +0100)]
Continued the template switch implementation

Change-Id: I86fa52f2e13d319127dcd44b98304aa3cc3c7e9e

8 years agoChanged the transformation from when switching notification views
Selim Cinek [Tue, 29 Dec 2015 14:12:23 +0000 (15:12 +0100)]
Changed the transformation from when switching notification views

Change-Id: I2af3c2f36787d208be7745dabae96903df256156

8 years agoFixed a bug where the overflow card appear animation would get stuck
Selim Cinek [Mon, 28 Dec 2015 11:48:15 +0000 (12:48 +0100)]
Fixed a bug where the overflow card appear animation would get stuck

Bug: 24547258
Change-Id: I50a9404c7b9cced0e2e1a2e39ffaaf0d8bf2dfb9

8 years agoFixed a bug where disabled notification actions were not centered
Selim Cinek [Mon, 28 Dec 2015 11:15:01 +0000 (12:15 +0100)]
Fixed a bug where disabled notification actions were not centered

Bug: 26291178
Change-Id: If0ad1ab9d7a4cea3481b4d8cc06142a6b58146e7

8 years agoIsolating heads up children from their groups now
Selim Cinek [Tue, 22 Dec 2015 00:55:58 +0000 (16:55 -0800)]
Isolating heads up children from their groups now

Group children are now isolated into their own group for a few seconds
until it's merged into the group again when they are
heads upped. This makes notifications groups finally usable with
HUNs again.

Change-Id: I0cb5e4f7a70e09989030dfe70ddcbb50575c1c02

8 years agoImproved touch handling with groups and HUNS
Selim Cinek [Mon, 21 Dec 2015 20:19:09 +0000 (12:19 -0800)]
Improved touch handling with groups and HUNS

Groups with HUNED children now don't totally destroy the touch
handling anymore.

Change-Id: I815260e22c59e939de12315a393de108fc0b47ab

8 years agoFixed the animations on the notification scrims
Selim Cinek [Sat, 19 Dec 2015 02:38:31 +0000 (18:38 -0800)]
Fixed the animations on the notification scrims

When pulling down on a heads up notification the scrim would
fade in from 0 instead of fading to the new position.
The old behavior didn't work if the heads up notifications were
big, so we had to change it in order to always have a scrim.

Change-Id: I9ae387b75136c9240d863e06a8649c85b3c6c9dc

8 years agoEnabled usage of expand button in heads up notifications
Selim Cinek [Sat, 19 Dec 2015 01:51:15 +0000 (17:51 -0800)]
Enabled usage of expand button in heads up notifications

Heads up notifications can now be expanded with the expand
button. The notification stays there until the user dismisses it
or collapses it again.

Change-Id: I0f1b729915317bbbd6f13c3d968c933ffbe6feeb

8 years agoMerge "Make Drag and Drop mouse specific behavior for now."
Ben Kwa [Fri, 22 Jan 2016 03:30:34 +0000 (03:30 +0000)]
Merge "Make Drag and Drop mouse specific behavior for now."

8 years agoMerge changes Ifd2de38a,I57633d60
Jorim Jaggi [Fri, 22 Jan 2016 02:54:21 +0000 (02:54 +0000)]
Merge changes Ifd2de38a,I57633d60

* changes:
  Divider tuning
  Fix unneccesary activity relaunches