OSDN Git Service

android-x86/frameworks-base.git
6 years agoMerge "Update RecoveryController JavaDoc" into pi-dev
Robert Berry [Fri, 30 Mar 2018 10:37:41 +0000 (10:37 +0000)]
Merge "Update RecoveryController JavaDoc" into pi-dev

6 years agoUpdate RecoveryController JavaDoc
Robert Berry [Thu, 29 Mar 2018 16:19:38 +0000 (17:19 +0100)]
Update RecoveryController JavaDoc

Try to encode as many requirements as possible into the Recovery Agent
JavaDoc.

Bug: 70900575
Test: None, it is documentation
Change-Id: Iae05be24fa29d885f560943f256fd8d7ca692cf7

6 years agoMerge "Fix socket leaks in various android.net.Network methods." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 09:47:51 +0000 (09:47 +0000)]
Merge "Fix socket leaks in various android.net.Network methods." into pi-dev

6 years agoMerge "Use InterfaceSet for upstream interfaces." into pi-dev
Remi NGUYEN VAN [Fri, 30 Mar 2018 09:15:13 +0000 (09:15 +0000)]
Merge "Use InterfaceSet for upstream interfaces." into pi-dev

6 years agoMerge "Add tests for IPv4 of dual stack tethering." into pi-dev
Remi NGUYEN VAN [Fri, 30 Mar 2018 09:13:50 +0000 (09:13 +0000)]
Merge "Add tests for IPv4 of dual stack tethering." into pi-dev

6 years agoUse InterfaceSet for upstream interfaces.
Remi NGUYEN VAN [Fri, 9 Mar 2018 05:07:18 +0000 (14:07 +0900)]
Use InterfaceSet for upstream interfaces.

Allows using different upstream interfaces for IPv4 and IPv6.

Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Bug: 64380515
Test: runtest frameworks-net, manual (with aosp/644099 applied)
(cherry-pick of aosp I3db63f7aa5255a0229253187def7590a386c5133)
Merged-In: Ic8602dd029b5a9626aaf6651315b82ab6327037c
Merged-In: I015ac946afa581be1d94f10ab766ac00f5a4ede0

Change-Id: I8c48dab5eb67e60dadbfa974122fc884f4badd15

6 years agoAdd tests for IPv4 of dual stack tethering.
Remi NGUYEN VAN [Thu, 15 Mar 2018 02:57:14 +0000 (11:57 +0900)]
Add tests for IPv4 of dual stack tethering.

Also refactoring some Tethering and TetherInterfaceStateMachine calls
to address testability issues.

This is in preparation of other work to have IPv6-only or 464xlat
tethering working.

Test: runtest frameworks-net
Bug: 38218697
Bug: 64382985
Bug: 64976379
Bug: 64995262
Merged-In: I3b91125b1a715690c2cd417b1e937e568c755d9f
Merged-In: I05de77d9b90d147bf1d6ee7f7ee19a049afddfa1
(cherry-pick of aosp I721aca4789ddfbee5a97316aae0b378d79ee2107)

Change-Id: Idfdd1b9cd5419c1f51f0fbb1eba2f36a9c12474b

6 years agoMerge "Limit the number of routes for performance" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 08:48:25 +0000 (08:48 +0000)]
Merge "Limit the number of routes for performance" into pi-dev

6 years agoMerge "Clarify documentation for getActiveNetworkInfo and friends" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 08:22:29 +0000 (08:22 +0000)]
Merge "Clarify documentation for getActiveNetworkInfo and friends" into pi-dev

6 years agoMerge "Relax APF version check in ApfGenerator" into pi-dev
Bernie Innocenti [Fri, 30 Mar 2018 07:54:17 +0000 (07:54 +0000)]
Merge "Relax APF version check in ApfGenerator" into pi-dev

6 years agoMerge "Allow null subscriberId in NetworkStatsManager." into pi-dev
Remi NGUYEN VAN [Fri, 30 Mar 2018 07:39:23 +0000 (07:39 +0000)]
Merge "Allow null subscriberId in NetworkStatsManager." into pi-dev

6 years agoLimit the number of routes for performance
Chalard Jean [Thu, 29 Mar 2018 05:10:44 +0000 (14:10 +0900)]
Limit the number of routes for performance

In evaluating whether "most" of the addressing space is
covered, the list of routes are obtained from a third-party
app, so it's possbile the system service stalls unless
some limit is enforced on how much work it has to do.
This change limits the number of routes to 400, as determined
by time measurement on various devices.

