OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Staged Rollbacks Part 1: Pre reboot data copy."
Narayan Kamath [Tue, 5 Feb 2019 15:20:55 +0000 (15:20 +0000)]
Merge "Staged Rollbacks Part 1: Pre reboot data copy."

5 years agoMerge "Made ContentCapture APIs available for testing."
Felipe Leme [Tue, 5 Feb 2019 15:20:04 +0000 (15:20 +0000)]
Merge "Made ContentCapture APIs available for testing."

5 years agoMerge "Migrate suspend HAL interactions to new suspend control AIDL."
Santos Cordon [Tue, 5 Feb 2019 15:17:43 +0000 (15:17 +0000)]
Merge "Migrate suspend HAL interactions to new suspend control AIDL."

5 years agoMerge "Refactored how initial content capture events are sent."
Felipe Leme [Tue, 5 Feb 2019 15:15:17 +0000 (15:15 +0000)]
Merge "Refactored how initial content capture events are sent."

5 years agoMerge "Restrict reflection access to mLayoutParams"
Jakub Gielzak [Tue, 5 Feb 2019 15:01:29 +0000 (15:01 +0000)]
Merge "Restrict reflection access to mLayoutParams"

5 years agoMerge "Add ClockOptionsProvider for more realistic previews."
TreeHugger Robot [Tue, 5 Feb 2019 14:31:30 +0000 (14:31 +0000)]
Merge "Add ClockOptionsProvider for more realistic previews."

5 years agoMerge "Add error handling and other improvements to Bugreporting API" am: cefdee8540...
Nandana Dutt [Tue, 5 Feb 2019 14:26:30 +0000 (06:26 -0800)]
Merge "Add error handling and other improvements to Bugreporting API" am: cefdee8540 am: 98e6b6bb58
am: d77536e116

Change-Id: I8fc19c7c7c1f08e93b48b4456ec5041f41045f5f

5 years agoMerge "Add error handling and other improvements to Bugreporting API" am: cefdee8540
Nandana Dutt [Tue, 5 Feb 2019 14:15:14 +0000 (06:15 -0800)]
Merge "Add error handling and other improvements to Bugreporting API" am: cefdee8540
am: 98e6b6bb58

Change-Id: Id84876ed95cd327ef09d5053b784e0842a06cce1

5 years agoMerge "Add error handling and other improvements to Bugreporting API"
Nandana Dutt [Tue, 5 Feb 2019 14:05:33 +0000 (06:05 -0800)]
Merge "Add error handling and other improvements to Bugreporting API"
am: cefdee8540

Change-Id: Idf656b38aff877529ca9f4b13f87a6bb7bc5ac70

5 years agoMerge "Migrate to androidx.test.espresso"
TreeHugger Robot [Tue, 5 Feb 2019 14:03:47 +0000 (14:03 +0000)]
Merge "Migrate to androidx.test.espresso"

5 years agoMerge "Allow non-mainline package rollbacks"
Zimuzo Ezeozue [Tue, 5 Feb 2019 13:59:42 +0000 (13:59 +0000)]
Merge "Allow non-mainline package rollbacks"

5 years agoMerge "Add error handling and other improvements to Bugreporting API"
Nandana Dutt [Tue, 5 Feb 2019 13:48:13 +0000 (13:48 +0000)]
Merge "Add error handling and other improvements to Bugreporting API"

5 years agoMerge "Create dummy apex files for testing Rollbacks."
Richard Uhler [Tue, 5 Feb 2019 13:37:59 +0000 (13:37 +0000)]
Merge "Create dummy apex files for testing Rollbacks."

5 years agoRestrict reflection access to mLayoutParams
Jakub Gielzak [Tue, 5 Feb 2019 12:33:43 +0000 (12:33 +0000)]
Restrict reflection access to mLayoutParams

Users should rely on the getter / setter. The setter additionally
guarantees internal state correctness.

Bug: 123768937
Test: n/a

Change-Id: Ia2dcbe9db3fdeab8aeac9b80dcfaaa0932724dc2

5 years agoMerge "Read "gctype" flag from namespace "runtime_native_boot"."
Roland Levillain [Tue, 5 Feb 2019 12:40:26 +0000 (12:40 +0000)]
Merge "Read "gctype" flag from namespace "runtime_native_boot"."

5 years agoStaged Rollbacks Part 1: Pre reboot data copy.
Narayan Kamath [Fri, 1 Feb 2019 14:16:37 +0000 (14:16 +0000)]
Staged Rollbacks Part 1: Pre reboot data copy.

For staged sessions, the staging manager calls through to the
Rollback manager during its pre-reboot flow if package rollback
is enabled for the session. It passes through a list of sessionIds
representing a single package session or siblings in a multi package
session that rollback must be enabled for. The rollback manager then
performs the following actions :

