OSDN Git Service

android-x86/frameworks-base.git
8 years agoMerge "Remove Intent to start screen reader tutorial. Reverts ag/867242. Bug: 2721868...
Anna Galusza [Wed, 16 Mar 2016 17:07:48 +0000 (17:07 +0000)]
Merge "Remove Intent to start screen reader tutorial. Reverts ag/867242. Bug: 27218687" into nyc-dev

8 years agoMerge "Update PIP position on recents" into nyc-dev
Youngsang Cho [Wed, 16 Mar 2016 16:59:05 +0000 (16:59 +0000)]
Merge "Update PIP position on recents" into nyc-dev

8 years agoMerge "Prevent apps without DND access from toggling DND via AudioService." into...
Julia Reynolds [Wed, 16 Mar 2016 16:48:31 +0000 (16:48 +0000)]
Merge "Prevent apps without DND access from toggling DND via AudioService." into nyc-dev

8 years agoMerge "Synchronize on subscription list." into nyc-dev
Julia Reynolds [Wed, 16 Mar 2016 16:34:32 +0000 (16:34 +0000)]
Merge "Synchronize on subscription list." into nyc-dev

8 years agoMerge "Minor UI improvements and code cleanup:" into nyc-dev
Felipe Leme [Wed, 16 Mar 2016 16:29:55 +0000 (16:29 +0000)]
Merge "Minor UI improvements and code cleanup:" into nyc-dev

8 years agoMerge "Polished Scoped Directory Access UI." into nyc-dev
Felipe Leme [Wed, 16 Mar 2016 16:22:16 +0000 (16:22 +0000)]
Merge "Polished Scoped Directory Access UI." into nyc-dev

8 years agoMerge "Use proper ScriptCall size in nScriptForEach()" into nyc-dev
Yang Ni [Wed, 16 Mar 2016 15:46:37 +0000 (15:46 +0000)]
Merge "Use proper ScriptCall size in nScriptForEach()" into nyc-dev

8 years agoUse proper ScriptCall size in nScriptForEach()
Yang Ni [Tue, 15 Mar 2016 23:00:02 +0000 (16:00 -0700)]
Use proper ScriptCall size in nScriptForEach()

Bug: 26498479

Although the size of struct ScriptCall is not used underneath in the
runtime or drivers, assign the correct value here to avoid confusion.

Change-Id: I8db19538b9f70f3bf9ee849a8724da3d9ee04785
(cherry picked from commit e8f2e445fdb138416043a16659bbf86fbbd3fff8)

8 years agoMerge "Fix a bug in ControllerActivityCounter" into nyc-dev
Roshan Pius [Wed, 16 Mar 2016 15:05:12 +0000 (15:05 +0000)]
Merge "Fix a bug in ControllerActivityCounter" into nyc-dev

8 years agogetUserInfo fail when app trying to get self user info
Tony Mak [Wed, 16 Mar 2016 14:49:52 +0000 (14:49 +0000)]
getUserInfo fail when app trying to get self user info

isSameProfileGroupLP return false when user has no profile, we should
check callingUserId != userId explictly.
Please notice that isSameProfileGroup handles this case, but we would like
to avoid the permission checking of isSameProfileGroup.

Change-Id: Ibb2d09eaaf7e8f099445490aa9ec287e86945125

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:33:52 +0000 (14:33 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:33:29 +0000 (14:33 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:28:31 +0000 (07:28 -0700)]
Import translations. DO NOT MERGE

Change-Id: I94fd8779f7e2611373bfd09ca25ffef2e178c17d
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:27:26 +0000 (07:27 -0700)]
Import translations. DO NOT MERGE

Change-Id: Iefbda82e967a365520cdf26df0728b8eb425c6a7
Auto-generated-cl: translation import

8 years agoMerge "Clarified documentation as requested by API review" into nyc-dev
Esteban Talavera [Wed, 16 Mar 2016 14:24:39 +0000 (14:24 +0000)]
Merge "Clarified documentation as requested by API review" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:22:03 +0000 (14:22 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 14:21:46 +0000 (14:21 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:21:07 +0000 (07:21 -0700)]
Import translations. DO NOT MERGE

Change-Id: I949b397af1475733943f0b3597c9ff4c050bba03
Auto-generated-cl: translation import

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 14:14:47 +0000 (07:14 -0700)]
Import translations. DO NOT MERGE