Bug: 74176086
Test: runtest framework-net
Change-Id: Ie4a96098bc044ade87b188839586f14dd101c100

6 years agoMerge "Add unit test ValueMetricProducer on boundary" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 06:36:47 +0000 (06:36 +0000)]
Merge "Add unit test ValueMetricProducer on boundary" into pi-dev

6 years agoMerge "Add more hidden API on light greylist" into pi-dev
David Brazdil [Fri, 30 Mar 2018 06:23:21 +0000 (06:23 +0000)]
Merge "Add more hidden API on light greylist" into pi-dev

6 years agoRelax APF version check in ApfGenerator
Bernie Innocenti [Fri, 30 Mar 2018 04:08:26 +0000 (13:08 +0900)]
Relax APF version check in ApfGenerator

Instead of requiring an *exact* version, we now require a minimum
version. This is necessary if we wish to upgrade the APF interpreter in
vendor firmware independently of the framework code. Adding new opcodes
without changing the semantics of the old ones is always possible and
usually easy, so we can at least have a backwards-compatibility horizon
wider than a single version.

Bug: 36221302
Bug: 73804303
Change-Id: I4f1ed661afb2ede193188eb8086fbf2a8b45b33d
Test: Change extracted from aosp/647079 and tested there
(cherry picked from commit d6bf7ffea788f5753be48a487a2a3b34951dfcb8)

6 years agoAdd unit test ValueMetricProducer on boundary
Chenjie Yu [Sun, 25 Mar 2018 21:57:30 +0000 (14:57 -0700)]
Add unit test ValueMetricProducer on boundary

Mostly to add test to assure the corner cases are covered.
One minor logic change is if two true conditions happen, in the case
when following happen:
(bucket boundary1) -> (condition false) -> (condition true) -> (pull
triggered for the boundary1)
Previously we take the latest. Now we skip the late boundary pull.

Bug: 76384731
Test: unit test
Change-Id: I345c2210a58bf03eb91d65742573073d2668358b

6 years agoMerge "Rename GraphicsTypes.h to GraphicTypes.h" into pi-dev
Peiyong Lin [Fri, 30 Mar 2018 04:08:26 +0000 (04:08 +0000)]
Merge "Rename GraphicsTypes.h to GraphicTypes.h" into pi-dev

6 years agoClarify documentation for getActiveNetworkInfo and friends
Chalard Jean [Thu, 29 Mar 2018 08:45:24 +0000 (17:45 +0900)]
Clarify documentation for getActiveNetworkInfo and friends

For VPNs it's unobvious what these methods do, so document that.

Bug: 70917007
Test: Comment changes only. Checkdoc passes.
Change-Id: I31ec1aea356d88d969eaf9fc7d8c2ed13ce924eb

6 years agoAllow null subscriberId in NetworkStatsManager.
Remi NGUYEN VAN [Mon, 5 Mar 2018 09:14:56 +0000 (18:14 +0900)]
Allow null subscriberId in NetworkStatsManager.

Use a MATCH_MOBILE_WILDCARD template to avoid filtering by
subscriberId when querying statistics from NetworkStatsService.

Bug: 74038898
Change-Id: I8296220472a9ba37044dd1a5ede9bdb45d3ed339
Fixes: 74038898
Test: runtest frameworks-net, CTS tests pass
Merged-In: I1e4e283c6eaecf33d12488e41e0c524f6ff83954
Merged-In: Ia84d2c7cc63bf8b8bf30f133e0382fd7103bf490
(cherry-picked from aosp I4b39e7031416cb33b23d89aa36ff0f774eaa942f)

6 years agoMerge "Fix drawing sequence from using deprecated Canvas APIs." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:14:25 +0000 (03:14 +0000)]
Merge "Fix drawing sequence from using deprecated Canvas APIs." into pi-dev

6 years agoMerge "Add isAudioOn() in HeadsetProfile" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:12:51 +0000 (03:12 +0000)]
Merge "Add isAudioOn() in HeadsetProfile" into pi-dev

6 years agoMerge "Show ripples in QQS." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 03:12:33 +0000 (03:12 +0000)]
Merge "Show ripples in QQS." into pi-dev

6 years agoMerge "Volume UI updates" into pi-dev
Julia Reynolds [Fri, 30 Mar 2018 01:55:42 +0000 (01:55 +0000)]
Merge "Volume UI updates" into pi-dev

