OSDN Git Service

android-x86/frameworks-base.git
8 years agoDefuse Bundles parsed by the system process.
Jeff Sharkey [Thu, 10 Mar 2016 05:30:56 +0000 (22:30 -0700)]
Defuse Bundles parsed by the system process.

It's easy for apps to throw custom Parcelables into Bundles, but
if the system tries peeking inside one of these Bundles, it triggers
a BadParcelableException.  If that Bundle was passed away from the
Binder thread that delivered it into the system, we end up with a
nasty runtime restart.

This change mitigates this trouble by "defusing" any Bundles parsed by
the system server.  That is, if it encounters BadParcelableException
while unpacking a Bundle, it logs and delivers an empty Bundle as
the result.

Simultaneously, to help catch the system process sticking its
fingers into Bundles that are destined for other processes, a Bundle
now tracks if it's "defusable."  For example, any Intents delivered
through ActivityThread are marked as being defusable, since they've
arrived at their final destination.  Any other Bundles are considered
to be "in transit" and we log if the system tries unparceling them.

Merges several Parcel boolean fields into a flags int.  Add better
docs to several classes.

Bug: 27581063
Change-Id: I28cf3e7439503b5dc9a429bafae5eb48f21f0d93

8 years agoMerge "Don't allow selection in copy dest picker." into nyc-dev
Steve McKay [Wed, 16 Mar 2016 20:05:47 +0000 (20:05 +0000)]
Merge "Don't allow selection in copy dest picker." into nyc-dev

8 years agoMerge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev
Peng Xu [Wed, 16 Mar 2016 19:30:54 +0000 (19:30 +0000)]
Merge "Fix NC caused by race condition in SystemSensorManager" into nyc-dev

8 years agoDon't allow selection in copy dest picker.
Steve McKay [Wed, 16 Mar 2016 19:00:44 +0000 (12:00 -0700)]
Don't allow selection in copy dest picker.

Bug: 27490262
Change-Id: I1938a900cfd3693739c2ac10b5eea3176a4ca82c

8 years agoMerge "Document that Rect right/bottom are exclusive" into nyc-dev
Chet Haase [Wed, 16 Mar 2016 18:09:51 +0000 (18:09 +0000)]
Merge "Document that Rect right/bottom are exclusive" into nyc-dev

8 years agoMerge changes I3eba2cdb,Ie529f27e,I4f0290fa,I7fb1f704,I32b9dd59, ... into nyc-dev
Winson Chung [Wed, 16 Mar 2016 18:07:11 +0000 (18:07 +0000)]
Merge changes I3eba2cdb,Ie529f27e,I4f0290fa,I7fb1f704,I32b9dd59, ... into nyc-dev

* changes:
  Scroll to the launch-task when toggling overview.
  Ensure that recents toggles even in the empty state.
  Removing paging tuner setting.
  Updating empty state graphic.
  Fixing issue with the stack layout not being updated on config change.
  Ensuring that we evict ActivityInfos from the cache.

8 years agoScroll to the launch-task when toggling overview.
Winson [Tue, 15 Mar 2016 23:47:19 +0000 (16:47 -0700)]
Scroll to the launch-task when toggling overview.

Bug: 27680710
Change-Id: I3eba2cdbe0a92ef05dd6882a5e41db2a5875c98a

8 years agoEnsure that recents toggles even in the empty state.
Winson [Tue, 15 Mar 2016 22:44:48 +0000 (15:44 -0700)]
Ensure that recents toggles even in the empty state.

Bug: 27604213
Change-Id: Ie529f27e7e8110be8e86224bbad7622300fa87a7

8 years agoRemoving paging tuner setting.
Winson [Tue, 15 Mar 2016 19:22:31 +0000 (12:22 -0700)]
Removing paging tuner setting.

Bug: 26962865
Change-Id: I4f0290fa334b6153cc160cb5dbe6e333a002334c

8 years agoUpdating empty state graphic.
Winson [Tue, 15 Mar 2016 22:20:17 +0000 (15:20 -0700)]
Updating empty state graphic.

Change-Id: I7fb1f704dfbf0a300e00805d75c08b2fdabf7260

8 years agoFixing issue with the stack layout not being updated on config change.
Winson [Tue, 15 Mar 2016 18:41:37 +0000 (11:41 -0700)]
Fixing issue with the stack layout not being updated on config change.

Bug: 27376567
Change-Id: I32b9dd59a6187c87387785335dd66cc4f28372b3

8 years agoEnsuring that we evict ActivityInfos from the cache.
Winson [Tue, 15 Mar 2016 01:58:43 +0000 (18:58 -0700)]
Ensuring that we evict ActivityInfos from the cache.

- Once the data that we depend on the ActivityInfos for are evicted,
  also remove them from the cache so that they are not stale the next
  time we might want to use them.

Bug: 27495264
Change-Id: I615842df4f48deb12a051ef241991a51a10cf383

8 years agoMerge "TIF: Unhide sendAppPrivateCommand/onAppPrivateCommand" into nyc-dev
Dongwon Kang [Wed, 16 Mar 2016 17:56:11 +0000 (17:56 +0000)]
Merge "TIF: Unhide sendAppPrivateCommand/onAppPrivateCommand" into nyc-dev

8 years agoTIF: Unhide sendAppPrivateCommand/onAppPrivateCommand
Dongwon Kang [Thu, 10 Mar 2016 23:09:29 +0000 (15:09 -0800)]
TIF: Unhide sendAppPrivateCommand/onAppPrivateCommand

Bug: 25726685
Change-Id: Iad6417b4da0543043a7fa17287487313a7670209

8 years agoFix NC caused by race condition in SystemSensorManager
Peng Xu [Wed, 16 Mar 2016 01:16:45 +0000 (18:16 -0700)]
Fix NC caused by race condition in SystemSensorManager

This change fixes a race condition when two SystemSensorManager
instances are initialized the same time.

Bug: 27334914
Change-Id: I7a886abcbff2ed6f8abf87556a78d1a4afb71f91

8 years agoMerge "Apply stack crop to docked stack during animation" into nyc-dev
Chong Zhang [Wed, 16 Mar 2016 17:41:36 +0000 (17:41 +0000)]
Merge "Apply stack crop to docked stack during animation" into nyc-dev

8 years agoApply stack crop to docked stack during animation
Chong Zhang [Wed, 16 Mar 2016 01:16:01 +0000 (18:16 -0700)]
Apply stack crop to docked stack during animation

If device goes to sleep with docked stack visible, the docked stack
will be minimized after unlock. Due to "force hide enter" animation
and the entering animation of the app itself, the app will be animating
for the initial few frames. Not applying the crop causes the app to
be seen in full briefly, then minimized.

Docked divider doesn't use a final stack bounds but changes stack
bounds continously during docked stack resize, so we can apply the
bounds even during animation.

bug: 27592767
Change-Id: I12f4eb46a95c9a7dd2147b68c362e17609a8b410

8 years agoMerge "Exposing Context Hub service." into nyc-dev
Ashutosh Joshi [Wed, 16 Mar 2016 17:21:32 +0000 (17:21 +0000)]
Merge "Exposing Context Hub service." into nyc-dev

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 agoExposing Context Hub service.
Peng Xu [Thu, 11 Feb 2016 21:02:05 +0000 (13:02 -0800)]
Exposing Context Hub service.

Adding the Context hub service. This is the service that exposes
the context hub HAL to the system. The API exposed is a System API.

Change-Id: I854141714ecd21f6386e6b15b7bc9a997483ccf6

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