Change-Id: I33545a8fee9b65fa3e11fdb86c1b6c9d2bcdc7ec
Auto-generated-cl: translation import

8 years agoMerge "Rebind managed services more" into nyc-dev
Julia Reynolds [Wed, 16 Mar 2016 14:08:19 +0000 (14:08 +0000)]
Merge "Rebind managed services more" into nyc-dev

8 years agoPrevent apps without DND access from toggling DND via AudioService.
Julia Reynolds [Wed, 9 Mar 2016 15:15:16 +0000 (10:15 -0500)]
Prevent apps without DND access from toggling DND via AudioService.

Bug: 25395278
Change-Id: Id72830607b01a43848d1261292e5835315ef70d0

8 years agoTrack libcore change 5409226c71aa1e090291f391faeb4249f5447472
Przemyslaw Szczepaniak [Wed, 16 Mar 2016 13:20:16 +0000 (13:20 +0000)]
Track libcore change 5409226c71aa1e090291f391faeb4249f5447472

Bug: 27426599
Change-Id: I028bb4ac7a24d6121c8114aa58e0e53799d00945

8 years agoMerge "Reduce memory allocations and improve sorting in DocumentsUI by 8.42%." into...
Tomasz Mikolajewski [Wed, 16 Mar 2016 12:55:37 +0000 (12:55 +0000)]
Merge "Reduce memory allocations and improve sorting in DocumentsUI by 8.42%." into nyc-dev

8 years agoMerge "Import translations. DO NOT MERGE" into nyc-dev
Geoff Mendal [Wed, 16 Mar 2016 12:44:35 +0000 (12:44 +0000)]
Merge "Import translations. DO NOT MERGE" into nyc-dev

8 years agoImport translations. DO NOT MERGE
Geoff Mendal [Wed, 16 Mar 2016 12:30:51 +0000 (08:30 -0400)]
Import translations. DO NOT MERGE

Change-Id: I1349c9ce36d61c83ffe2305411f5843fc5b1fe89
Auto-generated-cl: translation import

8 years agoMerge "Remove all non-porterduff xfermodes from the public API" into nyc-dev
Derek Sollenberger [Wed, 16 Mar 2016 12:17:14 +0000 (12:17 +0000)]
Merge "Remove all non-porterduff xfermodes from the public API" into nyc-dev

8 years agoMerge "Update documentation of DevicePolicyManager.isProvisioningAllowed." into nyc-dev
Nicolas Prévot [Wed, 16 Mar 2016 12:05:34 +0000 (12:05 +0000)]
Merge "Update documentation of DevicePolicyManager.isProvisioningAllowed." into nyc-dev

8 years agoClarified documentation as requested by API review
Esteban Talavera [Wed, 16 Mar 2016 12:00:40 +0000 (12:00 +0000)]
Clarified documentation as requested by API review

Bug: 27532433
Change-Id: I5fada6c0a4636528393308d5ce098cd0398e5ff5

8 years agoFix NotificationListenerService fail to mirror work notification
Tony Mak [Wed, 16 Mar 2016 10:46:49 +0000 (10:46 +0000)]
Fix NotificationListenerService fail to mirror work notification

1. Instead of getting application info in runtime, just retrieve the
   one in the context to avoid cross user operation.

2. Functions in PackageManager that retrieve badged icon now return
   badged icon if the targer user is managed profile instead of checking
   whether target user is a managed profile of the user in mContext.

3. Relax the restriction of getUserInfo, if the caller is asking a user
   in the same profile group or having the manage user permission, we let
   it go.

Bug: 26469166

Change-Id: Ia1ffc5743f7d94bd489cdb7571eaed51499ebdd9

8 years agoReduce memory allocations and improve sorting in DocumentsUI by 8.42%.
Tomasz Mikolajewski [Tue, 15 Mar 2016 06:55:46 +0000 (15:55 +0900)]
Reduce memory allocations and improve sorting in DocumentsUI by 8.42%.

Bug: 27286016
Change-Id: Icc84aaaedd396d82f4ca7de63a682deebe1e1b93

8 years agoMerge "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." into nyc-dev
Tomasz Mikolajewski [Wed, 16 Mar 2016 09:25:28 +0000 (09:25 +0000)]
Merge "Precompute cursor indexes in DocumentsUI and improve perf by 2.7%." into nyc-dev