- Makes a copy of APKs and APEXes corresponding to the sessionIds
  provided by the staging manager.

- Creates and persists RollbackData objects for the staged session.
  and marks that they're part of a staged install and not a regular
  install. This change augments RollbackData with sessionIds of
  the staged session and PackageRollbackInfo with a flag indicating
  whether or not it represents an APEX.

In a follow up change, the StagingManager will call through to the
RollbackManager post reboot and provide a mapping between the staged
session ID for the APK section of the staged install. This will allow
the RollbackManager to make userdata backups and finally mark the Rollback
as available.

Test: atest RollbackTest AppDataRollbackHelperTest
Test: adb install-multi-package --staged --enable-rollback \
        ./apex.test.apex ./RollbackTestAppAv2.apk

Change-Id: I4a7b154844684ddb26b7c95d39be36f542fb5d4b

5 years agoMigrate suspend HAL interactions to new suspend control AIDL.
Santos Cordon [Wed, 30 Jan 2019 01:39:44 +0000 (01:39 +0000)]
Migrate suspend HAL interactions to new suspend control AIDL.

Use the new Suspend Control Service AIDL definition to communicate with
the suspend HAL instead of using the HAL interface directly.

Bug: 121210355
Test: manual - verify auto-suspend loop is still processing.
Change-Id: I61cf05a8095f9d121fafb862def8239b325a7f43

5 years agoAllow non-mainline package rollbacks
Zimuzo [Mon, 4 Feb 2019 15:34:08 +0000 (15:34 +0000)]
Allow non-mainline package rollbacks

If3aaf8f2c454f45b9d79c9dae5a21d356e4cf029 prevented rolling back
packages that were not part of a mainline update. This made it
difficult to test and the auto PackageWatchdog test was ignored in the
meantime. We are now allowing non-mainling package rollbacks and
re-enabling the test.

I8dd7e6d1e144251830108c58f4a752c411d7295b introduced a refactoring bug
when rolling back packages, the module metadata provider was rolled
back instead. This was not caught because the test was ignored.

Test: atest RollbackTest
Bug: 120598832

Change-Id: I8fcc9492a05f0b3788ba4762ad3e3e5ac086d43b

5 years agoAdd error handling and other improvements to Bugreporting API
Nandana Dutt [Wed, 23 Jan 2019 09:51:49 +0000 (09:51 +0000)]
Add error handling and other improvements to Bugreporting API

* Validate input arguments
* Ensure primary user
* Handle remote exceptions
* Pass error conditions to listener
* Ensure only one bugreport is in progress, at least via the API.

BUG: 123584708
BUG: 123571915
Test: Builds
Test: Manual; unit tests coming up

Change-Id: I4d1e0000fe815a02b82ce625864759fd818e6a24

5 years agoMerge "Disable package verifier for staged installs."
Dario Freni [Tue, 5 Feb 2019 10:16:23 +0000 (10:16 +0000)]
Merge "Disable package verifier for staged installs."

5 years agoCreate dummy apex files for testing Rollbacks.
Richard Uhler [Fri, 11 Jan 2019 09:17:08 +0000 (09:17 +0000)]
Create dummy apex files for testing Rollbacks.

Bug: 112431924
Test: RollbackTest builds

Change-Id: I50404ca06710ca0173cb5717ca88b77f6b46cd2e

5 years agoMerge "Make debug atom fail more often."
Olivier Gaillard [Tue, 5 Feb 2019 09:53:19 +0000 (09:53 +0000)]
Merge "Make debug atom fail more often."

5 years agoMerge "Move CLIENT_PROTOCOL_VERSION to point of use" am: a75411975a am: 71e1bf58d0
Orion Hodson [Tue, 5 Feb 2019 09:45:02 +0000 (01:45 -0800)]
Merge "Move CLIENT_PROTOCOL_VERSION to point of use" am: a75411975a am: 71e1bf58d0
am: c472d5f641

Change-Id: Ie11ec05e3b44ebb1e23f03aab3d65f197041b97d

5 years agoMerge "Move CLIENT_PROTOCOL_VERSION to point of use" am: a75411975a
Orion Hodson [Tue, 5 Feb 2019 09:34:44 +0000 (01:34 -0800)]
Merge "Move CLIENT_PROTOCOL_VERSION to point of use" am: a75411975a
am: 71e1bf58d0

Change-Id: Icede435f038840eab78c5c5d3758af680b6ed2ce

5 years agoMerge "Move CLIENT_PROTOCOL_VERSION to point of use"
Orion Hodson [Tue, 5 Feb 2019 09:25:07 +0000 (01:25 -0800)]
Merge "Move CLIENT_PROTOCOL_VERSION to point of use"
am: a75411975a

Change-Id: I323304a3b2ef2b38c76c09fbdeee0c8b7f3debdf

