Commit Graph

7718 Commits

Author SHA1 Message Date
TreeHugger Robot
0a96038c85 Merge changes I7bf9bde4,I8d655d1c,Ibc59aa36
* changes:
  Adds class and method documentation in all app prediction classes
  Link Intent.EXTRA_SHORTCUT_ID to ACTION_SEND Intent
  Change ShortcutInfo.Builder.setLongLived to take a boolean
2019-03-19 14:22:28 +00:00
Xiao Ma
2ce206c82d Merge "Move the IpMemoryStore to the network stack." am: 93bf5ef495 am: 5db1518bfa
am: 3176d57308

Change-Id: I243056012d2f099d96a33657c0eb63a5b66a2cfe
2019-03-19 06:54:43 -07:00
Xiao Ma
3176d57308 Merge "Move the IpMemoryStore to the network stack." am: 93bf5ef495
am: 5db1518bfa

Change-Id: I20e384320309579b19fe44f3841ffbc49c028c6d
2019-03-19 06:44:45 -07:00
Xiao Ma
5db1518bfa Merge "Move the IpMemoryStore to the network stack."
am: 93bf5ef495

Change-Id: I672d07ca2d0a251c246993ab8c7c3075de385570
2019-03-19 06:35:31 -07:00
TreeHugger Robot
1f23a49ba4 Merge "Add AttentionSerivce into dumpsys" 2019-03-19 03:19:32 +00:00
Ricky Wai
0718f9d0d5 Merge "Remove hidden launchable app vouching code" 2019-03-18 21:37:08 +00:00
Yohei Yukawa
59730961aa Introduce Context.BIND_SCHEDULE_LIKE_TOP_APP for visible IMEs
This CL introduces a new @hide bind flag BIND_SCHEDULE_LIKE_TOP_APP so
that visible IMEs can have the same thread scheduling policy as the
actual top app, like SCHED_FIFO for UI and RenderThread when it's
available [1] and TOP_APP_PRIORITY_BOOST otherwise [2].

Hopefully this would provide more consistent UI performance and
responsiveness between the actual top app and IME.

 [1]: I7b8a31830ad80f7efa00236928d5476998ed4e00
      33eb07f575
 [2]: Iced88269f7e2d378d5870ded1a5ccf9f259fda57
      b783e7b44bf174075f6860d295808ee462b38451

Fix: 117274342
Test: Manually verified as follows.
  1. Build aosp_blueline-userdebug and flash it.
  2. make -j EditTextVariations
  3. adb install -r \
       $ANDROID_TARGET_OUT_TESTCASES/EditTextVariations/EditTextVariations.apk
  4. adb shell am start \
       -n com.android.inputmethod.tools.edittextvariations/.EditTextVariations
  5. Tap the first edit text field to bring up the AOSP Keyboard.
  6. Make sure that top app (EditTextVariations) and the IME (AOSP
     Keyboard) have the same thread priority / scheduler policy for
     their main UI threads and RenderThreads.
      adb shell ps -p \
          `adb shell pidof com.android.inputmethod.tools.edittextvariations` \
          -T -o PID,TID,PRI,SCH,CMD
      adb shell ps -p `adb shell pidof com.android.inputmethod.latin` \
          -T -o PID,TID,PRI,SCH,CMD
     For both UI threads and RenderThreads, Thread Priority should be 29 and
     Scheduler Policy should be 0.
  7. Tap the back button to dismiss AOSP Keyboard.
  8. Make sure that Thread Priority of AOSP Keyboard is no longer boosted.
      adb shell ps -p `adb shell pidof com.android.inputmethod.latin` \
          -T -o PID,TID,PRI,SCH,CMD
     For both UI threads and RenderThreads, Thread Priority should be 19 and
     Scheduler Policy should be 0.
Change-Id: I143fb39cec55351b097e835cf8bbf9668e02d86d
2019-03-18 10:47:22 -07:00
Ricky Wai
8286ffda54 Remove hidden launchable app vouching code
Bug: 128279519
Test: Able to compile
Change-Id: Id121bf2a23a78b43f28963b7d76c5e5fa575a97f
2019-03-18 16:07:40 +00:00
Chalard Jean
952135122d Move the IpMemoryStore to the network stack.
Test: atest FrameworksNetTests
Change-Id: Ic5bd6ff54b09a6fa92b6863f240a5b053011acb6
2019-03-18 11:33:17 +09:00
Jeff Sharkey
9bb54f203e Add exception logging to aid debugging.
Now we log both success and failure of ContentInterface calls.