8 years agoMerge "APF: add debug code." into nyc-dev
Lorenzo Colitti [Wed, 16 Mar 2016 08:13:21 +0000 (08:13 +0000)]
Merge "APF: add debug code." into nyc-dev

8 years agoPrecompute cursor indexes in DocumentsUI and improve perf by 2.7%.
Tomasz Mikolajewski [Tue, 15 Mar 2016 06:38:54 +0000 (15:38 +0900)]
Precompute cursor indexes in DocumentsUI and improve perf by 2.7%.

Bug: 27286016
Change-Id: I0ad852faef46ba9eccc90ca32d8c2ea0e2d5cd98

8 years agoMerge "Handle SQLite disk IO error in MtpDocumentsProvider#onCreate." into nyc-dev
Daichi Hirono [Wed, 16 Mar 2016 07:34:14 +0000 (07:34 +0000)]
Merge "Handle SQLite disk IO error in MtpDocumentsProvider#onCreate." into nyc-dev

8 years agoMerge "HdmiControlService does not broadcast CEC <standby> message on shutdown" into...
Donghyun Cho [Wed, 16 Mar 2016 07:08:01 +0000 (07:08 +0000)]
Merge "HdmiControlService does not broadcast CEC <standby> message on shutdown" into nyc-dev

8 years agoAPF: add debug code.
Lorenzo Colitti [Thu, 3 Mar 2016 08:53:46 +0000 (17:53 +0900)]
APF: add debug code.

1. Store additional debug information when RA filtering.
2. Add a toString method for RA packets.
3. Make "adb shell dumpsys connectivity apf" dump APF filter
   state.

Bug: 26238573
Change-Id: I1441ff7bc90e63624f8b10a220b2ac97f4d390a5

8 years agoHandle SQLite disk IO error in MtpDocumentsProvider#onCreate.
Daichi Hirono [Wed, 16 Mar 2016 05:36:27 +0000 (14:36 +0900)]
Handle SQLite disk IO error in MtpDocumentsProvider#onCreate.

The error should be regarded as an expected error that failes onCreate,
rather than crash.

BUG=27244513

Change-Id: Icf5164b0cba6cb919077539afe7701ada1e0c247

8 years agoHdmiControlService does not broadcast CEC <standby> message on shutdown
Rob McConnell [Fri, 11 Mar 2016 11:03:00 +0000 (11:03 +0000)]
HdmiControlService does not broadcast CEC <standby> message on shutdown

When the STB is shutting down the CEC <standby> message should be
broadcast to all CEC devices to place them in to standby. This is
not happening because the ACTION_SHUTDOWN Intent has not been
added to the list of Intent filters that the HdmiControlService
should be listening for.

This one-line change adds the ACTION_SHUTDOWN Intent filter so that
when the STB is shutting down (e.g. via a long press of the POWER
button), the CEC <standby> message can be broadcast to all devices.
This allows a connected HDMI TV to be automatically placed in to
standby.

Bug: 27596547
Change-Id: I4cdd2eaaad86e98bdf86c74fb0c377eb716f3c83

8 years agoMerge "Move to downloads root instead of home root." into nyc-dev
Daichi Hirono [Wed, 16 Mar 2016 04:21:04 +0000 (04:21 +0000)]
Merge "Move to downloads root instead of home root." into nyc-dev

8 years agoMerge "Add a system property for the 'Set Menu Language' feature of CEC" into nyc-dev
Donghyun Cho [Wed, 16 Mar 2016 04:20:57 +0000 (04:20 +0000)]
Merge "Add a system property for the 'Set Menu Language' feature of CEC" into nyc-dev

8 years agoMerge "Ignore the checksum when comparing RAs for equality." into nyc-dev
Lorenzo Colitti [Wed, 16 Mar 2016 03:27:48 +0000 (03:27 +0000)]
Merge "Ignore the checksum when comparing RAs for equality." into nyc-dev

8 years agoIgnore the checksum when comparing RAs for equality.
Lorenzo Colitti [Thu, 3 Mar 2016 08:53:33 +0000 (17:53 +0900)]
Ignore the checksum when comparing RAs for equality.

When comparing two RAs for equality, Ra#matches intentionally
ignores lifetimes. It should ignore the checksum instead, because
otherwise-identical packets with different lifetimes will almost
certainly have different checksums.