6 years agoMerge "Update AndroidTest.xml to be APCT suite ready" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 01:53:23 +0000 (01:53 +0000)]
Merge "Update AndroidTest.xml to be APCT suite ready" into pi-dev

6 years agoMerge "Add Network.fromNetworkHandle()" into pi-dev
Lorenzo Colitti [Fri, 30 Mar 2018 01:36:10 +0000 (01:36 +0000)]
Merge "Add Network.fromNetworkHandle()" into pi-dev

6 years agoMerge "AppStandby exemption: sync requested by FG apps" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 01:26:35 +0000 (01:26 +0000)]
Merge "AppStandby exemption: sync requested by FG apps" into pi-dev

6 years agoMerge "Return PERMISSION_DENIED instead of NPE when missing ActivityManager" into...
TreeHugger Robot [Fri, 30 Mar 2018 01:26:27 +0000 (01:26 +0000)]
Merge "Return PERMISSION_DENIED instead of NPE when missing ActivityManager" into pi-dev

6 years agoMerge "Unhide MediaPlayer#MEDIA_INFO_STARTED_AS_NEXT" into pi-dev
Dongwon Kang [Fri, 30 Mar 2018 01:25:59 +0000 (01:25 +0000)]
Merge "Unhide MediaPlayer#MEDIA_INFO_STARTED_AS_NEXT" into pi-dev

6 years agoAdd isAudioOn() in HeadsetProfile
ryanywlin [Wed, 28 Mar 2018 09:19:39 +0000 (17:19 +0800)]
Add isAudioOn() in HeadsetProfile

* Add this API for checking audio status from BlueTooth Headset Service

Bug: 74130772
Test: ROBOTEST_FILTER="HeadsetProfileTest" make -j40 RunSettingsLibRoboTests
Change-Id: I80b3dbc8b0f9926859ff08f6849cafca89e940a7

6 years agoMerge changes from topics "DocumentSource", "ID_API" into pi-dev
Leon Scroggins [Fri, 30 Mar 2018 00:53:53 +0000 (00:53 +0000)]
Merge changes from topics "DocumentSource", "ID_API" into pi-dev

* changes:
  Add documentation for ImageDecoder and its Source
  Rename getters and setters on ImageDecoder

6 years agoMerge "Fix Skia's impl for TextureView.getBitmap" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:48:29 +0000 (00:48 +0000)]
Merge "Fix Skia's impl for TextureView.getBitmap" into pi-dev

6 years agoMerge "Add more privacy tags." into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:43:58 +0000 (00:43 +0000)]
Merge "Add more privacy tags." into pi-dev

6 years agoMerge "wifi metrics(proto): Add new metrics for wifi native failures" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:28:15 +0000 (00:28 +0000)]
Merge "wifi metrics(proto): Add new metrics for wifi native failures" into pi-dev

6 years agoMerge "Revert "Install for all on replace"" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:26:12 +0000 (00:26 +0000)]
Merge "Revert "Install for all on replace"" into pi-dev

6 years agoMerge "Revert "[QS] Update landscape UI"" into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:23:41 +0000 (00:23 +0000)]
Merge "Revert "[QS] Update landscape UI"" into pi-dev

6 years agoRename GraphicsTypes.h to GraphicTypes.h
Peiyong Lin [Wed, 28 Mar 2018 19:03:45 +0000 (12:03 -0700)]
Rename GraphicsTypes.h to GraphicTypes.h

Renamed GraphicsTypes.h to GraphicTypes.h for nameing convention
consistency, updated namespace for ColorMode.

BUG: 77156734
Test: Build and flash
Change-Id: Ic49f6214adc63e9c0e269ba5ce0d0250e6feba2b
Merged-In: Ic49f6214adc63e9c0e269ba5ce0d0250e6feba2b

6 years agoMerge changes I3e542532,Id8f2147f into pi-dev
TreeHugger Robot [Fri, 30 Mar 2018 00:10:22 +0000 (00:10 +0000)]
Merge changes I3e542532,Id8f2147f into pi-dev

* changes:
  Update notification blocking documentation.
  Wait before computing contact affinity

6 years agoMerge "Minor correction to the javadoc to match implementation" into pi-dev
Bo Zhu [Fri, 30 Mar 2018 00:04:46 +0000 (00:04 +0000)]
Merge "Minor correction to the javadoc to match implementation" into pi-dev

