Commit Graph

13544 Commits

Author SHA1 Message Date
Song Hu
3349d20780 Merge "Enable ChooserTarget ranking of the same app." into rvc-dev am: efa0eab058 am: a384d1eb7a
Change-Id: Icacb2da601682b2257184be2910da10737e7bad2
2020-05-06 00:36:27 +00:00
Song Hu
efa0eab058 Merge "Enable ChooserTarget ranking of the same app." into rvc-dev 2020-05-06 00:02:06 +00:00
Song Hu
60c131e869 Enable ChooserTarget ranking of the same app.
Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: If5a4edfec7116cd54ed0ae6543cab0beb011f987
2020-05-05 10:27:52 -07:00
Collin Fijalkovich
ab7486dc76 Merge changes from topic "rvc-telephony-caching" into rvc-dev am: a131a0c64f am: 31134a846b
Change-Id: I9b7f25da0ecfcfb17d851cf51a275da3ac1a7b41
2020-05-05 17:05:56 +00:00
Collin Fijalkovich
a131a0c64f Merge changes from topic "rvc-telephony-caching" into rvc-dev
* changes:
  Cache getPhoneId and getSlotIndex binder calls.
  Refactor SubscriptionManager caching code
  Cache getDefaultSmsSubscriptionId Binder calls
  Cache getActiveDataSubscriptionId Binder calls
2020-05-05 16:30:39 +00:00
Kholoud Mohamed
41aa6e32ae Merge "Fix bug in IntentForwarderActivity" into rvc-dev am: d4d2427c01
Change-Id: I6fbe85e3a9eb0c28b33981725120cf96a6933228
2020-05-05 13:56:19 +00:00
Kholoud Mohamed
d4d2427c01 Merge "Fix bug in IntentForwarderActivity" into rvc-dev 2020-05-05 13:37:54 +00:00
kholoud mohamed
06335279aa Fix bug in IntentForwarderActivity
Bug: 155096621
Test: atest com.android.cts.devicepolicy.ManagedProfileCrossProfileTest#testCrossProfileIntentFilters
Test: atest IntentForwarderActivityTest
Test: atest ResolverActivityTest
Test: atest ChooserActivityTest
Change-Id: Ieb99f566fa9cfc14254fecfa5897d421fd39482f
2020-05-05 09:56:07 +00:00
Jing Ji
6cadc218fe Merge "Support to pull aggregated procstats associations" into rvc-dev am: e9fbacf6c5
Change-Id: I4c5a3f889c99337c9462104d1a0b880d1ba12a6f
2020-05-05 01:10:49 +00:00
Jing Ji
e9fbacf6c5 Merge "Support to pull aggregated procstats associations" into rvc-dev 2020-05-05 01:05:47 +00:00
Adam Bookatz
9a7193540b Merge "Listener to watch op starts" into rvc-dev am: 316bc6ff66
Change-Id: Ibfb5fa140c85c8548096993e9228eb917ab1487e
2020-05-05 01:05:07 +00:00
Adam Bookatz
316bc6ff66 Merge "Listener to watch op starts" into rvc-dev 2020-05-05 00:52:12 +00:00
Yuncheol Heo
5df9a2c229 Merge changes from topic "immersive" into rvc-dev am: 8f4363a226
Change-Id: I6c4e16a40c99d2051804b06dabcfea4d10644cef
2020-05-05 00:28:36 +00:00
Yuncheol Heo
8f4363a226 Merge changes from topic "immersive" into rvc-dev
* changes:
  Add test api getStatus/NavigationBarBackgroundView.
  Notify the visibility change to update color views without control.
2020-05-05 00:14:09 +00:00
Adam Bookatz
182862e595 Listener to watch op starts
Currently, there is
onOpNoted - tells listeners that noteOp has occurred
onOpActiveChanged - tells listeners that an op's 'active' state has
changed, i.e. that a successfull startOp or stopOp has happened