In order to avoid the generated APF program also matching the
checksum, we treat the checksum as if it were a lifetime, but
take care not to use its value when calculating mMinLifetime or
when checking the lifetimes in the APF program.

Bug: 27595799
Bug: 26238573
Change-Id: I526fdc17e99803a1ddec6275a3c542014434c429

8 years agoAdd a system property for the 'Set Menu Language' feature of CEC
Donghyun Cho [Fri, 11 Mar 2016 08:35:37 +0000 (17:35 +0900)]
Add a system property for the 'Set Menu Language' feature of CEC

The CEC feature, <Set Menu Language>, is enabled by setting a system
property 'ro.hdmi.set_menu_language', which is false by default.

Bug: 25704899
Change-Id: I941b238bcc06227c128f09d38d422b8295e81b7b

8 years agoUpdate docs for ACTION_QUICK_VIEW.
Tomasz Mikolajewski [Thu, 10 Mar 2016 08:42:35 +0000 (17:42 +0900)]
Update docs for ACTION_QUICK_VIEW.

Bug: 27531273
Change-Id: I917ca16c14db20e6a2773018e00a61ff5fcf7ecd

8 years agoMerge "Add FLAG_PARTIAL. Partial files can't be copied." into nyc-dev
Steve McKay [Wed, 16 Mar 2016 01:37:06 +0000 (01:37 +0000)]
Merge "Add FLAG_PARTIAL. Partial files can't be copied." into nyc-dev

8 years agoMerge "Add View#onVisibilityAggregated" into nyc-dev
Adam Powell [Wed, 16 Mar 2016 00:22:21 +0000 (00:22 +0000)]
Merge "Add View#onVisibilityAggregated" into nyc-dev

8 years agoMerge "Workaround for PathMeasure.getSegment() behavior change" into nyc-dev
Doris Liu [Wed, 16 Mar 2016 00:21:12 +0000 (00:21 +0000)]
Merge "Workaround for PathMeasure.getSegment() behavior change" into nyc-dev

8 years agoMerge "Fix for JobScheduler jobs not running" into nyc-dev
Shreyas Basarge [Wed, 16 Mar 2016 00:20:51 +0000 (00:20 +0000)]
Merge "Fix for JobScheduler jobs not running" into nyc-dev

8 years agoWorkaround for PathMeasure.getSegment() behavior change
Doris Liu [Wed, 16 Mar 2016 00:01:55 +0000 (17:01 -0700)]
Workaround for PathMeasure.getSegment() behavior change

SkPathMeasure::getSegment(SkScalar startD, SkScalar stopD, SkPath* dst,
bool startWithMoveTo) in SkPathMeasure used to ignore the case when
startD == stopD in MNC release. In NYC, the same paramaters would yield
a tiny segment, which leaves undesirable artifacts as shown in the bug
below.

Bug: 27665826
Change-Id: I8289dc32773fd55d686458183af44ff072866c6e

8 years agoPolished Scoped Directory Access UI.
Felipe Leme [Tue, 15 Mar 2016 23:29:17 +0000 (16:29 -0700)]
Polished Scoped Directory Access UI.

- Set proper style on custom alert dialog view.
- Fixed padding.
- Removed redundant style.
- Fixed checkbox color.

BUG: 26750152

Change-Id: Ibf3984e1b0a092affc58f1377b89b6ab7ea2a3aa

8 years agoAdd FLAG_PARTIAL. Partial files can't be copied.
Steve McKay [Mon, 14 Mar 2016 20:02:56 +0000 (13:02 -0700)]
Add FLAG_PARTIAL. Partial files can't be copied.

This allows us to exclude in-progress downloads from copy.
Will update Downloads in a followup CL to flag active downloads.

Bug: 27526321
Change-Id: I50d1db5cfb69bc6b47e10cc0f520a51e3d3cb43e

8 years agoMerge "Prevent Log.wtf crash in benign case" into nyc-dev
Adrian Roos [Tue, 15 Mar 2016 23:31:11 +0000 (23:31 +0000)]
Merge "Prevent Log.wtf crash in benign case" into nyc-dev

8 years agoMerge "ExifInterface: ignore exceptions when getting wrong images" into nyc-dev
Jaesung Chung [Tue, 15 Mar 2016 23:27:12 +0000 (23:27 +0000)]
Merge "ExifInterface: ignore exceptions when getting wrong images" into nyc-dev