6 years agoMerge "Add documentation for TCP interactions with transforms" into pi-dev
Benedict Wong [Fri, 30 Mar 2018 00:01:43 +0000 (00:01 +0000)]
Merge "Add documentation for TCP interactions with transforms" into pi-dev

6 years agoMinor correction to the javadoc to match implementation
Bo Zhu [Thu, 29 Mar 2018 23:42:29 +0000 (16:42 -0700)]
Minor correction to the javadoc to match implementation

Change the number of bytes for the length prefix for salted hash to be
4-byte instead of 1-byte

Bug: 77294103
Test: None
Change-Id: Ifa2739c757539e9b7d2aaa1ea702de0148a311ba

6 years agoMerge "Creating java package for Privacy proto." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:37:55 +0000 (23:37 +0000)]
Merge "Creating java package for Privacy proto." into pi-dev

6 years agoReturn PERMISSION_DENIED instead of NPE when missing ActivityManager
Erik Wolsheimer [Thu, 29 Mar 2018 23:21:41 +0000 (16:21 -0700)]
Return PERMISSION_DENIED instead of NPE when missing ActivityManager

Bug: 75005160
Change-Id: I710c5ee9f3d679240bf708102ef508041d0a3122

6 years agoMerge "Handle public volumes and otherwise invalid UUIDs." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:33:18 +0000 (23:33 +0000)]
Merge "Handle public volumes and otherwise invalid UUIDs." into pi-dev

6 years agoMerge "Add support for testing mode root certificate." into pi-dev
Dmitry Dementyev [Thu, 29 Mar 2018 23:25:14 +0000 (23:25 +0000)]
Merge "Add support for testing mode root certificate." into pi-dev

6 years agoMerge "Fix seccomp filter set up in zygote" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:21:50 +0000 (23:21 +0000)]
Merge "Fix seccomp filter set up in zygote" into pi-dev

6 years agoMerge "Minor javadoc fixes." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 23:11:32 +0000 (23:11 +0000)]
Merge "Minor javadoc fixes." into pi-dev

6 years agoAdd documentation for ImageDecoder and its Source
Leon Scroggins III [Thu, 29 Mar 2018 19:54:59 +0000 (15:54 -0400)]
Add documentation for ImageDecoder and its Source

Bug: 76448408
Bug: 76462125
Test: Iec21bad971dc9cffc807a412bb6329757c499baa

- Document DecodeException.getSource
- Add thread annotations
- slice() ByteBuffer inside createImageDecoder, so it can be reused
- Make ResourceSource thread safe by locking around mResDensity
- Specify that OnHeaderDecodedListener is necessary for changing default
  settings

Change-Id: I3b55d3ba1b0a2276938cb521449bceb7aa9f96e2

6 years agoUpdate AndroidTest.xml to be APCT suite ready
jdesprez [Thu, 29 Mar 2018 22:45:17 +0000 (15:45 -0700)]
Update AndroidTest.xml to be APCT suite ready

Test: atest FrameworksServicesTests
Bug: 74440293
Bug: 77290273
Change-Id: I9f20e9979b17985c8cd7cdcefd73f677b8e5ecc1

6 years agoAdd more hidden API on light greylist
David Brazdil [Thu, 29 Mar 2018 22:16:38 +0000 (23:16 +0100)]
Add more hidden API on light greylist

Bug: 64382372
Bug: 74763801
Test: make
Change-Id: I9cac934983addb32127f7571a3d290b4d57fb55d

6 years agoMerge ""02:00:00:00:00:00" invalid for MAC randomization" into pi-dev
Mukesh Agrawal [Thu, 29 Mar 2018 22:25:13 +0000 (22:25 +0000)]
Merge ""02:00:00:00:00:00" invalid for MAC randomization" into pi-dev

6 years agoMerge "Allow PO to call setSystemSetting." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 22:24:25 +0000 (22:24 +0000)]
Merge "Allow PO to call setSystemSetting." into pi-dev

6 years agoMerge "[Magnifier-37] Hide handle when overlaps magnifier" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 22:16:58 +0000 (22:16 +0000)]
Merge "[Magnifier-37] Hide handle when overlaps magnifier" into pi-dev

6 years agoMerge "Only return internal path when not visible." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 22:16:32 +0000 (22:16 +0000)]
Merge "Only return internal path when not visible." into pi-dev