Bug: 128782519
Test: manual
Change-Id: I5e81cc6a8ba1460331cad5e085aa01633d6741d6
2019-03-17 11:05:32 -06:00
Benedict Wong
e942aafb0a Merge "Integrate testNetworkService and Manager with Connectivity stack" am: b86c3255fd
am: 016ac0a953

Change-Id: If9efbc3e0b3f0949286a2a5ad8226009ebbcfc07
2019-03-15 10:59:21 -07:00
Benedict Wong
016ac0a953 Merge "Integrate testNetworkService and Manager with Connectivity stack"
am: b86c3255fd

Change-Id: I571e583d896841c814efe58b8c0875fa9cd3873c
2019-03-15 10:50:06 -07:00
Benedict Wong
b86c3255fd Merge "Integrate testNetworkService and Manager with Connectivity stack" 2019-03-15 17:41:02 +00:00
Ricky Wai
ea5c64806d Merge "Change get/setAppDetailsActivityEnabled to get/setSyntheticAppDetailsActivityEnabled" 2019-03-15 12:31:06 +00:00
TreeHugger Robot
526de8ba20 Merge "Add PackageInstaller CTS tests to test mapping." 2019-03-15 10:33:07 +00:00
TreeHugger Robot
92512d5f18 Merge "Adds nullability annotation and java docs to App Prediction APIs" 2019-03-15 01:49:11 +00:00
Dario Freni
842947fc1b Add PackageInstaller CTS tests to test mapping.
Test: atest --test-mapping (with different dirs)
Change-Id: I04ca869b881c825b635ae7e8624fc7e2129e1858
2019-03-14 21:50:43 +00:00
Mehdi Alizadeh
f99986a001 Link Intent.EXTRA_SHORTCUT_ID to ACTION_SEND Intent
Test: None
Bug: 126178968
Change-Id: I8d655d1c9b35d72726dbc74901f3d16ded48afc0
2019-03-13 15:56:06 -07:00
Mehdi Alizadeh
3d2ff4c27b Change ShortcutInfo.Builder.setLongLived to take a boolean
Bug: 126179815
Test: atest com.android.server.pm.ShortcutManagerTest2
Change-Id: Ibc59aa3698275068c17565b66c957d84bb4a8c4b
2019-03-13 15:45:03 -07:00
Mehdi Alizadeh
387c7cb14a Adds nullability annotation and java docs to App Prediction APIs
Also rethrows RemoteExceptions in AppPredictor class.

Test: Builds successfully
Bug: 126701214
Bug: 126699210
Bug: 126701563
Bug: 126180215
Bug: 126701789
Bug: 126701213
Bug: 126178969
Bug: 126179771
Bug: 126700116
Bug: 126180255

Change-Id: I3c76a71abbb8fdc9cadfaa4c6289ded4de379bd8
2019-03-13 14:28:29 -07:00
TreeHugger Robot
b0b07b7d26 Merge "Improved some Context javadocs." 2019-03-13 18:40:12 +00:00
Ricky Wai
a52e426200 Change get/setAppDetailsActivityEnabled to get/setSyntheticAppDetailsActivityEnabled
Bug: 127713970
Test: atest com.android.cts.devicepolicy.LimitAppIconHidingTest
Change-Id: I4e6fc84757731462b28119f3c38c87b0f2a57b4f
2019-03-13 17:41:56 +00:00
Steven Moreland
01324d876b Merge changes from topic "hidl-updater-system" am: 5a490d4bb7 am: cfea213006
am: 840d9c02b7

Change-Id: Ic33576c705505196c80c648b6616769b9af427ce
2019-03-13 10:33:54 -07:00
Steven Moreland
840d9c02b7 Merge changes from topic "hidl-updater-system" am: 5a490d4bb7
am: cfea213006

Change-Id: Ida737ee8bdadbacc656e9f6b96f29d793089e695
2019-03-13 10:21:31 -07:00
Steven Moreland
cfea213006 Merge changes from topic "hidl-updater-system"
am: 5a490d4bb7

Change-Id: I1fe4f587bb5f7452752ea3c7fc23635fb4a8aee2
2019-03-13 10:11:57 -07:00
Steven Moreland
5a490d4bb7 Merge changes from topic "hidl-updater-system"
* changes:
  pm: AndroidHidlUpdater: system only
  pm: PackageBackwardCompatibility -> applyPolicy