8 years agoMerge "Add BluetoothProfile for PBAP PCE role." into nyc-dev
Joseph Pirozzo [Tue, 15 Mar 2016 23:21:10 +0000 (23:21 +0000)]
Merge "Add BluetoothProfile for PBAP PCE role." into nyc-dev

8 years agoAdd View#onVisibilityAggregated
Adam Powell [Tue, 15 Mar 2016 21:43:19 +0000 (14:43 -0700)]
Add View#onVisibilityAggregated

There's a common misconception (even across the framework) that
View#onVisibilityChanged determines and reports visibility on 'this'
up to the changed view and the total visibility within the
window. Knowing this is useful for things like starting/stopping
animations. onVisibilityChanged only reports the visibility for the
specific changed view, not the effects that would have down the tree.

Add onVisibilityAggregated to report what some code thought it was
getting already, and move ImageView and ProgressBar over to using it.

Bug 27461617

Change-Id: I433f41de453e27a53f907f1d9805350f30f31de9

8 years agoMerge "Updating javadoc for DPM apis" into nyc-dev
Suprabh Shukla [Tue, 15 Mar 2016 23:18:18 +0000 (23:18 +0000)]
Merge "Updating javadoc for DPM apis" into nyc-dev

8 years agoPrevent Log.wtf crash in benign case
Adrian Roos [Tue, 15 Mar 2016 03:21:02 +0000 (20:21 -0700)]
Prevent Log.wtf crash in benign case

Fixes a crash that happens when you turn of the screen
while moving the finger. Some touches still come in even
when the screen went to sleep. No need to get upset over
those.

Bug: 27595423
Change-Id: If75ae3b6c2c83a87f38daaf8777f89d8c74a9cd1

8 years agoMerge "Fix black frame when unlocking device via clicking on notification" into nyc-dev
Chong Zhang [Tue, 15 Mar 2016 22:31:16 +0000 (22:31 +0000)]
Merge "Fix black frame when unlocking device via clicking on notification" into nyc-dev

8 years agoFix for JobScheduler jobs not running
Shreyas Basarge [Tue, 15 Mar 2016 22:19:04 +0000 (22:19 +0000)]
Fix for JobScheduler jobs not running

If the device is powered off when a job is
supposed to run, its delay and deadline both
are set to 0 on boot. If the deadlineExpired alarm
runs first, the job is discarded from
TimeController's tracked jobs list. The delay
constraint is never set to true and the job
would never be executed. This behavior is fixed
here.

Dump modified to print jobId and uId instead of
hash to make it more meaningful.

Bug: 27619643
Change-Id: If03e3d6f194f15fe43b697dcb4198137fa7ed646

8 years ago[NAN] Removed NAN event registration - dispatch all callbacks. [DO NOT MERGE]
Etan Cohen [Tue, 15 Mar 2016 22:10:18 +0000 (22:10 +0000)]
[NAN] Removed NAN event registration - dispatch all callbacks. [DO NOT MERGE]
am: a5ed693788  -s ours

* commit 'a5ed693788ea64408ccf18850ee38905218ec4f4':
  [NAN] Removed NAN event registration - dispatch all callbacks. [DO NOT MERGE]

8 years ago[NAN] Consolidate publish/subscribe callback sets into single set [DO NOT MERGE]
Etan Cohen [Tue, 15 Mar 2016 22:10:17 +0000 (22:10 +0000)]
[NAN] Consolidate publish/subscribe callback sets into single set [DO NOT MERGE]
am: 8414f5cf2b  -s ours

* commit '8414f5cf2bd86dcbaea1976590e838e41af554b3':
  [NAN] Consolidate publish/subscribe callback sets into single set [DO NOT MERGE]

8 years ago[NAN] Replace session callback configuration control [DO NOT MERGE]
Etan Cohen [Tue, 15 Mar 2016 22:10:15 +0000 (22:10 +0000)]
[NAN] Replace session callback configuration control [DO NOT MERGE]
am: e393f57d0d  -s ours

* commit 'e393f57d0de5a27d1cfd04a8c83a61559430539c':
  [NAN] Replace session callback configuration control [DO NOT MERGE]

