Home
last modified time | relevance | path

Searched refs:resources2 (Results 1 – 4 of 4) sorted by relevance

/aosp12/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesManagerTest.java127 Resources resources2 = mResourcesManager.getResources( in testAddingASplitCreatesANewImpl() local
131 assertNotNull(resources2); in testAddingASplitCreatesANewImpl()
133 assertNotSame(resources1, resources2); in testAddingASplitCreatesANewImpl()
144 Resources resources2 = mResourcesManager.getResources( in testUpdateConfigurationUpdatesAllAssetManagers() local
147 assertNotNull(resources2); in testUpdateConfigurationUpdatesAllAssetManagers()
158 assertNotSame(resources1, resources2); in testUpdateConfigurationUpdatesAllAssetManagers()
160 assertNotSame(resources2, resources3); in testUpdateConfigurationUpdatesAllAssetManagers()
191 Resources resources2 = mResourcesManager.getResources( in testTwoActivitiesWithIdenticalParametersShareImpl() local
197 assertNotSame(resources1, resources2); in testTwoActivitiesWithIdenticalParametersShareImpl()
250 assertNotNull(resources2); in testMultipleResourcesForOneActivityGetUpdatedWhenActivityBaseUpdates()
[all …]
/aosp12/frameworks/av/services/mediaresourcemanager/test/
H A DResourceManagerService_test.cpp70 std::vector<MediaResourceParcel> resources2; in addResource() local
71 resources2.push_back(MediaResource(MediaResource::Type::kNonSecureCodec, 1)); in addResource()
72 resources2.push_back(MediaResource(MediaResource::Type::kGraphicMemory, 300)); in addResource()
73 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources2); in addResource()
669 std::vector<MediaResourceParcel> resources2; in testBatteryStats() local
671 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources2); in testBatteryStats()
681 mService->removeResource(kTestPid1, getId(mTestClient1), resources2); in testBatteryStats()
708 std::vector<MediaResourceParcel> resources2; in testCpusetBoost() local
709 resources2.push_back(MediaResource(MediaResource::Type::kCpuBoost, 2)); in testCpusetBoost()
710 mService->addResource(kTestPid2, kTestUid2, getId(mTestClient2), mTestClient2, resources2); in testCpusetBoost()
[all …]
H A DResourceManagerServiceTestUtils.h194 const ResourceList &resources2) { in isEqualResources() argument
202 return r1 == resources2; in isEqualResources()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
H A DModuleLicensesPreferenceControllerTest.java136 Resources resources2 = mock(Resources.class); in displayPreference_includeOnlyModulesWithLicenseFile() local
137 when(packageManager.getResourcesForApplication(applicationInfo2)).thenReturn(resources2); in displayPreference_includeOnlyModulesWithLicenseFile()
139 when(resources2.getAssets()).thenReturn(manager2); in displayPreference_includeOnlyModulesWithLicenseFile()