5 years agoMerge "Move CLIENT_PROTOCOL_VERSION to point of use"
Treehugger Robot [Tue, 5 Feb 2019 09:15:21 +0000 (09:15 +0000)]
Merge "Move CLIENT_PROTOCOL_VERSION to point of use"

5 years agoMigrate to androidx.test.espresso
Tadashi G. Takaoka [Sat, 2 Feb 2019 00:55:59 +0000 (09:55 +0900)]
Migrate to androidx.test.espresso

This CL is a followup of Ia65c4f643961afaa01c2c8d4b271712e574eb45c.

References to Espresso library are migrated to androidx.test.espresso.

Exempt-From-Owner-Approval: Large-scale refactor
Test: Pass all affected tests
  $ atest FrameworksCoreTests:android.animation
  $ atest FrameworksCoreTests:android.hardware.hdmi.HdmiUtilsTest \
          FrameworksCoreTests:android.view.AccessibilityInteractionControllerTest \
          FrameworksCoreTests:android.view.ScaleGestureDetectorTest \
          FrameworksCoreTests:android.widget.EditorCursorTest \
          FrameworksCoreTests:android.widget.SuggestionsPopupWindowTest \
          FrameworksCoreTests:com.android.internal.app.ResolverActivityTest \
          FrameworksCoreTests:com.android.internal.os.KernelCpuThreadReaderEndToEndTest \
          FrameworksCoreTests:com.android.internal.statusbar.NotificationVisibilityTest
Test: Pass all non-flaky presubmit tests in FrameworksCoreTests
  $ tradefed.sh run commandAndExit FrameworksCoreTests \
        --include-annotation android.platform.test.annotations.Presubmit \
        --exclude-annotation androidx.test.filters.FlakyTest
  433 tests pass.
Fixes: 123776176
Fixes: 70384237
Change-Id: Iaaa58a1943b25646f00a57e2fc5e3a5f41da92a3

5 years agoMerge "Make StatusBar focusable when there is an expanded bubble."
Issei Suzuki [Tue, 5 Feb 2019 08:23:26 +0000 (08:23 +0000)]
Merge "Make StatusBar focusable when there is an expanded bubble."

5 years agoMerge "Fix KeyValuePairsAtom"
TreeHugger Robot [Tue, 5 Feb 2019 07:22:39 +0000 (07:22 +0000)]
Merge "Fix KeyValuePairsAtom"

5 years agoMerge "Merge "Allow Privileged apps to read prefered data state" am: 17ed973b1b am...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:51:35 +0000 (06:51 +0000)]
Merge "Merge "Allow Privileged apps to read prefered data state" am: 17ed973b1b am: 8458831e6f am: 9e0c3516bf"

5 years agoMerge "Allow Privileged apps to read prefered data state" am: 17ed973b1b am: 8458831e6f
Sooraj Sasindran [Tue, 5 Feb 2019 06:50:48 +0000 (22:50 -0800)]
Merge "Allow Privileged apps to read prefered data state" am: 17ed973b1b am: 8458831e6f
am: 9e0c3516bf

Change-Id: I7f2587af0890b86c55792daf410dbe2b1128c1ca

5 years agoMerge "Merge "CallAttributes.equals does deep check" am: 8f7a989df5 am: 77013af53c...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:43:49 +0000 (06:43 +0000)]
Merge "Merge "CallAttributes.equals does deep check" am: 8f7a989df5 am: 77013af53c am: 5e37fc2f6c"

5 years agoMerge "CallAttributes.equals does deep check" am: 8f7a989df5 am: 77013af53c
Jordan Liu [Tue, 5 Feb 2019 06:42:09 +0000 (22:42 -0800)]
Merge "CallAttributes.equals does deep check" am: 8f7a989df5 am: 77013af53c
am: 5e37fc2f6c

Change-Id: I030784f5d2ea62595b3dbacd3c374a5d1242745e

5 years agoMerge "Merge "Use default methods for MBMS group call callbacks" am: 256640541f am...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:36:08 +0000 (06:36 +0000)]
Merge "Merge "Use default methods for MBMS group call callbacks" am: 256640541f am: 93bae4c4bc am: dc49615857"

5 years agoMerge "Use default methods for MBMS group call callbacks" am: 256640541f am: 93bae4c4bc
Hall Liu [Tue, 5 Feb 2019 06:35:31 +0000 (22:35 -0800)]
Merge "Use default methods for MBMS group call callbacks" am: 256640541f am: 93bae4c4bc
am: dc49615857

Change-Id: Ie2148e9f968fa66288bdae54165555d76bf14104

5 years agoMerge "Revert "Fix FDE""
TreeHugger Robot [Tue, 5 Feb 2019 06:32:13 +0000 (06:32 +0000)]
Merge "Revert "Fix FDE""