6 years agoUnhide MediaPlayer#MEDIA_INFO_STARTED_AS_NEXT
Dongwon Kang [Thu, 29 Mar 2018 22:00:43 +0000 (15:00 -0700)]
Unhide MediaPlayer#MEDIA_INFO_STARTED_AS_NEXT

Expose a listener constant which is used with OnInfoListener() in
order to notify that the player instance started the playback since
previous player just completed the playback.

Bug: 76121592
Test: make offline-sdk-docs
Change-Id: I69ade8e9f6916bc653ea2831e3721dc7d171dc0e

6 years agoMerge "Fixed mClientState dump." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:58:17 +0000 (21:58 +0000)]
Merge "Fixed mClientState dump." into pi-dev

6 years agoAppStandby exemption: sync requested by FG apps
Makoto Onuki [Wed, 28 Mar 2018 21:42:42 +0000 (14:42 -0700)]
AppStandby exemption: sync requested by FG apps

Bug: 72443754
Fix: 72443754

Test: atest ${ANDROID_BUILD_TOP}/frameworks/base/services/tests/servicestests/src/com/android/server/content/SyncOperationTest.java
Test: Manual test with contacts sync:

Precondition: Put the contacts sync in RARE bucket.

adb shell dumpsys deviceidle tempwhitelist -r com.google.android.syncadapters.contacts
adb shell am make-uid-idle com.google.android.syncadapters.contacts
adb shell am set-standby-bucket com.google.android.syncadapters.contacts 40

Test 1: Toggle contacts sync from the Settings -> Account

- Make sure a sync happens.

Test 2: Mutate a contact on the WEB

- Sync is scheduled, but won't run because it has no network access.
- am set-standby-bucket com.google.android.syncadapters.contacts 30
- Sync run runs.

Test 3. adb shell requestsync -n ACCOUNT -t com.google -a com.android.contacts

- Sync is scheduled but won't run.

Test 4. adb shell requestsync -n ACCOUNT -t com.google -a com.android.contacts -f

- Sync is scheduled but it still won't run.

Test 5. adb shell requestsync -n ACCOUNT -t com.google -a com.android.contacts -F

- Sync now runs

Change-Id: I1eb972ed321d2a1a782ae23ccb806671926d3e6b

6 years agoMerge "Fixed annotation typo." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:43:14 +0000 (21:43 +0000)]
Merge "Fixed annotation typo." into pi-dev

6 years agoMerge "Add the CorePerfTests and MultiUserPerfTests to APCT metrics" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:33:45 +0000 (21:33 +0000)]
Merge "Add the CorePerfTests and MultiUserPerfTests to APCT metrics" into pi-dev

6 years agoMerge "Add MtpDocumentsProviderPerfTests to APCT metric" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:33:25 +0000 (21:33 +0000)]
Merge "Add MtpDocumentsProviderPerfTests to APCT metric" into pi-dev

6 years agoFix drawing sequence from using deprecated Canvas APIs.
Derek Sollenberger [Thu, 29 Mar 2018 21:29:29 +0000 (17:29 -0400)]
Fix drawing sequence from using deprecated Canvas APIs.

Bug: 77286317
Test: marlin-userdebug reboots successfully
Change-Id: I72688931f29ff9db6bb1e39af9d313be7df33a03

6 years agoMerge "Add permission hint, update permission slice structure" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:29:07 +0000 (21:29 +0000)]
Merge "Add permission hint, update permission slice structure" into pi-dev

6 years agoCreating java package for Privacy proto.
Kweku Adams [Thu, 29 Mar 2018 21:26:23 +0000 (14:26 -0700)]
Creating java package for Privacy proto.

Also setting fields in the GlobalSettingsProto.Private message to LOCAL.

Bug: 72814439
Bug: 74975371
Test: flash device and check incident.proto output
Change-Id: Ia580144b8b0d0cb9bd9a3297a37213ed5f60a514

6 years agoAdd support for testing mode root certificate.
Dmitry Dementyev [Wed, 28 Mar 2018 19:36:45 +0000 (12:36 -0700)]
Add support for testing mode root certificate.

1) Add Certificate
2) Helper class for end-to-end tests
3) Only create snapshot for passwords with special prefix in test mode
4) Sync only keys with insecure prefix in test mode.

Bug: 76433465
Test: adb shell am instrument -w -e package
com.android.server.locksettings.recoverablekeystore
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner

Change-Id: I6edc8c4716c3a034b6b79c7aa6f4b8478e9a3c9e