8 years ago[NAN] Expose match style configuration as public API. [DO NOT MERGE]
Etan Cohen [Tue, 15 Mar 2016 22:05:27 +0000 (22:05 +0000)]
[NAN] Expose match style configuration as public API. [DO NOT MERGE]
am: 8ef7453416  -s ours

* commit '8ef74534169bd3f3296e2ee42c0fda95c8518383':
  [NAN] Expose match style configuration as public API. [DO NOT MERGE]

8 years agoMerge "Don't reboot into recovery if block map file is missing." into nyc-dev
Tao Bao [Tue, 15 Mar 2016 22:02:06 +0000 (22:02 +0000)]
Merge "Don't reboot into recovery if block map file is missing." into nyc-dev

8 years agoSynchronize on subscription list.
Julia Reynolds [Tue, 15 Mar 2016 20:39:24 +0000 (16:39 -0400)]
Synchronize on subscription list.

Bug: 27676283
Change-Id: I0382369895ba54abab7e43e28b72495db9f84f94

8 years agoMerge "Add null-checks to mStatusBar." into nyc-dev
Wei Liu [Tue, 15 Mar 2016 21:50:06 +0000 (21:50 +0000)]
Merge "Add null-checks to mStatusBar." into nyc-dev

8 years agoMerge "The startup of the system services should be conditional." into nyc-dev
Wei Liu [Tue, 15 Mar 2016 21:48:52 +0000 (21:48 +0000)]
Merge "The startup of the system services should be conditional." into nyc-dev

8 years agoUpdating javadoc for DPM apis
Suprabh Shukla [Mon, 14 Mar 2016 20:49:37 +0000 (13:49 -0700)]
Updating javadoc for DPM apis

Added @throws tag in the javadoc for many APIs which might throw a
SecurityException in cases when such information might be useful for the
caller. E.g. when the caller has to be a device owner or must request
certain policies before making the API call.

Bug: b/27532288
Change-Id: I18e1a49a5e86a0322c035996ed7e9c3217da78c8

8 years agoMerge "Fix device reboot when ranging empty params." into nyc-dev
Wei Wang [Tue, 15 Mar 2016 21:31:57 +0000 (21:31 +0000)]
Merge "Fix device reboot when ranging empty params." into nyc-dev

8 years agoRebind managed services more
Julia Reynolds [Tue, 15 Mar 2016 13:25:56 +0000 (09:25 -0400)]
Rebind managed services more

- Rebind all on user switched
- Rebind Ranker on package replacement

Bug: 27551241
Change-Id: I6b0fe25dd68e2f1f118fde2b8e638193e1ad1868

8 years agoMerge "fix NPE when dump wins the race against emit" into nyc-dev
Chris Wren [Tue, 15 Mar 2016 21:03:57 +0000 (21:03 +0000)]
Merge "fix NPE when dump wins the race against emit" into nyc-dev

8 years agoMerge "Fix launcher side callback" into nyc-dev
Makoto Onuki [Tue, 15 Mar 2016 21:02:47 +0000 (21:02 +0000)]
Merge "Fix launcher side callback" into nyc-dev

8 years agoMerge "Log received intent." into nyc-dev
Felipe Leme [Tue, 15 Mar 2016 20:53:11 +0000 (20:53 +0000)]
Merge "Log received intent." into nyc-dev

8 years agoLog received intent.
Felipe Leme [Tue, 15 Mar 2016 20:47:05 +0000 (13:47 -0700)]
Log received intent.

BUG: 27660862
Change-Id: Ibe49080c15448ac2672f5e1d5eeaf6d9ff8d282e

8 years agoThe startup of the system services should be conditional.
Wei Liu [Fri, 4 Mar 2016 22:50:16 +0000 (14:50 -0800)]
The startup of the system services should be conditional.

The system services not used by Wear is tracked in go/ncwss
b/26877020

Change-Id: I45f77aecbdf4d4a54fef592d543e928b6a8cd6b9

8 years agoHandle AccountManager failures so Shell doesn't crash.
Felipe Leme [Tue, 15 Mar 2016 17:41:49 +0000 (10:41 -0700)]
Handle AccountManager failures so Shell doesn't crash.

BUG: 27665208
Change-Id: Iccb6ce810c8e1c93bded58871d7ec220b7d14ba9

8 years agoUpdate PIP position on recents
Youngsang Cho [Tue, 15 Mar 2016 20:03:40 +0000 (13:03 -0700)]
Update PIP position on recents