5 years agoMerge "Merge "Unhide isRttSupported in TelephonyManager" am: 3d834a0e69 am: 9f588cdd1...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:29:33 +0000 (06:29 +0000)]
Merge "Merge "Unhide isRttSupported in TelephonyManager" am: 3d834a0e69 am: 9f588cdd1c am: 73a732630e"

5 years agoMerge "Unhide isRttSupported in TelephonyManager" am: 3d834a0e69 am: 9f588cdd1c
Hall Liu [Tue, 5 Feb 2019 06:29:01 +0000 (22:29 -0800)]
Merge "Unhide isRttSupported in TelephonyManager" am: 3d834a0e69 am: 9f588cdd1c
am: 73a732630e

Change-Id: I2f3d50be4c109cae5a85fcfae49ad6d279a55733

5 years agoFix possible incorrect output from 'adb shell ime reset'
Yohei Yukawa [Tue, 5 Feb 2019 06:25:24 +0000 (22:25 -0800)]
Fix possible incorrect output from 'adb shell ime reset'

This is a follow up CL to my previous CL [1], which enabled
InputMethodManager#getEnabledInputMethodList() to return the result
based on the caller's user ID, not based on the current IME user,
which is mSettings.getCurrentUserId().

Since InputMethodManagerService#handleShellCommandSetInputMethod()
always runs as user 0, we cannot actually simply call
IMMS#getEnabledInputMethodList() any more from that method.  Instead,
we should use mSettings.getEnabledInputMethodListLocked() so that the
right user's result should be shown on the console.

This is a minor fix for the output message of a debug command.  There
should be no visible behavior change for production use cases.

 [1]: I192a0f5a1375170d17a4c08af94f23966dbaea8b
      7f8ee4b9ddd31ad36a12c5278b27990dc76011cc

Bug: 122164939
Fix: 123906510
Test: Manually verified as follows.
  1. Build aosp_taimen-userdebug and flash it.
  2. make -j SoftKeyboard
  3. adb install -r $OUT/system/app/SoftKeyboard/SoftKeyboard.apk
  4. adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
  5. adb shell pm create-user test_user
  6. adb shell am switch-user 10
  7. adb shell ime reset
     -> Confirm that the output is
          Reset current and enabled IMEs
          Newly selected IME:
            com.android.inputmethod.latin/.LatinIME
          Newly enabled IMEs:
            com.android.inputmethod.latin/.LatinIME
Change-Id: I4c29ade9373b0fa5ab77f5a349017389ff1fb827

5 years agoMerge "Do not call postDrawVk if did not call drawVk"
TreeHugger Robot [Tue, 5 Feb 2019 06:23:40 +0000 (06:23 +0000)]
Merge "Do not call postDrawVk if did not call drawVk"

5 years agoMerge "Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:18:06 +0000 (06:18 +0000)]
Merge "Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c am: e6d84ae4c9 am: 6cb189e322"

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c am: e6d84ae4c9
Chih-Hung Hsieh [Tue, 5 Feb 2019 06:17:39 +0000 (22:17 -0800)]
Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c am: e6d84ae4c9
am: 6cb189e322

Change-Id: I65741102dfe0989c82f4244ef4c45954129dd513

5 years agoMerge "Log noteProxyOp and startOp as well"
Chad Brubaker [Tue, 5 Feb 2019 06:15:21 +0000 (06:15 +0000)]
Merge "Log noteProxyOp and startOp as well"

5 years agoMerge "Merge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890 am...
Android Build Merger (Role) [Tue, 5 Feb 2019 06:04:55 +0000 (06:04 +0000)]
Merge "Merge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890 am: 4b983b7aa6"

5 years agoMerge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890
Youming Ye [Tue, 5 Feb 2019 06:03:43 +0000 (22:03 -0800)]
Merge "Add IntDef for SIP response code." am: 0d16222125 am: 7509f9f890
am: 4b983b7aa6

Change-Id: Idce325965095ad8c3fc4a90a021eaf8c79f9e8a3

5 years agoMerge "Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL."
Sudheer Shanka [Tue, 5 Feb 2019 06:00:06 +0000 (06:00 +0000)]
Merge "Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL."

5 years agoMerge "Allow Privileged apps to read prefered data state" am: 17ed973b1b
Sooraj Sasindran [Tue, 5 Feb 2019 05:59:22 +0000 (21:59 -0800)]
Merge "Allow Privileged apps to read prefered data state" am: 17ed973b1b
am: 8458831e6f

Change-Id: Ib04325b3737337278be8d844fd7d5fb7a8443e63

5 years agoMerge "Separate privapp grant for dialer" am: 5d7fc9568e am: ce448e631b
Anton Hansson [Tue, 5 Feb 2019 05:52:05 +0000 (21:52 -0800)]
Merge "Separate privapp grant for dialer" am: 5d7fc9568e am: ce448e631b
am: a0a2d9a09a

Change-Id: I84a41eeb16cab36cec91d7d6a53695fcadc984ee