6 years agoMerge "Block root task from being shown in recents" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 21:10:31 +0000 (21:10 +0000)]
Merge "Block root task from being shown in recents" into pi-dev

6 years agoMerge "Update mobile data icons." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:58:02 +0000 (20:58 +0000)]
Merge "Update mobile data icons." into pi-dev

6 years agoMerge "Surface the log write errors to StatsLog.write" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:57:56 +0000 (20:57 +0000)]
Merge "Surface the log write errors to StatsLog.write" into pi-dev

6 years agoMerge "Add a SystemApi to control display saturation." into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:55:22 +0000 (20:55 +0000)]
Merge "Add a SystemApi to control display saturation." into pi-dev

6 years agoVolume UI updates
Julia Reynolds [Tue, 27 Mar 2018 15:17:30 +0000 (11:17 -0400)]
Volume UI updates

- Reorder streams
- constrain ripples
- Show an introductory ripple on the ringer toggle
- Add sound/vibration feedback for the ringer toggle
- resize some elements

Test: manual
Bug: 76438403
Fixes: 73892482
Change-Id: I92dd6f5681f1822ae493a5a2b218b15970293e80

6 years agoFix seccomp filter set up in zygote
Victor Hsieh [Tue, 27 Mar 2018 22:02:38 +0000 (15:02 -0700)]
Fix seccomp filter set up in zygote

This needs to land with extra syscalls whitelisted, including capset and
setresuid.  These privileged syscalls are used in the setup after the
filter is initialized.

Test: system starts, different apps run
Bug: 63944145
Bug: 76461821
Change-Id: I49e6b292805f35baffb3530461c8741e75aceb32
Merged-In: I49e6b292805f35baffb3530461c8741e75aceb32

6 years agoUpdate notification blocking documentation.
Julia Reynolds [Thu, 29 Mar 2018 19:44:13 +0000 (15:44 -0400)]
Update notification blocking documentation.

Change-Id: I3e5425321d127fbf11adfa1c4ac5bed53fc73e03
Fixes: 73750866
Test: make

6 years agoAdd more privacy tags.
Yi Jin [Thu, 29 Mar 2018 01:31:07 +0000 (18:31 -0700)]
Add more privacy tags.

Bug: 74837756
Test: manual
Change-Id: I8993ae736df171f379aa6e24e865a6fbace9d091

6 years agoHandle public volumes and otherwise invalid UUIDs.
Jeff Sharkey [Thu, 29 Mar 2018 20:29:27 +0000 (14:29 -0600)]
Handle public volumes and otherwise invalid UUIDs.

Public volumes have short UUIDs (which aren't valid 128-bit UUIDs),
so we can't pass them around.  Even if they were valid UUIDs, we
don't handle clearing cached data on them, and they most likely
don't support fallocate(), so don't match them.

Test: manual
Bug: 74132243
Change-Id: Ib855eb869a86392e96ced94a9926c0b32b87e57e

6 years agoMerge "Fix empty program list filter handling." into pi-dev
Tomasz Wasilczyk [Thu, 29 Mar 2018 20:28:12 +0000 (20:28 +0000)]
Merge "Fix empty program list filter handling." into pi-dev

6 years agoMerge "Add in/out ColorSpace to ImageDecoder" into pi-dev
Leon Scroggins [Thu, 29 Mar 2018 20:27:43 +0000 (20:27 +0000)]
Merge "Add in/out ColorSpace to ImageDecoder" into pi-dev

6 years agoMerge "Clean up codes holding mInstallLock in PackageParserCallback" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:27:35 +0000 (20:27 +0000)]
Merge "Clean up codes holding mInstallLock in PackageParserCallback" into pi-dev

6 years agoAllow PO to call setSystemSetting.
yuemingw [Wed, 28 Mar 2018 14:58:49 +0000 (15:58 +0100)]
Allow PO to call setSystemSetting.

As system setting is per user, we should allow PO to call it.

Bug: 77204777
Test: runtest -x services/tests/servicestests/src/
com/android/server/devicepolicy/DevicePolicyManagerTest.java

Change-Id: I84152fa04adb441955b48b676be6e792134b52c2

6 years agoOnly return internal path when not visible.
Jeff Sharkey [Thu, 29 Mar 2018 20:20:48 +0000 (14:20 -0600)]
Only return internal path when not visible.

When a volume is visible (wrapped in sdcardfs), we need all file
operations to go through that sdcardfs layer to keep it in sync.