Bug: 27674230
Change-Id: Ie90c5f32b060f8803f61c2df29d301dcf5e74c89

8 years agoFix black frame when unlocking device via clicking on notification
Chong Zhang [Tue, 15 Mar 2016 19:50:03 +0000 (12:50 -0700)]
Fix black frame when unlocking device via clicking on notification

- Make sure to tell the app to start drawing if it has been stopped, app
  could be stopped in visible state.

- When activity is started with NEW_TASK + CLEAR_TASK flags, skip
  resuming of the soon-to-be-removed activity, and run enter animation
  directly on the new activity. Resuming the old activity causes delay,
  and we also run extra enter-exit transition in short succession which
  cause glitches.

bug: 27391256
Change-Id: I390ef9fc9855d70a4a9642c06c87cbe548b8b466

8 years agoMerge "Update DPM.reboot with new restriction" into nyc-dev
Mahaver Chopra [Tue, 15 Mar 2016 19:48:32 +0000 (19:48 +0000)]
Merge "Update DPM.reboot with new restriction" into nyc-dev

8 years agoUpdate DPM.reboot with new restriction
Mahaver Chopra [Fri, 11 Mar 2016 15:39:48 +0000 (15:39 +0000)]
Update DPM.reboot with new restriction

DPM.reboot() should not be called when there is an ongoing call on the
device.

Bug:27531799
Change-Id: Idc1fa4c7aa79b20ec9c2afcccf855455ee316787

8 years agoFix launcher side callback
Makoto Onuki [Tue, 15 Mar 2016 00:31:49 +0000 (17:31 -0700)]
Fix launcher side callback

- Fix crash in work profile case
- Calculate shortcuts for each caller
- Add tests

Bug 27548047

Change-Id: I1a5b6a96956abac75d01eb5cc1cec9a9e8e379a3

8 years agoMerge "Fix crashes during density changes" into nyc-dev
Jason Monk [Tue, 15 Mar 2016 19:25:19 +0000 (19:25 +0000)]
Merge "Fix crashes during density changes" into nyc-dev

8 years agoMerge "media: don't expose private keys in MediaFormat" into nyc-dev
Lajos Molnar [Tue, 15 Mar 2016 19:22:27 +0000 (19:22 +0000)]
Merge "media: don't expose private keys in MediaFormat" into nyc-dev

8 years agoMerge "Show admin support dialog if app is suspended." into nyc-dev
Sudheer Shanka [Tue, 15 Mar 2016 18:50:00 +0000 (18:50 +0000)]
Merge "Show admin support dialog if app is suspended." into nyc-dev

8 years agoMerge "Add a "Do not ask again" checkbox." into nyc-dev
Felipe Leme [Tue, 15 Mar 2016 18:43:46 +0000 (18:43 +0000)]
Merge "Add a "Do not ask again" checkbox." into nyc-dev

8 years agoMerge "Restore fix for native activity without a java-code" into nyc-dev
Dimitry Ivanov [Tue, 15 Mar 2016 18:23:01 +0000 (18:23 +0000)]
Merge "Restore fix for native activity without a java-code" into nyc-dev

8 years agoMerge "Update ActivityOptions#setLaunchBounds() docs" into nyc-dev
Andrii Kulian [Tue, 15 Mar 2016 18:19:11 +0000 (18:19 +0000)]
Merge "Update ActivityOptions#setLaunchBounds() docs" into nyc-dev

8 years agoMerge "Don't stomp live wallpapers when tidying up imagery" into nyc-dev
Chris Tate [Tue, 15 Mar 2016 18:15:36 +0000 (18:15 +0000)]
Merge "Don't stomp live wallpapers when tidying up imagery" into nyc-dev

8 years agoRemove Intent to start screen reader tutorial. Reverts ag/867242.
Anna Galusza [Mon, 7 Mar 2016 21:36:04 +0000 (13:36 -0800)]
Remove Intent to start screen reader tutorial. Reverts ag/867242.
Bug: 27218687

Change-Id: I5709f4393b2f1467757140c306c30aa88dfcc7f4

8 years agoAdd a "Do not ask again" checkbox.
Felipe Leme [Thu, 10 Mar 2016 01:40:49 +0000 (17:40 -0800)]
Add a "Do not ask again" checkbox.