2019-03-13 16:51:30 +00:00
Benedict Wong
c328b263c8 Merge "Integrate testNetworkService and Manager with Connectivity stack" 2019-03-13 16:48:07 +00:00
TreeHugger Robot
05bfa30abf Merge "Add support for uninstalling apex to PackageManagerShellCommand" 2019-03-13 16:35:50 +00:00
Nikita Ioffe
f012a22a8a Add support for uninstalling apex to PackageManagerShellCommand
Since uninstalling apexes is development/testing operation, only root
and shell are allowed to perform it.

Test: adb uninstall + adb reboot
Bug: 123667725
Change-Id: Ifd7b743b2581dbdeebd63c33fd343a830dfc377a
2019-03-13 15:05:44 +00:00
Michal Karpinski
681db90b5a Merge "Add new BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS binding flag and the mechanism to use it" 2019-03-13 13:44:02 +00:00
Nikita Ioffe
35b7d8f51a Merge "Fail committing new staged session if another one is already in progress" 2019-03-13 12:52:38 +00:00
Michal Karpinski
e069b0022f Add new BIND_ALLOW_BACKGROUND_ACTIVITY_STARTS binding flag
and the mechanism to use it

Since both starts and bindings might be contributing to the service
being whitelisted, track the state in ServiceRecord and update
the parent process accordingly when changes happen.

While we're at it, add that flag for bindings to accessibility
services, voice interaction services and QSTiles.

Also, make the timeout constant configurable for start-based
whitelisting.

Bug: 124298522
Bug: 123495976 (accessibility services)
Bug: 123337181 (paying via NFC, like Google Pay)
Bug: 122887611 (binding to InCallService)
Bug: 127774234 (binding to QSTile)
Bug: 124288681 (binding to voice interaction services)
Test: atest WmTests:ActivityStarterTests
Test: atest AccessibilityServiceConnectionTest
Test: manual with:
1) notifications from calendar and dynamite to test service starts
whitelisting
2) enabling talkback and livetranscribe to test service bindings
whitelisting
3) adding the LastPass QSTile and clicking on it
Change-Id: I8b6f23f999683920411ca40ab5b25c688a4f7055
2019-03-13 11:29:12 +00:00
TreeHugger Robot
b4a5cf74b3 Merge "Add uid information in PackageListObserver" 2019-03-13 05:45:34 +00:00
Benedict Wong
a341fbcdc3 Integrate testNetworkService and Manager with Connectivity stack
This change adds TestAPIs for tests to retrive an instance of
ConnectivityManager, allowing it to build test TUN interfaces, as well
as test networks.

This also integrates the TestNetwork types with ConnectivityManager,
creating virtual networks if the network agent is a test agent.

Bug: 72950854
Test: Compiles, CTS tests using this passing correctly
Change-Id: Ic1a04aa66014d1c66a74e65dbace3218437403ae
Merged-In: I741ef9cdf4bd4125d9129af3a030edf32f438e4f
2019-03-13 02:26:30 +00:00
Benedict Wong
99a4841954 Integrate testNetworkService and Manager with Connectivity stack
This change adds TestAPIs for tests to retrive an instance of
ConnectivityManager, allowing it to build test TUN interfaces, as well
as test networks.

This also integrates the TestNetwork types with ConnectivityManager,
creating virtual networks if the network agent is a test agent.

Bug: 72950854
Test: Compiles, CTS tests using this passing correctly
Change-Id: I741ef9cdf4bd4125d9129af3a030edf32f438e4f
2019-03-12 19:21:28 -07:00
TreeHugger Robot
c00ee56966 Merge "Revert related work of extractNativeLibs default flip" 2019-03-12 22:40:28 +00:00
Steven Moreland
2410821b67 pm: AndroidHidlUpdater: system only
Backwards compatibility takes a slight performance hit. Only apply this
rule to outdated system apps as they are the only ones that use these
libraries.

Bug: 86259915
Test: boot Pixel 2
Test: boot Pixel 3 and systrace app startup
Test: atest android.content.pm.AndroidHidlUpdaterTest

Change-Id: I2d2e2ca79266a92ba0e4efcf25e31d15daee87a1
2019-03-12 21:44:22 +00:00
Steven Moreland
b28b7960b2 pm: PackageBackwardCompatibility -> applyPolicy
This moves PackageBackwardCompatibility from parsePackage to
applyPolicy.