Test: manual
Bug: 73922090
Change-Id: I14f1f4743f470a6cbc78030e1ea8411f9910a5b9

6 years agoMerge "Avoid clock and challenge overlap" into pi-dev
Lucas Dupin [Thu, 29 Mar 2018 20:18:32 +0000 (20:18 +0000)]
Merge "Avoid clock and challenge overlap" into pi-dev

6 years agoMerge "Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 20:09:42 +0000 (20:09 +0000)]
Merge "Fixes OpaLayoutTest to pass by adding SysuiTestCase (1/2)" into pi-dev

6 years ago[Magnifier-37] Hide handle when overlaps magnifier
Mihai Popa [Tue, 27 Mar 2018 18:03:09 +0000 (19:03 +0100)]
[Magnifier-37] Hide handle when overlaps magnifier

In most cases, the magnifier will be displayed above the current line,
so it will not overlap with the handle being dragged. However, when
there is not enough space in the current surface for the magnifier to be
displayed above the current line, the handle can overlap with the
magnifier. Since the handle is implemented as a different window, we
cannot really control the z ordering between them, and we noticed that
the handle will be rendered over the magnifier, which looks bad. This CL
better handles this situation, by hiding the handle when it would
overlap with the magnifier.

Bug: 76459199
Test: manual testing
Test: atest FrameworksCoreTests:android.widget.TextViewActivityTest
Test: atest FrameworksCoreTests:android.widget.TextViewTest
Change-Id: Id5a17fd964360df6094f9e2680e5bcca886c4d2d

6 years agoMinor javadoc fixes.
Felipe Leme [Thu, 29 Mar 2018 20:01:49 +0000 (13:01 -0700)]
Minor javadoc fixes.

Test: echo 'In TH we trust!'
Bug: 74830976

Change-Id: Ib88fc0b0275e87ea31d22759507b4c29c7849c05

6 years agoMerge "Revert "Clear pattern on completion (if fade is enabled)."" into pi-dev
Vishwath Mohan [Thu, 29 Mar 2018 19:57:37 +0000 (19:57 +0000)]
Merge "Revert "Clear pattern on completion (if fade is enabled)."" into pi-dev

6 years agoRevert "Clear pattern on completion (if fade is enabled)."
Vishwath Mohan [Thu, 29 Mar 2018 17:56:33 +0000 (17:56 +0000)]
Revert "Clear pattern on completion (if fade is enabled)."

This reverts commit b8e9782f70d6aa28368798cdb969607831c826ce.

Bug: 77257848
Test: Can change from pattern to pin/password

Change-Id: I17f9625e506c8e0839fffa95a62c904890cac603

6 years agoRename getters and setters on ImageDecoder
Leon Scroggins III [Thu, 29 Mar 2018 18:52:29 +0000 (14:52 -0400)]
Rename getters and setters on ImageDecoder

Bug: 76448408
Test: Ib8782ff10072c81a5ed2a1031a70475fffee7ccf

- Use "is" prefix for booleans instead of "get"
- Reverse "require" and "unpremultiplied" for a more natural sound
- Add "Required" to "Mutable" methods
- Add "Enabled" to "DecodeAsAlphaMask" methods

Change-Id: I644ddccd37898d89609e4534ece4ea70f74587c4

6 years agoWait before computing contact affinity
Julia Reynolds [Thu, 29 Mar 2018 19:22:59 +0000 (15:22 -0400)]
Wait before computing contact affinity

Instead of assuming we'll have an answer as soon as the handler
gets around to handling the rankingreconsideration.

Change-Id: Id8f2147f59abf6435d869b9ffcc5cf2c2b52f0f7
Fixes: 73010730
Test: cts-verifier

6 years agoFixed annotation typo.
Felipe Leme [Thu, 29 Mar 2018 18:56:58 +0000 (11:56 -0700)]
Fixed annotation typo.

Bug: 73648631
Test: not really

Change-Id: I4a10642f05e28e5e324ca5b40e50a29138f49b8b

6 years agoFix Skia's impl for TextureView.getBitmap
Leon Scroggins III [Mon, 26 Mar 2018 19:00:49 +0000 (15:00 -0400)]
Fix Skia's impl for TextureView.getBitmap

Bug: 73392905
Test: New test added with I2d4ef440f943a50b9367976ba1444f4350071bfd

When providing a width and height, getBitmap should scale to the
destination. Add a parameter to LayerDrawable::DrawLayer for a
destination rectangle to scale to. Pass the size of the bitmap in
SkiaOpenGLPipeline::copyLayerInto down to DrawLayer. The only other
caller of DrawLayer is unaffected.