There was, however, no way of telling a listener that a startOp has
happened (regardless of whether it was successful). This cl introduces
it, via a OnOpStartedListener.

This is required by the ForegroundServiceAppOpSessionEnded atom,
which counts the number of accepted vs. rejected attempts, and
therefore also needs to know when a rejected start happened.

This cl also contains some cosmetic moving of code so that
startOperation() and noteOperationImpl() are almost
exactly parallel.

* Also *
This cl fixes a bug I discovered in stopWatchingNoted, in which
the callback wasn't fully removed. Consequently, if a callback
was unregistered and then re-registered, the re-registration would
mistakingly be ignored (in direct contradiction to the javadoc).

Test: atest UidAtomTests#testForegroundServiceAccessAppOp
Test: atest AppOpsStartedWatcherTest AppOpsActiveWatcherTest AppOpsNotedWatcherTest
Test: manually monitor: adb shell cmd stats print-logs && adb logcat -v uid -s statsd | grep "statsd  : {" | egrep '\(256\)'
Bug: 152800926
Change-Id: Icdb9edf6b2b7c5807b339c1aabb32e882190b071
2020-05-04 21:59:29 +00:00
Yuncheol Heo
70c4bb9007 Add test api getStatus/NavigationBarBackgroundView.
Introduces new test api to access the background view of status bar and
navigation bar.

Bug: 154720832
Test: atest WindowInsetsPolicyTest

Change-Id: If38d3f57edfbb2631d4c1e47ed5347a332edacfb
2020-05-04 14:36:43 -07:00
Jing Ji
060d68630d Support to pull aggregated procstats associations
Bug: 145203981
Test: b/152397079#comment12
Test: atest CtsStatsdHostTestCases
Change-Id: If5b9723a41a9d2eefc2cb132b3a3bf16f57872e9
2020-05-04 14:33:06 -07:00
Song Hu
1b888453e7 Merge "Pass ChooserTarget sharing and impression info to AppPredictor. Rank ChooserTargets of the same component as per available scores returned by AppPredictor. These two features are guarded by flag "mChooserTargetRankingEnabled" Add relevant logging to make it easy to figure out root cause from bug report." into rvc-dev am: 4a9bd0da70
Change-Id: I6ae30f7fb54ae3ec68439adabbf720fd75ab519a
2020-05-04 16:51:20 +00:00
Song Hu
4a9bd0da70 Merge "Pass ChooserTarget sharing and impression info to AppPredictor. Rank ChooserTargets of the same component as per available scores returned by AppPredictor. These two features are guarded by flag "mChooserTargetRankingEnabled" Add relevant logging to make it easy to figure out root cause from bug report." into rvc-dev 2020-05-04 16:39:00 +00:00
Song Hu
5aab2d3fbe Pass ChooserTarget sharing and impression info to AppPredictor.
Rank ChooserTargets of the same component as per available scores returned by AppPredictor.
These two features are guarded by flag "mChooserTargetRankingEnabled"
Add relevant logging to make it easy to figure out root cause from bug report.