When an app request access to a scoped directory which the user already
denied access, it will display a "Do not ask again" checkbox; if the
user checks that option, further requests will be automatically
rejected.

The history of denials is stored in the shared property file.

The UI is not polished yet, the style will be fixed in a future change.

BUG: 26750152

Change-Id: I181923adfb6a1c7c1c17e305d6838314280417fc

8 years agoAdd null-checks to mStatusBar.
Wei Liu [Fri, 4 Mar 2016 18:52:33 +0000 (10:52 -0800)]
Add null-checks to mStatusBar.

So that we can disable StatusBarManagerService on Wear.

b/26877020

Change-Id: I9e2a84f004ddf5a4aec50a84cad76d2a10c701b8

8 years agoUpdate documentation of DevicePolicyManager.isProvisioningAllowed.
Nicolas Prevot [Tue, 15 Mar 2016 17:42:28 +0000 (17:42 +0000)]
Update documentation of DevicePolicyManager.isProvisioningAllowed.

Do not mention the possibility of races for consistency with
other methods.

BUG:27532561
Change-Id: If81e8478742458456d1f2a23c61dded3e3a4f876

8 years agoMerge "core: add hdr capabilities to display" into nyc-dev
Ronghua Wu [Tue, 15 Mar 2016 17:40:13 +0000 (17:40 +0000)]
Merge "core: add hdr capabilities to display" into nyc-dev

8 years agoShow admin support dialog if app is suspended.
Sudheer Shanka [Fri, 11 Mar 2016 20:25:51 +0000 (12:25 -0800)]
Show admin support dialog if app is suspended.

Bug: 26922950
Change-Id: I21f048873244df52d14910cc01a658af476d9149

8 years agoDon't reboot into recovery if block map file is missing.
Tao Bao [Tue, 15 Mar 2016 00:11:05 +0000 (17:11 -0700)]
Don't reboot into recovery if block map file is missing.

We added a third parameter to RecoverySystem.installPackage() to let the
caller to indicate the package has been processed (uncrypt'd). We need
to ensure the caller's claim is true by checking the existence of the
block map. Otherwise the device will fail for sure when booting into
recovery.

Bug: 27620932
Change-Id: I6325455253480055f14eb0cf020689ac37328602

8 years agoMerge "Rename undefined inset constant" into nyc-dev
Alan Viverette [Tue, 15 Mar 2016 17:23:34 +0000 (17:23 +0000)]
Merge "Rename undefined inset constant" into nyc-dev

8 years agoUn-hide Connection#onReject(String) and its associated capability
Hall Liu [Mon, 14 Mar 2016 23:38:56 +0000 (16:38 -0700)]
Un-hide Connection#onReject(String) and its associated capability

The capability is CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION

Bug: 27501686
Change-Id: Id73bb99650ca8440a9f4e87bfe533a97c4d19778

8 years agoRestore fix for native activity without a java-code
Dimitry Ivanov [Tue, 15 Mar 2016 00:15:38 +0000 (17:15 -0700)]
Restore fix for native activity without a java-code

The regression was introduced by 39bfee5e3674faea992c32204abc1c03429b8cda
which undid the fix to classloader construction.

This commit reapplies the fix from b9c9026bdd0076014aeca62b088053d8fbce2326

Bug: http://b/27250344
Change-Id: I6c341d911ba0f311c63e380dd9dd064ba2faf391

8 years agoTrack libcore commit d41ca4a76ea570f9dd89a7ae56410cc75cc0a856
Yi Kong [Tue, 15 Mar 2016 16:59:59 +0000 (16:59 +0000)]
Track libcore commit d41ca4a76ea570f9dd89a7ae56410cc75cc0a856

Bug: 27538943
Change-Id: I91fc2e9738dcfb7be061041b5e000b21e7684184
(cherry picked from commit f45eca1d72a26feca68f74149afc4a8c6c91fde4)
(cherry picked from commit e72e604beae9a37834cbd1bff8eaeafd5810ed92)

8 years agoMerge "Revert "Permissions: Get rid of GET_ACCOUNTS"" into nyc-dev
Ian Pedowitz [Tue, 15 Mar 2016 17:09:51 +0000 (17:09 +0000)]
Merge "Revert "Permissions: Get rid of GET_ACCOUNTS"" into nyc-dev