Change-Id: I7aa192181c2d15bc8fd4de2fb15c4d276b05d2ac

6 years agoAdd MtpDocumentsProviderPerfTests to APCT metric
jdesprez [Thu, 29 Mar 2018 19:27:57 +0000 (12:27 -0700)]
Add MtpDocumentsProviderPerfTests to APCT metric

Add it to the suite version of APCT metric instrumentation

Test: build device-tests.zip
Bug: 77280599
Change-Id: I3a00af2382f4905d84b500b6f5523456d211689f

6 years agoMerge "Tidy up users of TRANSPORT constants." into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 19:23:38 +0000 (19:23 +0000)]
Merge "Tidy up users of TRANSPORT constants." into pi-dev

6 years agoMerge "Switch reference time to ZonedDateTime" into pi-dev
Jeff Sharkey [Thu, 29 Mar 2018 19:22:47 +0000 (19:22 +0000)]
Merge "Switch reference time to ZonedDateTime" into pi-dev

6 years agoAdd the CorePerfTests and MultiUserPerfTests to APCT metrics
jdesprez [Thu, 29 Mar 2018 19:17:50 +0000 (12:17 -0700)]
Add the CorePerfTests and MultiUserPerfTests to APCT metrics

Add them to the suite version of APCT metric instrumentation.

Test: atest CorePerfTests
Bug: 77280599
Change-Id: Ia8f0c44fcb9fd21869ed64e54483aa87556a469d

6 years agoMerge "Add the compilation reason to the dexopt dumps" into pi-dev
Calin Juravle [Thu, 29 Mar 2018 19:15:44 +0000 (19:15 +0000)]
Merge "Add the compilation reason to the dexopt dumps" into pi-dev

6 years agoMerge "Update BleScanStateChanged comment" into pi-dev
TreeHugger Robot [Thu, 29 Mar 2018 19:05:19 +0000 (19:05 +0000)]
Merge "Update BleScanStateChanged comment" into pi-dev

6 years agoShow ripples in QQS.
Amin Shaikh [Thu, 29 Mar 2018 18:38:59 +0000 (14:38 -0400)]
Show ripples in QQS.

Bug: 74581934
Test: visual
Change-Id: I59d9835b6ccb26fbef01c5687dbd5ab88f7e60a7

6 years agoFix empty program list filter handling.
Tomasz Wasilczyk [Thu, 29 Mar 2018 00:50:08 +0000 (17:50 -0700)]
Fix empty program list filter handling.

Also, fix some minor issues about program list fetching.

Test: manual
Bug: 74353024
Change-Id: I77546b806f2d9de9505e64335af47e99079cea3e

6 years agoRevert "[QS] Update landscape UI"
Rohan Shah [Thu, 29 Mar 2018 18:28:07 +0000 (18:28 +0000)]
Revert "[QS] Update landscape UI"

This reverts commit bc204efbe5602e130fbe666d6ea2b5185d42b0c4.

Reason for revert: Causes crash on rotation due to something with config.xml overriding. Reverting as it's blocking daily build
Bug: 77217078
Test: Ran build, checked rotation
Change-Id: I79e94fb1703f888ac167cdae20142e130a2e80b3

6 years agoMerge "Bouncer should not show over the full screen user switcher on boot." into...
TreeHugger Robot [Thu, 29 Mar 2018 18:28:12 +0000 (18:28 +0000)]
Merge "Bouncer should not show over the full screen user switcher on boot." into pi-dev

6 years agoFixed mClientState dump.
Felipe Leme [Thu, 29 Mar 2018 18:26:53 +0000 (11:26 -0700)]
Fixed mClientState dump.

Test: adb shell dumpsys autofill
Bug: 72986827

Change-Id: I1df10dde0e16c68004cc99b47f84026d3c06c5b8

6 years agoMerge "Fix letterbox insets when starting app" into pi-dev
Jorim Jaggi [Thu, 29 Mar 2018 18:21:29 +0000 (18:21 +0000)]
Merge "Fix letterbox insets when starting app" into pi-dev

6 years agoMerge "RemoteAnimations: Add failsafe" into pi-dev
Adrian Roos [Thu, 29 Mar 2018 18:10:28 +0000 (18:10 +0000)]
Merge "RemoteAnimations: Add failsafe" into pi-dev