Bug: 151112858
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: Id8c4b373ba9e2e1ae29281791e49dde8722ba9d1
2020-05-03 15:17:54 -07:00
Winson Chung
7b6a48cecb Merge "Account for getDimension() also doing a pixel conversion" into rvc-dev am: a29ccb6fa3
Change-Id: If2880b5676fd62afe5c140f88733f74f09cced8e
2020-05-02 02:58:30 +00:00
Winson Chung
4ef84183e7 Account for getDimension() also doing a pixel conversion
Change-Id: Ie35eb98d6063a0747851e06f6da17b86ede19b41
Bug: 148104018
Test: Ensure edge swipe thresholds match resources
2020-05-01 15:24:49 -07:00
Rubin Xu
3733aea8e1 Merge "Refresh strong auth alarm when admin changes policy" into rvc-dev am: bc7d9bdd5a
Change-Id: I59bd71b9f197043fbcedd1c3a714ba774ce17ea0
2020-05-01 10:31:20 +00:00
Rubin Xu
bc7d9bdd5a Merge "Refresh strong auth alarm when admin changes policy" into rvc-dev 2020-05-01 10:14:28 +00:00
Maryam Karimzadehgan
8dbbd88612 Merge "Add Flags to be able to run experiments for the Back Gesture Problem." into rvc-dev am: 6ff27423b8
Change-Id: I3c45ce2f0c0e8069b96c3d82c73e26e9fa58a275
2020-04-30 23:36:41 +00:00
Maryam
a142e5210b Add Flags to be able to run experiments for the Back Gesture Problem.
Test: manual atest, adb shell device_config put systemui back_gesture_bottom_height 1000
Bug: 148104018
Change-Id: I5b0e696ca2e015d2d9a1718785f4a140cfff083f
2020-04-30 16:23:43 +00:00
Yunfan Chen
3e87b4d891 Merge "Report caption insets change when layout" into rvc-dev am: 9f804f7593
Change-Id: If0cab89959f4f24d9f8cff1f0ea9c5835c7b4540
2020-04-30 04:52:42 +00:00
Yunfan Chen
9f804f7593 Merge "Report caption insets change when layout" into rvc-dev 2020-04-30 04:43:47 +00:00
Rubin Xu
9e765abc56 Refresh strong auth alarm when admin changes policy
When admin sets a new strong auth timeout policy, replace the existing
alarm (which enforces strong auth after the timeout) with a new one
with updated timeout.

Bug: 146188984
Test: atest com.android.server.locksettings.LockSettingsStrongAuthTest
Test: atest MixedManagedProfileTest#testRequiredStrongAuthTimeout
Change-Id: Ibcc13eb0d66697aff44192769b8fd817ca6800b8
2020-04-29 16:00:04 +01:00
PETER LIANG
f2aae1f829 Merge "Replace the switch item with the text for multiple shortcut menu." into rvc-dev am: c463e56a80
Change-Id: Idb809129577af1d0d75eaacf6e9bc8a3acdf2676
2020-04-29 04:11:37 +00:00
Treehugger Robot
d0ec55625d Merge "Make me an owner of accessibility frameworks" am: 5a0d2aa4ba am: 20bee3e6de
Change-Id: I4a695d7feaefae2640bf7f1a25bc46a144ae3582
2020-04-29 04:10:33 +00:00
PETER LIANG
c463e56a80 Merge "Replace the switch item with the text for multiple shortcut menu." into rvc-dev 2020-04-29 04:08:36 +00:00
Treehugger Robot
5a0d2aa4ba Merge "Make me an owner of accessibility frameworks" 2020-04-29 03:37:54 +00:00
Isaac Chen
c27232bf33 Merge "Enable System User Home for CSI" 2020-04-29 02:19:12 +00:00
Collin Fijalkovich
41f94629c9 Cache getPhoneId and getSlotIndex binder calls.
Use PropertyInvalidatedCache to avoid redundant calls to
SubscriptionController getSlotIndex and getPhoneId.
Bug: 151953109
Test: Verified cache operated correctly when phone process is killed.
Test: atest SubscriptionControllerTest
Test: atest android.telephony.cts.SubscriptionManagerTest

Change-Id: I70552537af44f3e05b156cd190ebb28f0d940bf6
2020-04-28 16:30:40 -07:00
Jeffrey Huang
d414cb4a07 Merge "Update process_state_changed logging" into rvc-dev am: 144788b5bb
Change-Id: I391161333f2731e08433bd0acd49c7ebff752559
2020-04-28 23:12:01 +00:00
Jeffrey Huang
144788b5bb Merge "Update process_state_changed logging" into rvc-dev 2020-04-28 22:56:29 +00:00
Qasid Ahmad Sadiq
dbcc760b00 Make me an owner of accessibility frameworks
Test: Relying on treehugger. No functional changes.
Change-Id: Idbe16f9e2443ab897c7a0c5583d6088d16c4f0fd
2020-04-28 14:42:00 -07:00
Jeffrey Huang
419197630e Update process_state_changed logging
Log only the parent state to avoid unnecessary process states from being
sent to statsd. This may not work for all cases, but the edge cases can
be revisited later.