The motivation of this is to expose partition information to these
files. Specifically, to expose whether the app is a pre-installed
(or updated pre-installed app) for certain backwards compatibility
rules that should only apply to these cases.

Bug: 86259915
Test: boot Pixel 2
Test: Pixel 3: atest -p cts/tests/signature
- all passed except for CtsSystemApiAnnotationTestCases test which
  failed (known issue b/124210145)
Change-Id: Ic824f06489781233dc98bf3dc0182681d32f7142
2019-03-12 21:44:08 +00:00
Nikita Ioffe
da998cfa3d Fail committing new staged session if another one is already in progress
This ensures that there might be at most one committed non-finalized
(i.e. either applied or failed) session.

Note that from StagingManager POV atomic staged install is considered to
be a single session that is represented by the parent session of an
install.

Test: run adb install --staged foo.apk twice.
Test: StagedRollbackTest
Bug: 127296534
Change-Id: I497723173745d4f6eb64b7d22fa3adb0f9e8f6c0
2019-03-12 20:27:42 +00:00
Victor Hsieh
543059895f Revert related work of extractNativeLibs default flip
... in order to remove unnecessary code.

9e4da717 Revert "Flip default of extractNativeLibs if targets Q+"
fe693a07 Revert "Fix default of extractNativeLibs in parseBaseApplication"
86e2783d Revert "Partial revert to not flip the default of extractNativeLibs"

Test: atest CtsDynamicLinkerTestCases
Bug: 128335904
Change-Id: I0e43608a76b3891e84c1622c7a98e2a1dab91985
2019-03-12 10:28:12 -07:00
TreeHugger Robot
fbdd7930a0 Merge changes I72e979ce,I183b8a48
* changes:
  Add @IntDef for status of committed rollback.
  Use test stubs for RollbackTests, not system stubs.
2019-03-12 16:25:25 +00:00
TreeHugger Robot
e927626ad6 Merge "Address API review for SessionInfo, LauncherApps" 2019-03-12 14:44:53 +00:00
Richard Uhler
a4b70300e4 Add @IntDef for status of committed rollback.
Per API council request.

Bug: 127282563
Test: atest RollbackTest
Change-Id: I72e979ce3978c72a0783b44a044ad536b35ee09d
2019-03-12 12:36:03 +00:00
Richard Uhler
8a9774550d Use test stubs for RollbackTests, not system stubs.
Adds @TestApi for all system apis needed for RollbackTests.

Removes @SystemApi for RollbackManager.expireRollbackForPackage and
RollbackManager.reloadPersistedData, which were always intended to be
used solely for testing.

Bug: 127282563
Test: atest RollbackTest StagedRollbackTest
Change-Id: I183b8a484b4a08f36fc19d64241ab408d28c64ca
2019-03-12 12:14:37 +00:00
TreeHugger Robot
fe470d5fe6 Merge "Fix checkstyle error in PackageRollbackInfo." 2019-03-12 11:10:22 +00:00
TreeHugger Robot
10b249f57e Merge "ServiceInfo: Add a new foreground service type for MediaProjection." 2019-03-12 10:26:37 +00:00
TreeHugger Robot
f19439cc68 Merge "Make Resources#getAttributeSetSourceResId public" 2019-03-12 01:46:35 +00:00
TreeHugger Robot
519acc37cd Merge "Partial revert to not flip the default of extractNativeLibs" 2019-03-11 23:37:05 +00:00
Chenbo Feng
de8e3b7931 Add uid information in PackageListObserver
The uid information of a removed package cannot be retrieved by the
packageName anymore once it is removed. So it would be useful to provide
the uid of removed package in the onPackageAdded and onPackageRemoved
method of the PackageListObserver. This modification helps simplify the
design in PermissionMonitor.

Bug: 125396053
Test: dumpsys netd trafficcontroller

Change-Id: I2bd4bdf924687960a4fa3a47235bae68d885e445
2019-03-11 16:11:16 -07:00
Victor Hsieh
0faa8012ad Partial revert to not flip the default of extractNativeLibs
The original changes are 4e54b521 and 12dd9cd4.

Test: atest CtsDynamicLinkerTestCases
Bug: 124353586
Bug: 112037137
Bug: 128335904
Change-Id: Ie55bc735aebcf33d1561b5c225a8bac8d68e85e2
2019-03-11 12:58:56 -07:00