OSDN Git Service

android-x86/frameworks-base.git
6 years agoReplace AssetManager with AssetManager2 implementation
Adam Lesinski [Mon, 23 Jan 2017 20:58:11 +0000 (12:58 -0800)]
Replace AssetManager with AssetManager2 implementation

Test: atest CtsContentTestCases:android.content.res.cts
Test: make libandroidfw_tests
Change-Id: I2bb6d7656d2516d371e83e541ed02f91405f6d94

6 years agoMerge "fix bluetooth puller + bluetooth adapter may be lost, in which case we should...
TreeHugger Robot [Mon, 5 Feb 2018 21:16:23 +0000 (21:16 +0000)]
Merge "fix bluetooth puller + bluetooth adapter may be lost, in which case we should try to get it again"

6 years agoMerge "camera: Extend the multiple capture request requirements"
TreeHugger Robot [Mon, 5 Feb 2018 21:13:21 +0000 (21:13 +0000)]
Merge "camera: Extend the multiple capture request requirements"

6 years agoMerge "Add a new flag to dump normal priority content from ActivityManagerService"
TreeHugger Robot [Mon, 5 Feb 2018 20:54:24 +0000 (20:54 +0000)]
Merge "Add a new flag to dump normal priority content from ActivityManagerService"

6 years agoMerge changes Ie6bebede,I21ebbfb0
Chavi Weingarten [Mon, 5 Feb 2018 20:41:38 +0000 (20:41 +0000)]
Merge changes Ie6bebede,I21ebbfb0

* changes:
  Fixed Dimmer test
  Each dimmer can only have one dim layer at a time.

6 years agoMerge "Use the correct prebuilts for lifecycles."
TreeHugger Robot [Mon, 5 Feb 2018 20:28:45 +0000 (20:28 +0000)]
Merge "Use the correct prebuilts for lifecycles."

6 years agoMerge "Make sure to set-up listener last in NonPhoneDependencyTest."
Selim Cinek [Mon, 5 Feb 2018 20:26:02 +0000 (20:26 +0000)]
Merge "Make sure to set-up listener last in NonPhoneDependencyTest."

6 years agoMerge "Fix QS -> QQS animation."
TreeHugger Robot [Mon, 5 Feb 2018 19:59:52 +0000 (19:59 +0000)]
Merge "Fix QS -> QQS animation."