5 years agoMerge "CallAttributes.equals does deep check" am: 8f7a989df5
Jordan Liu [Tue, 5 Feb 2019 05:52:02 +0000 (21:52 -0800)]
Merge "CallAttributes.equals does deep check" am: 8f7a989df5
am: 77013af53c

Change-Id: Ic99257b571dee65ca7dafe95d06e6e5d3719ee5f

5 years agoMerge "Use default methods for MBMS group call callbacks" am: 256640541f
Hall Liu [Tue, 5 Feb 2019 05:47:02 +0000 (21:47 -0800)]
Merge "Use default methods for MBMS group call callbacks" am: 256640541f
am: 93bae4c4bc

Change-Id: I359250a309e57167e75bf9e8c1d81144569d71a0

5 years agoMerge "Improve AsyncTask API documentation" am: 1cbb20b2df am: 8f39deb490
Hans Boehm [Tue, 5 Feb 2019 05:42:51 +0000 (21:42 -0800)]
Merge "Improve AsyncTask API documentation" am: 1cbb20b2df am: 8f39deb490
am: 6ff6c4de73

Change-Id: Ib34c98b1ca5bd4c3e17b29c465344f3418cc3376

5 years agoMerge "Unhide isRttSupported in TelephonyManager" am: 3d834a0e69
Hall Liu [Tue, 5 Feb 2019 05:42:02 +0000 (21:42 -0800)]
Merge "Unhide isRttSupported in TelephonyManager" am: 3d834a0e69
am: 9f588cdd1c

Change-Id: I0f13227568f8268bc061fe793f66df02362841c3

5 years agoMerge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c
Chih-Hung Hsieh [Tue, 5 Feb 2019 05:36:52 +0000 (21:36 -0800)]
Merge "Temporarily disable clang-tidy for dex_builder.cc." am: 171dfad60c
am: e6d84ae4c9

Change-Id: I13efd650ad82f46e7c060558809109b72de17047

5 years agoFix KeyValuePairsAtom
Tej Singh [Tue, 5 Feb 2019 05:28:49 +0000 (21:28 -0800)]
Fix KeyValuePairsAtom

The field of the FieldValue was not properly being set in LogEvent for
many of the types in the KeyValuePairsAtom.

Test: manual inspeciton of logcat
Test: modified unit tests and made sure they passed
Change-Id: I445a2d3051cfa86affe45ea9a3fe69794f962eff

5 years agoMerge "Add IntDef for SIP response code." am: 0d16222125
Youming Ye [Tue, 5 Feb 2019 05:28:30 +0000 (21:28 -0800)]
Merge "Add IntDef for SIP response code." am: 0d16222125
am: 7509f9f890

Change-Id: I7ea711dd09f233d69568144a5d4d150d0941a9cb

5 years agoMerge "[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583...
Android Build Merger (Role) [Tue, 5 Feb 2019 05:23:31 +0000 (05:23 +0000)]
Merge "[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583 am: 26cbd94d67 am: 87e6e5058f -s ours am skip reason: change_id Ic2dc2a94328cf1927fafaa9506537aeb213df413 with SHA1 3fc4af6568 is in history"

5 years agoMerge "Separate privapp grant for dialer" am: 5d7fc9568e
Anton Hansson [Tue, 5 Feb 2019 05:22:03 +0000 (21:22 -0800)]
Merge "Separate privapp grant for dialer" am: 5d7fc9568e
am: ce448e631b

Change-Id: Ie21c9f81e3cf92a9c88a10a029bc1eb3f4848f91

5 years agoMerge "Don't throw a runtime exception in getPackageInfo."
TreeHugger Robot [Tue, 5 Feb 2019 05:18:26 +0000 (05:18 +0000)]
Merge "Don't throw a runtime exception in getPackageInfo."

5 years agoMerge "Improve AsyncTask API documentation" am: 1cbb20b2df
Hans Boehm [Tue, 5 Feb 2019 05:16:57 +0000 (21:16 -0800)]
Merge "Improve AsyncTask API documentation" am: 1cbb20b2df
am: 8f39deb490

Change-Id: Idd279158405207d9afac604b8acc6bf49232cb2f

