aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add shadow for PersistentDataBlockManagerandroid11-devRubin Xu2020-05-282-0/+48
| | | | | | | Bug: 157451551 Test: make RunSettingsRoboTests ROBOTEST_FILTER=com.android.settings.password Change-Id: I269889309fd11adfa65195e3a6608f164af2abb2
* Update Robolectric to reflect hidden API changes.Jeff Sharkey2020-04-221-0/+21
| | | | | | | | | | | As part of an optimization in Android R, there are two new String variants to support both UTF-8 and UTF-16 strings. This change adds those hidden API overloads to keep tests happy. Bug: 154727109 Test: make RunSettingsRoboTests Change-Id: I657fd9a814a35ae89b10aa1b8f572c45d841bed9
* Add shadows needed for cross profile settings pagekholoud mohamed2020-03-313-10/+70
| | | | | | | | | | | Note that isManagedProfile is copied over from the internal repo while canUserAttemptToConfigureInteractAcrossProfiles is newly added in this CL. Test: Robolectric unit tests are broken in gerrit. Bug: 149742043 Change-Id: If5b85fe63306994505044d64b21bdffac2587feb
* Merge "Add shadow methods for clearing cross-profile app-ops" into rvc-devAlex Kershaw2020-03-265-1/+95
|\
| * Add shadow methods for clearing cross-profile app-opsAlex Kershaw2020-03-235-1/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ShadowCrossProfileAppsTest#clearInteractAcrossProfilesAppOps and unit tests. Also add other missing shadow methods. Tests were not added for shadow changes in ShadowUserManager since it's so out of sync with the Robolectric source of truth currently that the tests would use different fields. Unit tests in Robolectric in the Android source tree are not currently working. Fixes: 151145623 Test: atest com.android.managedprovisioning.task.CreateManagedProfileTaskRoboTest Test: robolectric unit tests in Android source are broken but the new unit tests were tested on the robolectric source of truth Change-Id: I0e2b00586688a4dcd0d7e20a1cd1e39f6236794c
* | Merge "Update ShadowArscApkAssets9 interfaces with platform" into rvc-devTreeHugger Robot2020-03-251-11/+72
|\ \
| * | Update ShadowArscApkAssets9 interfaces with platformMill Chen2020-03-251-11/+72
| | | | | | | | | | | | | | | | | | | | | | | | | | | According to ag/10703185, synchronize ShadowArscApkAssets9 interfaces with ApkAssets of frameworks. Bug: 152065338 Test: make RunSettingsRoboTests RunSettingsLibRoboTests Change-Id: Icf740b7e02b1fe4e14617f6ce745c5fda09d49b1
* | | Merge "Add a shadow for unsafeCheckOpRawNoThrow" into rvc-devTreeHugger Robot2020-03-241-0/+18
|\ \ \ | |/ / |/| |
| * | Add a shadow for unsafeCheckOpRawNoThrowkholoud mohamed2020-03-241-0/+18
| |/ | | | | | | | | | | | | | | | | This is copied over from ShadowAppOpsManager in google3. Bug: 151572330 Test: robolectric tests are currently broken Change-Id: I888576fd07cfaa6cf3cc984e81b2b8727af1c416
* / Adjust to androidx.test ActivityInvoker API change.Brett Chabot2020-03-231-0/+5
|/ | | | | | | | | Test: m Robolectric_all cherry pick from aosp/1240652 Bug: 152240886 Merged-In: I758d12639c924c9263e543103b39438e044c7cd5 Change-Id: Ie7a3123c93e4488e468b7165233643ec86ff33cf
* Add shadow impl for new MotionEvent initializerSean Pont2020-03-131-0/+44
| | | | | | | | Classification added to MotionEvent.initialize to address b/62940136 Test: atest QuickAccessWalletRoboTests Bug: 62940136 Change-Id: Ibf2cf6e734211e97bba39bbd8e524de9208110ac
* Merge "Rename featureId -> attributionTag" into rvc-devPhilip P. Moltmann2020-03-131-3/+3
|\
| * Rename featureId -> attributionTagPhilip P. Moltmann2020-03-111-3/+3
| | | | | | | | | | | | | | | | Bug: 148792795 Test: TH Change-Id: Ia752161ddc473406f67a54b4cb234ea7c58b912e Merged-In: Ia752161ddc473406f67a54b4cb234ea7c58b912e Exempt-From-Owner-Approval: API rename
* | Create the context.getSystemService(Context.POWER_SERVICE)Sunny Shao2020-03-091-0/+3
|/ | | | | | | | | | | | | failed in the Roboletric test case root cause : ServiceManager.getServiceOrThrow(Context.THERMAL_SERVICE) created failed when creates power service. solution: Add the thermal service in the ShadowServiceManager. Fixes: 151047301 Bug: 150907639 Test: make RunSettingsRoboTests -j ROBOTEST_FILTER=com.android.settings.DisplaySettingsTest Change-Id: I611b7b2eceedcf5785c015ba71c5f9b02615d7e3
* Disable new WM feature for robolectricLee Chou2020-03-051-0/+3
| | | | | | | | | | A new window manager feature (b/118118435) caused robolectric tests to freeze. This sets the System Property persist.debug.new_insets=0 to turn off the feature for robolectric tests. Bug: 150011638 Test: m RunStorageManagerRoboTests Change-Id: I0e906b5c9ee86dac195b9d5ba5815bd0c2b01db3
* [automerger skipped] DO NOT MERGE Synchronize robolectric interfaces with ↵Automerger Merge Worker2020-02-270-0/+0
|\ | | | | | | | | | | | | | | platform. Only am: 53afadd551 -s ours am skip reason: subject contains skip directive Change-Id: I212d76916a32dc5ebb9a45df4044f86871a92028
| * DO NOT MERGE Synchronize robolectric interfaces with platform. OnlyJianYang Liu2020-02-261-0/+3
| | | | | | | | | | | | | | | | needed for QPR. Bug: 150247766 Test: make -j RunCarSettingsRoboTests Change-Id: Ifb73fab427dbb953da7d6347fc91b3c098951590
* | Merge "Add the missing param isStrongBiometric"Haining Chen2020-02-201-1/+1
|\ \
| * | Add the missing param isStrongBiometricHaining Chen2020-02-191-1/+1
| | | | | | | | | | | | | | | | | | | | | Bug: 141025588 Test: make -j Change-Id: Ib394719ddbe3c5317fd473352359b2b520772d94
* | | Fixed ShadowRenderNodeAnimator to implementJianYang Liu2020-02-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | android.graphics.animation.RenderNodeAnimator since the code has been moved into that class as of ag/10316486. Bug: 149586961 Test: Robolectric tests pass Change-Id: Ic43f2e06ddd2e877a97740971d7c652fd3f97838
* | | Add #resetInteractAcrossProfilesAppOps shadow to ShadowCrossProfileApps.Jonathan Scott2020-02-141-29/+54
| | | | | | | | | | | | | | | | | | Test: atest UpdateInteractAcrossPRofilesAppOpTaskTest Change-Id: I195bfb6124aef7141cca3a6df9bf346f42f07d78
* | | Merge "Copy getUserSerialNumber from google3."TreeHugger Robot2020-02-141-13/+24
|\ \ \ | |/ / |/| |
| * | Copy getUserSerialNumber from google3.Jonathan Scott2020-02-131-13/+24
| | | | | | | | | | | | | | | Test: All tests are already failing. Tested through atest CrossProfileAppsSnapshotTest Change-Id: I4f5136d158d827fe882f066fb08b7aa2a9e2b362
* | | [automerger skipped] Update robolectric Q stubs to final and add R am: ↵Automerger Merge Worker2020-02-130-0/+0
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1104043674 am: 0c90a07b19 am: 531c7713f3 -s ours am skip reason: Change-Id I3b9b15be281a102ee982628b6a170a6e37c2c7bb with SHA-1 9f914a4214 is in history Change-Id: If2565ba1367417353b930b9f93c3d1cd4311e098
| * \ \ Update robolectric Q stubs to final and add R am: 1104043674 am: 0c90a07b19Automerger Merge Worker2020-02-132-2/+4
| |\ \ \ | | | | | | | | | | | | | | | Change-Id: I899b97daf3ad8202056fee5de6e76e636e0acb07
| | * \ \ Update robolectric Q stubs to final and add R am: 1104043674Automerger Merge Worker2020-02-132-2/+4
| | |\ \ \ | | | | | | | | | | | | | | | | | | Change-Id: I1874507de1336b3126af714841fd651af2207111
| | | * | | Update robolectric Q stubs to final and add RColin Cross2020-02-132-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the Q build to use the final stubs and make the in-development version R. This will allow using $(PLATFORM_VERSION_CODENAME) to find the current stubs. Bug: 136679333 Test: m checkbuild Change-Id: I3b9b15be281a102ee982628b6a170a6e37c2c7bb Merged-In: I3b9b15be281a102ee982628b6a170a6e37c2c7bb
* | | | | | Merge "Update robolectric Q stubs to final"Colin Cross2020-02-132-3/+2
|\ \ \ \ \ \ | |_|_|_|/ / |/| | | | |
| * | | | | Update robolectric Q stubs to finalColin Cross2020-02-112-3/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Update the Q build to use the final stubs. Bug: 136679333 Test: m checkbuild Change-Id: I3b9b15be281a102ee982628b6a170a6e37c2c7bb
* | | | | | Merge "Add setDefaultCrossProfilePackages to shadow."TreeHugger Robot2020-02-121-2/+5
|\ \ \ \ \ \
| * | | | | | Add setDefaultCrossProfilePackages to shadow.Jonathan Scott2020-02-051-2/+5
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This will be merged, including tests, into G3 as cl/293336648. Test: All robolectric shadow tests are failing prior to this change. Functionality tested with atest CrossProfileAppsSnapshotTest. Change-Id: I74cc7afbe21ca4e92d11075fbd67f2b7775fc316
* | | | | | Fix ShadowApplicationPackageManager#getApplicationInfoAsUserAlex Kershaw2020-02-081-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 136249261 Bug: 140728653 Change-Id: Ib733e2244153c590d26041d0e8f901f428bc401c
* | | | | | Fix shadows for setting cross-profile app-ops from provisioning screenAlex Kershaw2020-02-073-15/+717
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Move ShadowCrossProfileApps and ShadowCrossProfileAppsTest and add to ShadowServiceManager. Note that none of this is new except for setInteractAcrossProfilesAppOp and getInteractAcrossProfilesAppOp. 2) Fix ShadowApplicationPackageManager#getApplicationIcon(ApplicationInfo). Again, nothing is new here - just copied across. Bug: 136249261 Bug: 140728653 Bug: 148769796 Change-Id: I9767942278e061ad05fd44816e3df856a1df24d9
* | | | | | Merge "Add shadows needed to test cross profile settings page"Kholoud Mohamed2020-02-075-1/+88
|\ \ \ \ \ \
| * | | | | | Add shadows needed to test cross profile settings pagekholoud mohamed2020-02-045-1/+88
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | BUG: 136249261 BUG: 140728653 Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesControllerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesDetailsTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesPreferenceControllerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesSettingsTest Change-Id: If6539e556291dd4a69887a2a4ce9d359935a4ec1
* | | | | | | Fix failing test casesTsung-Mao Fang2020-02-071-0/+7
| |/ / / / / |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since HardwareRenderer#nCreateProxy changed the interface in ag/10253599, We need to leverage the interface in robolectric framework as well. Test: Run all Settings app test cases. Change-Id: I99c9ce23dcc4d081a04b9300a73038cf45220d96 Fix: 149059655
* | | | | | Merge "Add shadowing for default cross-profile packages"Alex Kershaw2020-02-051-0/+12
|\ \ \ \ \ \
| * | | | | | Add shadowing for default cross-profile packagesAlex Kershaw2020-02-041-0/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add ShadowDevicePolicyManager#getDefaultCrossProfilePackages and Bug: 136249261 Bug: 140728653 Bug: 148769796 Change-Id: I539a1263b237d291efead682d945d680e0eb9772
* | | | | | | This moves shadows/httpclient tests to the isolation runner. am: dbdf288e02 ↵Automerger Merge Worker2020-02-0312-2/+145
|\ \ \ \ \ \ \ | |/ / / / / / |/| | / / / / | | |/ / / / | |/| | | | | | | | | | am: 7a5789c8e8 am: 6d7a7e852c Change-Id: I7d7b0e9121f3921628034e6f26b677379d7f31b7
| * | | | | This moves shadows/httpclient tests to the isolation runner. am: dbdf288e02 ↵Automerger Merge Worker2020-02-0312-2/+145
| |\ \ \ \ \ | | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | am: 7a5789c8e8 Change-Id: I30ca8c7b59eacb9b4819111f1ed6eeae71ec622c
| | * | | | This moves shadows/httpclient tests to the isolation runner. am: dbdf288e02Automerger Merge Worker2020-02-0312-2/+145
| | |\ \ \ \ | | | | |/ / | | | |/| | | | | | | | Change-Id: I9799de463ff0fde3fd47dc331b3108697882eeab
| | | * | | This moves shadows/httpclient tests to the isolation runner.android-r-preview-1Joseph Murphy2020-01-2912-2/+145
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting small, this moves just one suite to the new runner while leaving the legacy flow enabled. There will be more to follow. Edit #1: Moved a bunch more things over. To run the tests under atest, try: `atest --host Robolectric_processor_tests` `atest --host Robolectric_sandbox_tests` and so on. Test: results match existing flow Change-Id: I4bfaabfc04123ad4f923959f565f74667324abcc
* | | | | | Annotate new methods as INTERNAL in ShadowUserManagerValentin Iftime2020-01-231-2/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And add javadoc for hasBadge() Test: atest DefaultAppInfoTest.initInfoWithActivityInfo_shouldLoadInfo ; m RunSettingsRoboTests Bug: 148119724 Change-Id: I0dc58fbd5a1009735b07cd8d16ecf47691f1db5c
* | | | | | Merge "Add hasBadge to ShadowUserManager"Iavor-Valentin Iftime2020-01-231-0/+5
|\ \ \ \ \ \
| * | | | | | Add hasBadge to ShadowUserManagerValentin Iftime2020-01-221-0/+5
| | |_|_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The calling order for UserManager.isProfile(int userId) and UserManager.isProfile() was switched. The methods are called by IconDrawableFactory.getBadgedIcon, which is used by DefaultAppInfoTest.initInfoWithActivityInfo_shouldLoadInfo and tests for packages/apps/Settings. ShadowUserManager needs to be patched. Bug: 148119724 Test: DefaultAppInfoTest.initInfoWithActivityInfo_shouldLoadInfo ; atest RunSettingsRoboTests Change-Id: I92fcaa628b6933b99fb91c71ee75ded8762960bd
* | | | | | Only use $(shell) when necessary am: 481836ec30 am: 94ffa4eec5 am: d65b667290Automerger Merge Worker2020-01-222-6/+10
|\ \ \ \ \ \ | |/ / / / / |/| / / / / | |/ / / / Change-Id: Ie95c5c97f398b7891a78a21297e24113693578fd
| * | | | Only use $(shell) when necessary am: 481836ec30 am: 94ffa4eec5Automerger Merge Worker2020-01-222-6/+10
| |\| | | | | | | | | | | | | | | | | | Change-Id: I22eb6b04053576440c84e536c099c95fc4220a20
| | * | | Only use $(shell) when necessaryDan Willemsen2020-01-222-6/+10
| | |\| | | | | | | | | | | | | | | | | | | | | | | | | | | am: 481836ec30 Change-Id: I44525ffe40e90eb270e33f947ada499d45b0455e
| | | * | Only use $(shell) when necessaryDan Willemsen2020-01-212-6/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This removes 35 $(shell) uses from AOSP, and there were only 101 total. It also saves about 40% of the time we spent re-running shell commands on every build (0.47s -> 0.28s). Test: m nothing; m nothing; check out/verbose.log.gz for top shell cmds Test: ROBOTEST_FILTER=CodeInspectionTest m nothing; check log Change-Id: If33a74a2362787a30b38fb20f1d79ca420e38a52
* | | | | Pass environment parameter EVENT_FILE_ROBOLECTRIC to robo test. am: ↵Automerger Merge Worker2020-01-201-0/+1
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 32f5dcf871 am: 106740c16e am: 0fcab43718 Change-Id: I51d1417231caac51d01803839d5cf938276cfc28