6 years agoMerge "Make QS footer 90% transparent."
TreeHugger Robot [Mon, 5 Feb 2018 19:27:31 +0000 (19:27 +0000)]
Merge "Make QS footer 90% transparent."

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Mon, 5 Feb 2018 19:26:38 +0000 (19:26 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Move sharedPreferences to DE directory"
Jerry Zhang [Mon, 5 Feb 2018 19:25:34 +0000 (19:25 +0000)]
Merge "Move sharedPreferences to DE directory"

6 years agoMerge "lowpan: Use IBinder for comparison instead of interface"
TreeHugger Robot [Mon, 5 Feb 2018 19:24:26 +0000 (19:24 +0000)]
Merge "lowpan: Use IBinder for comparison instead of interface"

6 years agofix bluetooth puller
Chenjie Yu [Fri, 2 Feb 2018 06:27:17 +0000 (22:27 -0800)]
fix bluetooth puller
+ bluetooth adapter may be lost, in which case we should try to get it
again

Test: cts test
Change-Id: I331ab45cea930cb5b8b95885442214d4a410b13b

Fix: 72949299

6 years agoMerge "Move to "official" app toolkit Make target"
TreeHugger Robot [Mon, 5 Feb 2018 18:58:45 +0000 (18:58 +0000)]
Merge "Move to "official" app toolkit Make target"

6 years agoUse the correct prebuilts for lifecycles.
Aurimas Liutikas [Mon, 5 Feb 2018 18:39:54 +0000 (18:39 +0000)]
Use the correct prebuilts for lifecycles.

This change should have no effect on the app. It is simply unifying some of the prebuilts.

Bug: 72566647
Change-Id: I390febb532efca61b06c32135d0c5b82b61b9cc4

6 years agoMerge "Properly handle start results when using wait flag."
Bryce Lee [Mon, 5 Feb 2018 18:30:40 +0000 (18:30 +0000)]
Merge "Properly handle start results when using wait flag."

6 years agoFix QS -> QQS animation.
Amin Shaikh [Fri, 2 Feb 2018 20:00:25 +0000 (15:00 -0500)]
Fix QS -> QQS animation.

- Show the "fancy" animation if the user has not scrolled down in QS
- Fix the "second page" animation to fade out the QS tiles as the QQS
tiles appear

Bug: 72736470
Test: visual
Change-Id: I30b7e004aafd8a96a0950499a91b88d887d6270e

6 years agoMerge "Lazily create AnimatedImageDrawable's runnable"
TreeHugger Robot [Mon, 5 Feb 2018 18:23:18 +0000 (18:23 +0000)]
Merge "Lazily create AnimatedImageDrawable's runnable"

6 years agoMerge "STOPSHIP: Add UidCpuPower global setting"
TreeHugger Robot [Mon, 5 Feb 2018 18:10:37 +0000 (18:10 +0000)]
Merge "STOPSHIP: Add UidCpuPower global setting"

6 years agoMerge "For null status bar, can still show volume dialog"
TreeHugger Robot [Mon, 5 Feb 2018 17:45:12 +0000 (17:45 +0000)]
Merge "For null status bar, can still show volume dialog"

6 years agoMerge "Rename broadcast constants"
Julia Reynolds [Mon, 5 Feb 2018 17:07:13 +0000 (17:07 +0000)]
Merge "Rename broadcast constants"

6 years agoMerge "Linkify documentation updates."
Richard Ledley [Mon, 5 Feb 2018 17:06:53 +0000 (17:06 +0000)]
Merge "Linkify documentation updates."

6 years agoMerge "Fix missing JavaDoc of IMM#toggleSoftInput()"
TreeHugger Robot [Mon, 5 Feb 2018 16:56:45 +0000 (16:56 +0000)]
Merge "Fix missing JavaDoc of IMM#toggleSoftInput()"

6 years agoLazily create AnimatedImageDrawable's runnable
Leon Scroggins III [Tue, 30 Jan 2018 22:16:13 +0000 (17:16 -0500)]
Lazily create AnimatedImageDrawable's runnable

Test: manual

This is only necessary for the software case. No need to create it for
the more typical case of drawing in hardware.

Change-Id: I0f041d59445f874160eeea5b13a54fd89fa26df8

6 years agoMerge "PackageSignatures: Add close bracket for "past signatures" output."
TreeHugger Robot [Mon, 5 Feb 2018 16:27:08 +0000 (16:27 +0000)]
Merge "PackageSignatures: Add close bracket for "past signatures" output."

6 years agoMerge "Updating smart text selection animation"
TreeHugger Robot [Mon, 5 Feb 2018 15:59:56 +0000 (15:59 +0000)]
Merge "Updating smart text selection animation"

6 years agoProperly handle start results when using wait flag.
Bryce Lee [Wed, 31 Jan 2018 00:00:03 +0000 (16:00 -0800)]
Properly handle start results when using wait flag.

Previously, delivering an intent to the foreground activity was
inccorectly classified as START_TASK_TO_FRONT, rather than
START_DELIVERED_TO_TOP. In the direct case, this occurs when the
target activity is already in front. In the indirect case, this
can occur when the target activity is in the background and
launched by a trampoline in the same task. The trampoline launch
will bring forward the task. However, since it is not focusable
(finishing at the time the second launch occurs), the target
activity is already on top.

This changelist rectifies this issue by first handling
START_DELIVERED_TO_TOP in the direct wait case. This includes
setting the who value of result to the started real activity. This
changelist addresses the indirect case by reporting delivered to
top in the case there are waiting activities after a result.

Fixes: 72654906
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerAmStartOptionsTests
Test: atest FrameworksServicesTests:com.android.server.am.ActivityStackSupervisorTests
Change-Id: I65043e35ef8a20f90bf7cccbf4f1caf110cca246

6 years agoMerge "Revert "OWNERS files don't really work with groups yet.""
TreeHugger Robot [Mon, 5 Feb 2018 15:43:27 +0000 (15:43 +0000)]
Merge "Revert "OWNERS files don't really work with groups yet.""

6 years agoMake QS footer 90% transparent.
Amin Shaikh [Wed, 31 Jan 2018 23:08:34 +0000 (18:08 -0500)]
Make QS footer 90% transparent.

Bug: 70799330
Test: visual
Change-Id: I08cca7fdfcfd7ffa71b1fcd32480f0c30da09377

6 years agoMerge "Introduce "adb shell dpm force-security-logs""
TreeHugger Robot [Mon, 5 Feb 2018 15:16:23 +0000 (15:16 +0000)]
Merge "Introduce "adb shell dpm force-security-logs""

6 years agoLinkify documentation updates.
Richard Ledley [Mon, 29 Jan 2018 11:58:13 +0000 (11:58 +0000)]
Linkify documentation updates.

Test: Building succeeds.

Bug: 72562811

Change-Id: Idf8979107f487ca93fe970b689a16941565c22b5

6 years agoRename broadcast constants
Julia Reynolds [Mon, 5 Feb 2018 15:02:30 +0000 (10:02 -0500)]
Rename broadcast constants

Test: runtest systemui-notification, cts verifier
Change-Id: I41812e7fa0ae532fbdff5c5ba88887d1b1187b79
Fixes: 72762612

6 years agoMerge "Generate network watchlist report as proto"
Ricky Wai [Mon, 5 Feb 2018 14:09:59 +0000 (14:09 +0000)]
Merge "Generate network watchlist report as proto"

6 years agoMerge "MediaSession2: Implement playFromXXX and prepareFromXXX"
TreeHugger Robot [Mon, 5 Feb 2018 13:51:47 +0000 (13:51 +0000)]
Merge "MediaSession2: Implement playFromXXX and prepareFromXXX"

6 years agoMerge "Turn on network watchlist service by default"
Ricky Wai [Mon, 5 Feb 2018 13:36:06 +0000 (13:36 +0000)]
Merge "Turn on network watchlist service by default"

6 years agoUpdating smart text selection animation
Jan Althaus [Fri, 2 Feb 2018 16:39:22 +0000 (17:39 +0100)]
Updating smart text selection animation

Now animates the highlight itself as opposed to an outline.

Bug: 70540865
Test: Manually tested it with single and multi-line - ltr and rtl
Change-Id: I8afee259c9952fcff0b713bca62c82a1022f2b0d

6 years agoMake sure to set-up listener last in NonPhoneDependencyTest.
Eliot Courtney [Mon, 5 Feb 2018 09:39:45 +0000 (18:39 +0900)]
Make sure to set-up listener last in NonPhoneDependencyTest.

It turns out that when the listener is added, a notification could come
in, and then call one of the managers that wasn't set up yet, causing an
NPE. This led to some flaky presubmits.

Bug: 72648842
Test: none
Change-Id: I250e916246ba7ce8aa356e941ad2b5551303c472

6 years agoMerge "VV2 & MCV2: Move handling MediaControlView2 visibility logic to VV2"
TreeHugger Robot [Mon, 5 Feb 2018 10:17:33 +0000 (10:17 +0000)]
Merge "VV2 & MCV2: Move handling MediaControlView2 visibility logic to VV2"

6 years agoMerge "Autofill compatibility mode."
TreeHugger Robot [Mon, 5 Feb 2018 09:55:29 +0000 (09:55 +0000)]
Merge "Autofill compatibility mode."

6 years agoMediaSession2: Implement playFromXXX and prepareFromXXX
Jaewan Kim [Mon, 5 Feb 2018 08:27:07 +0000 (17:27 +0900)]
MediaSession2: Implement playFromXXX and prepareFromXXX

Test: Run all MediaComponents tests once
Bug: 72798434
Change-Id: Ib45fea28c3431edc91af5120270275c906df78b6

6 years agoVV2 & MCV2: Move handling MediaControlView2 visibility logic to VV2
Insun Kang [Mon, 5 Feb 2018 06:21:28 +0000 (15:21 +0900)]
VV2 & MCV2: Move handling MediaControlView2 visibility logic to VV2

MediaControlView2's setTimeout API is removed and MCV2's visibility
handling logic is moved into VideoView2.

Test: build
Change-Id: I149119148f159c78e86c5061d247f0a434310719

6 years agoMerge "MediaSession2: Change controller's behavior when connected"
TreeHugger Robot [Mon, 5 Feb 2018 07:08:15 +0000 (07:08 +0000)]
Merge "MediaSession2: Change controller's behavior when connected"

6 years agoAdd new callback to customize input event handling
Daichi Hirono [Thu, 1 Feb 2018 01:59:48 +0000 (10:59 +0900)]
Add new callback to customize input event handling

Bug: 63914027
Test: DragDropControllerTests
Change-Id: I7f606ffd7a803e7f884d236bbac9dc3be8da5de1

6 years agoFix missing JavaDoc of IMM#toggleSoftInput()
Yohei Yukawa [Mon, 5 Feb 2018 06:26:25 +0000 (15:26 +0900)]
Fix missing JavaDoc of IMM#toggleSoftInput()

This CL addresses a typo in the JavaDoc of IMM#toggleSoftInput(),
which has prevented it from being treated as a valid JavaDoc.

Note that this CL removes @hide simply because it is too late.  The
method in question has already been exposed to developers since API
level 3 (Cupcake) because of the typo.

Bug: 13002424
Test: make -j doc-comment-check-docs
Change-Id: I3e42d433f20c56ee63373bb390aad59e3bd7ec4f

6 years agoMerge "Exempt sync requests by FG app from app-standby"
TreeHugger Robot [Mon, 5 Feb 2018 05:11:18 +0000 (05:11 +0000)]
Merge "Exempt sync requests by FG app from app-standby"

6 years agoMediaSession2: Change controller's behavior when connected
Jaewan Kim [Mon, 5 Feb 2018 04:27:58 +0000 (13:27 +0900)]
MediaSession2: Change controller's behavior when connected

This stops calling
MediaController2.ControllerCallback.onPlaybackStateChanged() when the
controller is connected.

This is the preliminary step towards sending session's current values
to a controller when it's connected.

Bug: 72547163
Test: Run all tests once
Change-Id: I4b5b2ec008500cc71679883792b0ef44f1c24aad

6 years agoMerge "VideoView2: Replace showSubtitle with setSubtitleEnabled"
TreeHugger Robot [Mon, 5 Feb 2018 02:07:55 +0000 (02:07 +0000)]
Merge "VideoView2: Replace showSubtitle with setSubtitleEnabled"

6 years agoMerge "Update OWNER files for connectivity" am: 771e229a23 am: ce0c31d392
Hugo Benichi [Mon, 5 Feb 2018 00:54:50 +0000 (00:54 +0000)]
Merge "Update OWNER files for connectivity" am: 771e229a23 am: ce0c31d392
am: 9a70530107

Change-Id: I1754c7bd602db58bd6c4e72d5f0dd77786d730da

6 years agoMerge "Update OWNER files for connectivity" am: 771e229a23
Hugo Benichi [Mon, 5 Feb 2018 00:39:54 +0000 (00:39 +0000)]
Merge "Update OWNER files for connectivity" am: 771e229a23
am: ce0c31d392

Change-Id: I5a995856aa347874b534312212ca73ffff0193c0

6 years agoMerge "Update OWNER files for connectivity"
Hugo Benichi [Mon, 5 Feb 2018 00:30:14 +0000 (00:30 +0000)]
Merge "Update OWNER files for connectivity"
am: 771e229a23

Change-Id: I6daf999785a855ab2a7c97f113f5f8ec87a13256

6 years agoMerge "WifiConfiguration validation improvement"
Michael Plass [Sun, 4 Feb 2018 23:19:50 +0000 (23:19 +0000)]
Merge "WifiConfiguration validation improvement"

6 years agoMerge "Update OWNER files for connectivity"
Hugo Benichi [Sun, 4 Feb 2018 23:18:52 +0000 (23:18 +0000)]
Merge "Update OWNER files for connectivity"

6 years agoMerge "Update ServiceState to adapt NetworkService change."
Xiangyu/Malcolm Chen [Sun, 4 Feb 2018 23:12:34 +0000 (23:12 +0000)]
Merge "Update ServiceState to adapt NetworkService change."

6 years agoMerge "resolve merge conflicts of c3415d2bc61c52c9dba8cee8f7587580ede53941 to master"
Jack Yu [Sun, 4 Feb 2018 04:44:42 +0000 (04:44 +0000)]
Merge "resolve merge conflicts of c3415d2bc61c52c9dba8cee8f7587580ede53941 to master"

6 years agoresolve merge conflicts of c3415d2bc61c52c9dba8cee8f7587580ede53941 to master
Jack Yu [Sun, 4 Feb 2018 04:42:01 +0000 (20:42 -0800)]
resolve merge conflicts of c3415d2bc61c52c9dba8cee8f7587580ede53941 to master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I072c3d46b81dee0a83036ea7d5e91bd1989fa250

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 4 Feb 2018 04:39:17 +0000 (04:39 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 4 Feb 2018 04:36:03 +0000 (04:36 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoMerge "Import translations. DO NOT MERGE"
TreeHugger Robot [Sun, 4 Feb 2018 04:35:44 +0000 (04:35 +0000)]
Merge "Import translations. DO NOT MERGE"

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 4 Feb 2018 02:23:32 +0000 (18:23 -0800)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Assume the worst when EntryManager is missing."
TreeHugger Robot [Sun, 4 Feb 2018 01:39:01 +0000 (01:39 +0000)]
Merge "Assume the worst when EntryManager is missing."

6 years agoMerge "Added permission for binding data service" am: 0276f4290f am: f5d3e300b3
Jack Yu [Sun, 4 Feb 2018 01:29:45 +0000 (01:29 +0000)]
Merge "Added permission for binding data service" am: 0276f4290f am: f5d3e300b3
am: 325b8bdb3a  -s ours

Change-Id: I538de333acf51bc24fa248fc24223fa47598b4a4

6 years agoMerge "Merge "Add function to update LE connection parameters" am: 853628db72 am...
Android Build Merger (Role) [Sun, 4 Feb 2018 01:22:41 +0000 (01:22 +0000)]
Merge "Merge "Add function to update LE connection parameters" am: 853628db72 am: c3afcfc38c am: a4c600cb03"

6 years agoMerge "Add function to update LE connection parameters" am: 853628db72 am: c3afcfc38c
Stanley Tng [Sun, 4 Feb 2018 01:20:48 +0000 (01:20 +0000)]
Merge "Add function to update LE connection parameters" am: 853628db72 am: c3afcfc38c
am: a4c600cb03

Change-Id: I3bbb6c7a0f51d17690c3ae47a228758a45c155ee

6 years agoMerge "Merge "Add DENSITY_440" am: 6c40bbdc5e am: a21fa41755 am: 1d64dc96f7"
Android Build Merger (Role) [Sun, 4 Feb 2018 01:13:56 +0000 (01:13 +0000)]
Merge "Merge "Add DENSITY_440" am: 6c40bbdc5e am: a21fa41755 am: 1d64dc96f7"

6 years agoMerge "Add DENSITY_440" am: 6c40bbdc5e am: a21fa41755
weijuncheng [Sun, 4 Feb 2018 01:13:30 +0000 (01:13 +0000)]
Merge "Add DENSITY_440" am: 6c40bbdc5e am: a21fa41755
am: 1d64dc96f7

Change-Id: I54a18f245ebf70d9d1670973e02a318743a4ec3c

6 years agoUpdate ServiceState to adapt NetworkService change.
Malcolm Chen [Tue, 30 Jan 2018 01:09:21 +0000 (17:09 -0800)]
Update ServiceState to adapt NetworkService change.

SST is re-routed to get cellular registration states from
CellularNetworkService. Updating ServiceState to adapt that
change.

Bug: 64132030
Test: unittest
Change-Id: Ifd557ce50a4419ead6125cda29c79d331508448e

6 years agoMerge "Add strings and carrier config needed network service."
Xiangyu/Malcolm Chen [Sun, 4 Feb 2018 01:11:03 +0000 (01:11 +0000)]
Merge "Add strings and carrier config needed network service."

6 years agoMerge "DO NOT MERGE volume shows when status bar is null" am: b5993cfb8e -s ours...
Beverly [Sun, 4 Feb 2018 01:08:14 +0000 (01:08 +0000)]
Merge "DO NOT MERGE volume shows when status bar is null" am: b5993cfb8e  -s ours am: 9cd12a53b2
am: 548284fb6d  -s ours

Change-Id: I87eb5369d0adff1684f2e8ded3e362774f4beac4

6 years agoMerge "Enable multiple active Ethernet interfaces" am: 0a6c539901 am: ac908d6728
Pavel Maltsev [Sun, 4 Feb 2018 01:06:51 +0000 (01:06 +0000)]
Merge "Enable multiple active Ethernet interfaces" am: 0a6c539901 am: ac908d6728
am: 3379a3eff9

Change-Id: Ibd84c2ba3252e3d65ba4a63a0be912747ea18df9

6 years agoMerge "Add missing return statement in setTempFileRootDirectory" am: d281b1a116 am...
Hall Liu [Sun, 4 Feb 2018 00:57:17 +0000 (00:57 +0000)]
Merge "Add missing return statement in setTempFileRootDirectory" am: d281b1a116 am: a376949816
am: 048b1517b4

Change-Id: I261b953da7e9edb048becbfcfffb3925f2371ec2

6 years agoMerge "Use IntDef for BCD_EXTENDED_TYPE" am: 97246476a7 am: a2311212a6
Pengquan Meng [Sun, 4 Feb 2018 00:49:55 +0000 (00:49 +0000)]
Merge "Use IntDef for BCD_EXTENDED_TYPE" am: 97246476a7 am: a2311212a6
am: a8f341c47a

Change-Id: I5ddcab70828fec9f59de920feb085c867bd0059e

6 years agoMerge "Add NFC Transaction Event intent actions and extras" am: 337e2feada am: 8b35111d3e
Ruchi Kandoi [Sun, 4 Feb 2018 00:44:02 +0000 (00:44 +0000)]
Merge "Add NFC Transaction Event intent actions and extras" am: 337e2feada am: 8b35111d3e
am: 9750a6f69a

Change-Id: I8c9f734f8e51ecae23cb225a4295e1b6b63be307

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 4 Feb 2018 00:25:57 +0000 (16:25 -0800)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Media process should run with "write" access."
Jeff Sharkey [Sun, 4 Feb 2018 00:12:22 +0000 (00:12 +0000)]
Merge "Media process should run with "write" access."

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 4 Feb 2018 00:11:51 +0000 (16:11 -0800)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Rename MbmsDownloadSession#getDownloadStatus" am: a07d895f09 am: be305be046
Hall Liu [Sun, 4 Feb 2018 00:05:22 +0000 (00:05 +0000)]
Merge "Rename MbmsDownloadSession#getDownloadStatus" am: a07d895f09 am: be305be046
am: c8cb3aad58

Change-Id: I0c5313fef938e6d9dfbb7779f336a3e3b34fe6c2

6 years agoAssume the worst when EntryManager is missing.
Jeff Sharkey [Sat, 3 Feb 2018 23:45:45 +0000 (16:45 -0700)]
Assume the worst when EntryManager is missing.

It's somehow missing during pre-submit tests, so try patching over
to help tests pass.  It triggers wtf() to help ensure we chase down
to zero.

Test: sure
Bug: 72898411
Change-Id: I8972da72579f2a4d83aecc9255a74ea9406fd64f

6 years agoMerge "Move bugreport storage enabling into OS."
Jeff Sharkey [Sat, 3 Feb 2018 23:41:16 +0000 (23:41 +0000)]
Merge "Move bugreport storage enabling into OS."

6 years agoMedia process should run with "write" access.
Jeff Sharkey [Sat, 3 Feb 2018 22:32:31 +0000 (15:32 -0700)]
Media process should run with "write" access.

The WRITE_MEDIA_STORAGE permission had inadvertently been giving apps
the "default" view of storage.  This had worked for a long since,
since we also gave them the "sdcard_rw" permission, but a recent
security patch broke this for secondary users.

Apps holding this permission should have been mounted "write" all
along, and relied on that view to access storage devices.  This also
means they no longer need the "sdcard_rw" GID.

Test: builds, boots, secondary user media/camera works
Bug: 727329067173780672224817
Change-Id: I5cd687a1e128024f33b4acd93c15e75192ed1c85

6 years agoMerge "Polished rapid data usage alerting."
Jeff Sharkey [Sat, 3 Feb 2018 22:07:34 +0000 (22:07 +0000)]
Merge "Polished rapid data usage alerting."

6 years agoMove bugreport storage enabling into OS.
Jeff Sharkey [Sat, 3 Feb 2018 20:26:47 +0000 (13:26 -0700)]
Move bugreport storage enabling into OS.

It's convoluted to enable/disable bugreport storage based on the
"power menu" shortcut, and it's frustrating for dogfooders to have
to manually cycle this setting once to enable the provider.

So move the enable/disable logic directly into the OS, toggle it
when the broader DEVELOPMENT_SETTINGS_ENABLED changes, and update
to match state at device boot.

Test: builds, boots
Bug: 32540478
Change-Id: Iadfa106142fa3e252dfe6adb9712f7c67b8e9f65

6 years agoPolished rapid data usage alerting.
Jeff Sharkey [Sat, 3 Feb 2018 19:08:16 +0000 (12:08 -0700)]
Polished rapid data usage alerting.

Switch to reading limit information from NetworkPolicy, which is
typically populated from SubscriptionPlan.  This lets users have
direct control over the limits we're using to trigger rapid usage
alerts, and makes the feature work without requiring that the carrier
wire up SubscriptionPlan information.

Let the user "snooze" the rapid usage alerting for a day at a time,
so we're less annoying to them.  Send the snooze broadcasts as
foreground, so that we don't re-post notifications while working
through a long background broadcast queue.

Fix notifications to use the "ALERTS" channel, since these alerts
really are higher priority than simple "STATUS" updates; this also
gives us HUN behavior when in full-screen apps.

Update both service and unit tests to work directly with
NotificationManager, instead of the raw AIDL.

Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 7244463872436702
Change-Id: I8d9138522a7779cc68eb9fa4777b50facb6567b7

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sat, 3 Feb 2018 16:50:48 +0000 (08:50 -0800)]
Import translations. DO NOT MERGE

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

6 years agoMerge "Added data service configuration support" am: 2e9bdd78f2
Jack Yu [Sat, 3 Feb 2018 06:19:08 +0000 (06:19 +0000)]
Merge "Added data service configuration support" am: 2e9bdd78f2
am: de0d22d73a

Change-Id: I47f6d9669c39060d70ba156bc121421c3dba9537

6 years agoMerge "Added permission for binding data service" am: 0276f4290f
Jack Yu [Sat, 3 Feb 2018 06:09:36 +0000 (06:09 +0000)]
Merge "Added permission for binding data service" am: 0276f4290f
am: f5d3e300b3

Change-Id: Id159d6a83658e5c2fa1b22fd27459287cc37bff3

6 years agoMerge "Added data service configuration support"
Jack Yu [Sat, 3 Feb 2018 06:06:42 +0000 (06:06 +0000)]
Merge "Added data service configuration support"
am: 2e9bdd78f2

Change-Id: Idc7da08a22dd13f508d37df31966fb8346485ec4

6 years agoMerge "Added permission for binding data service"
Jack Yu [Sat, 3 Feb 2018 06:00:15 +0000 (06:00 +0000)]
Merge "Added permission for binding data service"
am: 0276f4290f

Change-Id: I22bf93b3233f8b1bf8edceaf64a6956a4517def6

6 years agoMerge "Added data service configuration support"
Jack Yu [Sat, 3 Feb 2018 04:40:46 +0000 (04:40 +0000)]
Merge "Added data service configuration support"

6 years agoMerge "Added permission for binding data service"
Treehugger Robot [Sat, 3 Feb 2018 04:40:06 +0000 (04:40 +0000)]
Merge "Added permission for binding data service"

6 years agoMerge "Add function to update LE connection parameters" am: 853628db72
Stanley Tng [Sat, 3 Feb 2018 04:21:58 +0000 (04:21 +0000)]
Merge "Add function to update LE connection parameters" am: 853628db72
am: c3afcfc38c

Change-Id: Ib35d2c5314dcf6d12abf4d097b10dfc5df34bb55

6 years agoMerge "Add function to update LE connection parameters"
Stanley Tng [Sat, 3 Feb 2018 04:10:22 +0000 (04:10 +0000)]
Merge "Add function to update LE connection parameters"
am: 853628db72

Change-Id: I7a6a653fa9d007a71e5155180fc8e78289ad9b81

6 years agoAutofill compatibility mode.
Svetoslav Ganov [Wed, 27 Dec 2017 23:17:14 +0000 (15:17 -0800)]
Autofill compatibility mode.

Autofill helps users fill credentials, addresses, payment methods,
emails, etc without manually typing. When focus lands on a fillable
element the platform captures a snapshot of the screen content and
sends it to an autofill service for analysis and suggestions. The
screen snapshot is a structured representation of the screen content.
If this content is composed of standard widgets, autofill works
out-of-the-box. However, some apps do their own rendering and
the content in this case looks like a single view to the platform
while it may have semantic structure. For example, a view may render
a login page with two input test fields.

The platform exposes APIs for apps to report virtual view structure
allowing autofill services to handle apps that have virtual content.
As opposed to apps using standard widgets, this case requires the app
developer to implement the new APIs which may require a fair amount
of code and could be seen as a processes that could take some time.
The most prominent typs of apps that fall into this category are
browsers.

Until most apps rendering virtual content and specifically browsers
don't implement the virutal APIs, autofill providers need to fall-
back to using the accessibliity APIs to provide autofill support
for these apps. This requires developers to work against two sets
of APIs - autofill and accessibility - which is incovenient and error
prone. Also, users need to enable two plugins - autofill and
accessibility which is confusing. Additionally, the privacy and
perfomance impact of using the accessibility APIs cannot be addressed
while autofill providers need to use thes APis.

This change adds an autofill compatibility mode that would allow
autofill services to work with apps that don't implement the
virtual structure autofill APIs. The key idea is to locally enable
accessibility for the target package and remap accessibility to
autofill APIs and vise versa. This way an autofill provider codes
against a single set of APIs, the users enable a single plugin,
the privacy/performance implications of using the accessibility
APIs are addressed, the target app only takes a performance hit
since accessibility is enabled locally which is still more efficient
compared to the performance hit it would incur if accessibility is
enabled globally.

To enable compatibility mode an autofill service declares in its
metadata which packages it is interested in and also what is
the max version code of the package for which to enable compat
mode. Targeted versioning allows targeting only older versions of
the package that are known to not support autofill while newer
versions that are known to support autofill would work in normal
mode.

Since compatibility mode should be used only as a fallback we
have a white list setting with the packages for which this mode
can be requested. This allows applying policy to target only
apps that are known to not support autofill.

Test:
     cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
     cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases

bug:72811034

Change-Id: I11f1580ced0f8b4300a10b3a5174a1758a5702a0

6 years agoMerge "Dump usb as DualDump"
TreeHugger Robot [Sat, 3 Feb 2018 02:56:30 +0000 (02:56 +0000)]
Merge "Dump usb as DualDump"

6 years agoMerge "Show scrim state on systraces"
TreeHugger Robot [Sat, 3 Feb 2018 02:13:24 +0000 (02:13 +0000)]
Merge "Show scrim state on systraces"

6 years agoMerge "Pass in the user defined by Context."
Jeff Sharkey [Sat, 3 Feb 2018 02:12:22 +0000 (02:12 +0000)]
Merge "Pass in the user defined by Context."

6 years agoPass in the user defined by Context.
Jeff Sharkey [Fri, 2 Feb 2018 20:25:31 +0000 (13:25 -0700)]
Pass in the user defined by Context.

The majority of Manager-style classes already use Context.getUserId()
when making calls into the OS, so clean up the remaining callers to
unify behind this strategy.

This gives @SystemApi developers a nice clean interface to interact
across user boundaries, instead of manually adding "AsUser" or
"ForUser" method variants, which would quickly become unsustainable.

Test: builds, boots
Bug: 72863821
Exempt-From-Owner-Approval: trivial changes
Change-Id: Ib772ec4438e57a2ad4950821b9432f9842998451

6 years agoMerge "Renamed BIND_DATA_SERVICE to BIND_TELEPHONY_DATA_SERVICE"
TreeHugger Robot [Sat, 3 Feb 2018 02:01:46 +0000 (02:01 +0000)]
Merge "Renamed BIND_DATA_SERVICE to BIND_TELEPHONY_DATA_SERVICE"

6 years agoMerge "Revert "Move CarServiceHelperService""
Steve Paik [Sat, 3 Feb 2018 01:58:15 +0000 (01:58 +0000)]
Merge "Revert "Move CarServiceHelperService""

6 years agoRevert "Move CarServiceHelperService"
Steve Paik [Sat, 3 Feb 2018 01:54:11 +0000 (01:54 +0000)]
Revert "Move CarServiceHelperService"

This reverts commit ee47dea99adebb4b10ad95b744bb53b5d5f5b606.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Ie26a7b08cb2d86c71f3d8c8c509d9803d0ad293b

6 years agoMerge "Add DENSITY_440" am: 6c40bbdc5e
weijuncheng [Sat, 3 Feb 2018 01:37:33 +0000 (01:37 +0000)]
Merge "Add DENSITY_440" am: 6c40bbdc5e
am: a21fa41755

Change-Id: I3024b00c5060d7f6055d1e2e60a36061a10bf0ad