5 years ago[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583 am: 26cbd94d67
Suren Baghdasaryan [Tue, 5 Feb 2019 05:16:07 +0000 (21:16 -0800)]
[automerger skipped] Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583 am: 26cbd94d67
am: 87e6e5058f -s ours
am skip reason: change_id Ic2dc2a94328cf1927fafaa9506537aeb213df413 with SHA1 3fc4af6568 is in history

Change-Id: I044d23a6c2c9bc3b9510ed9b7021e0d278db8eaa

5 years agoMade ContentCapture APIs available for testing.
Felipe Leme [Mon, 4 Feb 2019 21:01:29 +0000 (13:01 -0800)]
Made ContentCapture APIs available for testing.

Test: atest CtsContentCaptureServiceTestCases
Test: m update-api

Bug: 123584359
Bug: 119187075

Change-Id: I4ece03de6c7994451dbb9d0ce36d37f20656d3e0

5 years ago[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047...
Chen Xu [Tue, 5 Feb 2019 05:01:32 +0000 (21:01 -0800)]
[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047394 am: 21cdfe4c14 -s ours
am: 8c46a8e790 -s ours
am skip reason: change_id I08a8f7bf44a62ef109583b82b22f65fd6f89c71d with SHA1 32993551f3 is in history

Change-Id: Ia84f58f66db16412b4464ec5219445ff6900f5d8

5 years agoMerge "Replace hardcoded cgroup paths" am: 1e4b9d7583
Suren Baghdasaryan [Tue, 5 Feb 2019 04:56:48 +0000 (20:56 -0800)]
Merge "Replace hardcoded cgroup paths" am: 1e4b9d7583
am: 26cbd94d67

Change-Id: I9bd49a1757384bf72902fca46695fad237ce09ff

5 years ago[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047394
Chen Xu [Tue, 5 Feb 2019 04:50:08 +0000 (20:50 -0800)]
[automerger skipped] Merge "Add NR to preferred network type combination" am: 996f047394
am: 21cdfe4c14 -s ours
am skip reason: change_id I08a8f7bf44a62ef109583b82b22f65fd6f89c71d with SHA1 32993551f3 is in history

Change-Id: I699396e5ecc42551939fcd39716a9fc4d6e0c6fd

5 years ago[automerger skipped] Add NR to preferred network type combination
chen xu [Tue, 5 Feb 2019 04:45:15 +0000 (20:45 -0800)]
[automerger skipped] Add NR to preferred network type combination
am: 32993551f3 -s ours
am skip reason: change_id I08a8f7bf44a62ef109583b82b22f65fd6f89c71d with SHA1 8bcdc4cf66 is in history

Change-Id: I17e71193ca71314fc722a4d239e34db05790d899

5 years agoMerge "Format fixing for ArcTerminationActionFromAvrTest."
TreeHugger Robot [Tue, 5 Feb 2019 04:22:17 +0000 (04:22 +0000)]
Merge "Format fixing for ArcTerminationActionFromAvrTest."

5 years agoMerge "Game Driver: clean up GraphicsEnvironment"
TreeHugger Robot [Tue, 5 Feb 2019 04:20:36 +0000 (04:20 +0000)]
Merge "Game Driver: clean up GraphicsEnvironment"

5 years agoAdd NR to preferred network type combination
chen xu [Thu, 31 Jan 2019 08:44:52 +0000 (00:44 -0800)]
Add NR to preferred network type combination

This add NR 5G to preferred network type and move preferredNetworkMode
from SystemApi to hidden api as we are not going to support
preferredNetworMode enum in the future.

Bug: 111453000
Test: build
Change-Id: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d
(cherry picked from commit 8bcdc4cf66e9d654fa31d7c62654ff81ee04cdc6)
Merged-in: I08a8f7bf44a62ef109583b82b22f65fd6f89c71d

5 years agoDo not call postDrawVk if did not call drawVk
Bo Liu [Mon, 4 Feb 2019 22:55:02 +0000 (14:55 -0800)]
Do not call postDrawVk if did not call drawVk

Reland enable vulkan webview functor

Bug: 123877499
Bug: 115613038
Test: Gmail in bug no longer crashing.
Change-Id: I7df761a4691ceaa6c2a02b256d61554e57139409

5 years agoMerge changes Ib3997487,Ifed8351b
Tarandeep Singh [Tue, 5 Feb 2019 03:56:58 +0000 (03:56 +0000)]
Merge changes Ib3997487,Ifed8351b

* changes:
  Link InsetsController to IME (IME transitons 4/n)
  Send IME control to client

5 years agoMerge "MediaPlayer2: add doc referencing androidx"
TreeHugger Robot [Tue, 5 Feb 2019 03:34:04 +0000 (03:34 +0000)]
Merge "MediaPlayer2: add doc referencing androidx"

5 years agoMerge "Fix AVRCP volume control from UI volume slider"
TreeHugger Robot [Tue, 5 Feb 2019 03:26:26 +0000 (03:26 +0000)]
Merge "Fix AVRCP volume control from UI volume slider"

5 years agoMerge "Remove quickswitch flag toggled by systemui"
TreeHugger Robot [Tue, 5 Feb 2019 03:15:25 +0000 (03:15 +0000)]
Merge "Remove quickswitch flag toggled by systemui"

5 years agoMerge "Allow Privileged apps to read prefered data state"
Sooraj Sasindran [Tue, 5 Feb 2019 03:04:51 +0000 (19:04 -0800)]
Merge "Allow Privileged apps to read prefered data state"
am: 17ed973b1b

Change-Id: Id0aab013528122bdfd542ee59ce9b4886055b262

5 years agoMerge "Allow Privileged apps to read prefered data state"
Sooraj Sasindran [Tue, 5 Feb 2019 02:53:14 +0000 (02:53 +0000)]
Merge "Allow Privileged apps to read prefered data state"

5 years agoRefactored how initial content capture events are sent.
Felipe Leme [Wed, 30 Jan 2019 02:16:23 +0000 (18:16 -0800)]
Refactored how initial content capture events are sent.

The overall workflow of Content Capture is:
 - send initial structure
 - send deltas afterwards

Initially, the initial structure was being reported one view at time, which was causing janking.
This CL changes it so while that while the initial structure is being laid out, the content captures
are held. Then after it's finished, it traverses the structure and sends the initial events.

This change also allowed use to optimize the performance by caching the following state:
 - View.isImportantForContentCapture()
 - View.getContentCaptureSession()
 - Context.getContentCaptureManager()

Besides the performance improvements, this approach also has the following advantanges:
- It sends the VIEW_APPEARED events for the parent views before the events for the children.
- It send events to notify when the view structure layout is ready.

Bug: 123307965
Test: atest CtsContentCaptureServiceTestCases
Test: m update-api

Change-Id: I6db7cc11c6edf65cbffe42187fda82c84c3665ff

5 years agoTranslate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL.
Sudheer Shanka [Tue, 5 Feb 2019 02:16:15 +0000 (18:16 -0800)]
Translate sandboxed paths correctly for MediaStore.SCAN_FILE_CALL.

Bug: 123642484
Test: atest cts/tests/tests/provider/src/android/provider/cts/MediaStore_DownloadsTest.java
Change-Id: Ie19beb12e546b1b78e8e0d056558444a255f394d

5 years agoGame Driver: clean up GraphicsEnvironment
Yiwei Zhang [Tue, 5 Feb 2019 01:53:57 +0000 (17:53 -0800)]
Game Driver: clean up GraphicsEnvironment

Bug: 123529932
Test: Build, flash and boot. Verify by installing game driver apk
Change-Id: Id73605125410a2b4054d9179227022e177d20af2

5 years agoRead "gctype" flag from namespace "runtime_native_boot".
Roland Levillain [Mon, 4 Feb 2019 15:48:09 +0000 (15:48 +0000)]
Read "gctype" flag from namespace "runtime_native_boot".

ART does not support changing the garbage collector type/configuration
dynamically at the moment, so we can only change it when the runtime
starts, i.e. at boot time.

Also materialize "gctype" and "runtime_native_boot" as named constants.

Bug: 120794191
Bug: 72446017
Test: adb shell device_config put runtime_native_boot gctype nogenerational_cc && adb reboot
Test: adb shell device_config put runtime_native_boot gctype generational_cc && adb reboot
Change-Id: Ibf765a5f442136d6327be99786ea9ae4b4537d59

5 years agoMerge "Add runtime_native_boot namespace"
Mathieu Chartier [Tue, 5 Feb 2019 01:36:32 +0000 (01:36 +0000)]
Merge "Add runtime_native_boot namespace"

5 years agoMerge "Revert "Enable vulkan webview draw functor""
TreeHugger Robot [Tue, 5 Feb 2019 01:15:34 +0000 (01:15 +0000)]
Merge "Revert "Enable vulkan webview draw functor""

5 years agoMerge "CallAttributes.equals does deep check"
Jordan Liu [Tue, 5 Feb 2019 01:14:20 +0000 (17:14 -0800)]
Merge "CallAttributes.equals does deep check"
am: 8f7a989df5

Change-Id: Icf149a42d0138c08b3a6b12bb00f9eba7d7e6a4f

5 years agoMerge "More TEST_MAPPING for role + permissions"
Philip P. Moltmann [Tue, 5 Feb 2019 01:03:55 +0000 (01:03 +0000)]
Merge "More TEST_MAPPING for role + permissions"

5 years agoMerge "audiopolicy: get rid of hardcoded attributes <--> stream types"
Eric Laurent [Tue, 5 Feb 2019 01:02:43 +0000 (01:02 +0000)]
Merge "audiopolicy: get rid of hardcoded attributes <--> stream types"

5 years agoMerge "CallAttributes.equals does deep check"
Jordan Liu [Tue, 5 Feb 2019 00:59:31 +0000 (00:59 +0000)]
Merge "CallAttributes.equals does deep check"

5 years agoMerge "Fix ArrayIndexOOB crash with invalid sim slot"
Evan Laird [Tue, 5 Feb 2019 00:59:29 +0000 (00:59 +0000)]
Merge "Fix ArrayIndexOOB crash with invalid sim slot"

5 years agoMerge "atoms: Fix HardwareErrorCode to match Stats HAL definition"
Maggie White [Tue, 5 Feb 2019 00:57:03 +0000 (00:57 +0000)]
Merge "atoms: Fix HardwareErrorCode to match Stats HAL definition"

5 years agoMerge "Make SmsHelper local to Assistant rather than a singleton (I accidentally...
Nadia Benbernou [Tue, 5 Feb 2019 00:54:56 +0000 (00:54 +0000)]
Merge "Make SmsHelper local to Assistant rather than a singleton (I accidentally forgot to include this piece in my previous CL it looks like)."

5 years agoMerge "Refactor locks in "audio" service for device management"
Jean-Michel Trivi [Tue, 5 Feb 2019 00:54:51 +0000 (00:54 +0000)]
Merge "Refactor locks in "audio" service for device management"

5 years agoDon't throw a runtime exception in getPackageInfo.
Dario Freni [Mon, 4 Feb 2019 19:54:29 +0000 (19:54 +0000)]
Don't throw a runtime exception in getPackageInfo.

If the input is invalid, we need to just return null, otherwise we'll
make PackageManager crash.

Bug: 123676932
Fix: 123878869
Test: used a small app to query the API, reproduce the bug and
verified that the new code fixes it.

Change-Id: Icefb108cc95ec01e36021a5259c59dabdc24c4d6

5 years agoMerge "Turn off TimeController job skipping."
TreeHugger Robot [Tue, 5 Feb 2019 00:44:30 +0000 (00:44 +0000)]
Merge "Turn off TimeController job skipping."

5 years agoMerge "Fix `break` location for WM Service message handler"
Nataniel Borges [Tue, 5 Feb 2019 00:39:23 +0000 (00:39 +0000)]
Merge "Fix `break` location for WM Service message handler"

5 years agoMerge "Clean up on metalava_updatable_media_args"
TreeHugger Robot [Tue, 5 Feb 2019 00:33:49 +0000 (00:33 +0000)]
Merge "Clean up on metalava_updatable_media_args"

5 years agoFormat fixing for ArcTerminationActionFromAvrTest.
Amy [Fri, 27 Jul 2018 22:42:20 +0000 (15:42 -0700)]
Format fixing for ArcTerminationActionFromAvrTest.

Test: atest com.android.server.hdmi
Change-Id: Ie800465adefa3e0c2d2acdbed25f4c03586c2202

5 years agoAllow Privileged apps to read prefered data state
Sooraj Sasindran [Thu, 31 Jan 2019 18:06:04 +0000 (10:06 -0800)]
Allow Privileged apps to read prefered data state

Allow Privileged apps to read prefered data state
Change ArrayList to List for public API

Bug: 122900079
Bug: 123697660
Test: verified manually
Change-Id: Ib1221a65edf554b700088d68505da137ccd7de5e

5 years agoRemove quickswitch flag toggled by systemui
Matthew Ng [Tue, 5 Feb 2019 00:03:08 +0000 (16:03 -0800)]
Remove quickswitch flag toggled by systemui

Test: manual
Bug: 112934365

Change-Id: Ic17cdba0f4bf301ef366aadd66421c20dfc3495b

5 years agoaudiopolicy: get rid of hardcoded attributes <--> stream types
François Gaffie [Mon, 30 Jul 2018 07:33:05 +0000 (09:33 +0200)]
audiopolicy: get rid of hardcoded attributes <--> stream types

Linked to CL in frameworks/av:
"audio policy service: Add introspection API to retrieve AudioProductStrategies"

Test: CTS: AudioTrackTest AudioRecordTest
Test: audio smoke test on sailfish, walleye blueline

Change-Id: I14515704bf8de76815f0d9ad7ed4b46f42a441b0
Signed-off-by: François Gaffie <francois.gaffie@renault.com>
5 years agoMerge "audio: fix AudioRecordingConfiguration.equals()"
TreeHugger Robot [Mon, 4 Feb 2019 23:58:33 +0000 (23:58 +0000)]
Merge "audio: fix AudioRecordingConfiguration.equals()"

5 years agoMerge "Use default methods for MBMS group call callbacks"
Hall Liu [Mon, 4 Feb 2019 23:56:07 +0000 (15:56 -0800)]
Merge "Use default methods for MBMS group call callbacks"
am: 256640541f

Change-Id: I31f8b80741dec7624ce05001fff0656ef9d4167d

5 years agoFix AVRCP volume control from UI volume slider
Jean-Michel Trivi [Mon, 4 Feb 2019 23:44:28 +0000 (15:44 -0800)]
Fix AVRCP volume control from UI volume slider

Fix error where volume index rescaling was happening twice in the
  setStreamVolume code path for AVRCP absolute volume code path.

Bug: 123857725
Test: see bug
Change-Id: Iadfa664e6eb6298acf712f02f98b892ad2d36d44