Bug: 135965535
Bug: 135375287
Test: manually tested using chrome
Change-Id: I87b79f5d21f186f227a5a50bbe83b56a9105348c
2020-04-28 13:48:06 -07:00
TreeHugger Robot
cb95c883dd Merge "Fix a bug in InlinePresentationStyleUtils#bundleEquals" into rvc-dev am: bc000662c3
Change-Id: Ief40a2292f73d0e24a52afb98497298a938a31f3
2020-04-28 20:25:58 +00:00
TreeHugger Robot
bc000662c3 Merge "Fix a bug in InlinePresentationStyleUtils#bundleEquals" into rvc-dev 2020-04-28 20:17:02 +00:00
TreeHugger Robot
d933374a1b Merge "Don't pass initial intents to the inactive profile." into rvc-dev am: 04ccfdfae7
Change-Id: Idc3e98bd0ab3ca9f253077153322c03874a751e8
2020-04-28 19:25:22 +00:00
TreeHugger Robot
04ccfdfae7 Merge "Don't pass initial intents to the inactive profile." into rvc-dev 2020-04-28 19:19:17 +00:00
TreeHugger Robot
e515104eae Merge "Move conversation app name into header" into rvc-dev am: 821b7f21b0
Change-Id: I7c7e57735c952fe00fc42f5db3201f9597ce2b28
2020-04-28 19:14:55 +00:00
TreeHugger Robot
821b7f21b0 Merge "Move conversation app name into header" into rvc-dev 2020-04-28 18:51:35 +00:00
Feng Cao
ca8cf2776d Fix a bug in InlinePresentationStyleUtils#bundleEquals
* before the fix, the method would return false if the two bundles both
  contains a nested bundle for the same key, and the nested bundles are
  equal. i.e. the test case
  InlinePresentationStyleUtilsTest#testBundleEquals_nestedBundle_equal
  would fail.

Test: atest InlinePresentationStyleUtilsTest
Bug: 154957669

Change-Id: Ia2cf682619fa245d846972a8683d03333551df78
2020-04-28 11:27:59 -07:00
arangelov
acc8243564 Don't pass initial intents to the inactive profile.
Otherwise the initial intents will be shown in the other
profile as share targets. This would cause a crash when
the user selects the app, as the activity cannot
be resolved.

Fixes: 155088755
Test: manual
Test: atest ChooserActivityTest
Test: atest ResolverActivityTest
Change-Id: I0604c15c35ecddf163460286b84c27daf6ca9a5b
2020-04-28 18:52:54 +01:00
TreeHugger Robot
23011d007b Merge "Only perform autolaunch if list has completely rebuilt" into rvc-dev am: 8862ee3891
Change-Id: Ia0eeaa6393a4cdcfec2bc8a640300c88cdecdd96
2020-04-28 14:03:00 +00:00
TreeHugger Robot
8862ee3891 Merge "Only perform autolaunch if list has completely rebuilt" into rvc-dev 2020-04-28 13:59:33 +00:00
arangelov
1b11cc1a17 Only perform autolaunch if list has completely rebuilt
Previously we would check for autolaunch the first time
onPostListReady is called, but that is too early in the case
when we start the async task for sorting the targets. In
that case onPostListReady is called twice - once before
task is launched, and once after task is finished.

We fix this by passing the rebuildListCompleted parameter to
the onPostListReady callback and use it to check for autolaunch.

Test: atest ChooserActivity
Test: atest ResolverActivity
Test: manual
Fixes: 154728817
Change-Id: Ib1b049af00d791898b908bdb65971c07c558f3ac
2020-04-28 12:59:18 +01:00