Home
last modified time | relevance | path

Searched refs:getAssets (Results 1 – 25 of 82) sorted by relevance

1234

/packages/apps/CarrierConfig/src/com/android/carrierconfig/
DDefaultCarrierConfigService.java118 parser.setInput(getApplicationContext().getAssets().open( in loadConfig()
144 for (String file : getApplicationContext().getAssets().list("")) { in loadConfig()
146 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig()
150 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig()
153 parser.setInput(getApplicationContext().getAssets().open(file), "utf-8"); in loadConfig()
169 parser.setInput(getApplicationContext().getAssets().open( in loadConfig()
/packages/modules/AdServices/sdksandbox/framework/java/android/app/sdksandbox/
DSandboxedSdkContext.java107 mAssets = resources.getAssets(); in SandboxedSdkContext()
204 public AssetManager getAssets() { in getAssets() method in SandboxedSdkContext
206 return getBaseContext().getAssets(); in getAssets()
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/testutils/
DCertUtils.java46 context.getResources().getAssets().open(PEM_FOLDER_NAME + "/" + fileName); in createCertFromPemFile()
56 context.getResources().getAssets().open(KEY_FOLDER_NAME + "/" + fileName); in createRsaPrivateKeyFromKeyFile()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/legal/
DModuleLicensesPreferenceControllerTest.java97 when(resources.getAssets()).thenReturn(manager); in displayPreference_alphabeticalOrder()
129 when(resources.getAssets()).thenReturn(manager); in displayPreference_includeOnlyModulesWithLicenseFile()
139 when(resources2.getAssets()).thenReturn(manager2); in displayPreference_includeOnlyModulesWithLicenseFile()
DModuleLicensesListPreferenceControllerTest.java66 when(resources.getAssets()).thenReturn(manager); in getAvailabilityStatus_validLicenses_returnsAvailable()
107 when(resources.getAssets()).thenReturn(manager); in getAvailabilityStatus_noLicenses_returnsConditionallyUnavailable()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/download/
DEncryptionDataDownloadManagerTest.java116 sContext.getAssets() in testReadFileAndInsertIntoDatabaseSuccess()
144 sContext.getAssets() in testReadFileAndInsertIntoDatabaseSuccess_keysUpdated()
149 sContext.getAssets() in testReadFileAndInsertIntoDatabaseSuccess_keysUpdated()
193 sContext.getAssets() in testReadFileAndInsertIntoDatabaseSuccess_deleteExpiredKeys()
DEnrollmentDataDownloadManagerTest.java135 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseSuccess()
221 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseEnrollmentDataFileIdMissing()
251 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseExecutionException()
315 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testEnrollmentMddRecordDeletionCallsOverwrite()
384 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadFileAndInsertIntoDatabaseSuccess_verifyFileGroupDataInSharedPreference()
464 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_PROTO_FILE_PATH)); in testReadProtoFileAndInsertIntoDatabaseSuccess()
592 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_FILE_PATH)); in testReadProtoFileAndInsertIntoDatabaseSuccess_noProtoFileFound()
661 .thenReturn(sContext.getAssets().open(TEST_ENROLLMENT_DATA_PROTO_FILE_PATH)); in testReadProtoFileAndInsertIntoDatabaseFailed_noFilesFound()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbContext.java112 public AssetManager getAssets() { in getAssets() method in UwbContext
116 mUwbAssetsFromApk = resourcesApkContext.getAssets(); in getAssets()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DConfigXmlTest.java71 String[] configName = mContext.getAssets().list(""); in testNumValueInConfigArray()
78 InputStream input = mContext.getAssets().open(fileName); in testNumValueInConfigArray()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/topics/classifier/
DCommonClassifierHelperTest.java541 computeClassifierAssetChecksum(sContext.getAssets(), TEST_LABELS_FILE_PATH); in testComputeTestAssetChecksum()
548 computeClassifierAssetChecksum(sContext.getAssets(), TEST_PRECOMPUTED_FILE_PATH); in testComputeTestAssetChecksum()
559 computeClassifierAssetChecksum(sContext.getAssets(), PRODUCTION_LABELS_FILE_PATH); in testComputeProductionAssetChecksum()
566 computeClassifierAssetChecksum(sContext.getAssets(), PRODUCTION_APPS_FILE_PATH); in testComputeProductionAssetChecksum()
DModelManagerTest.java263 .thenReturn(sContext.getAssets().open(PRODUCTION_LABELS_FILE_PATH)); in testRetrieveLabels_downloaded_successfulRead()
606 sContext.getAssets().open(PRODUCTION_CLASSIFIER_ASSETS_METADATA_FILE_PATH)); in testGetProductionClassifierAssetsMetadata_downloaded_correctFormat()
709 .thenReturn(sContext.getAssets().open(PRODUCTION_CLASSIFIER_INPUT_CONFIG_PATH)); in testRetrieveClassifierInputConfig_downloaded_successfulRead()
786 when(mockContext.getAssets()).thenReturn(mockAssetManager); in testRetrieveClassifierInputConfig_emptyConfigReturnedOnInvalidConfigField()
817 when(mockContext.getAssets()).thenReturn(mockAssetManager); in testRetrieveClassifierInputConfig_emptyConfigReturnedOnInvalidConfigFormat()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DE2eCarTestBase.java127 try (InputStream in = mContext.getAssets().open(fileName)) { in getExpectedEvents()
134 try (InputStream in = mContext.getAssets().open(fileName)) { in getTestFileContent()
/packages/modules/OnDevicePersonalization/pluginlib/src/com/android/ondevicepersonalization/libraries/plugin/internal/
DPluginArchiveManager.java237 assetManager = mApplicationContext.getAssets(); in getArchiveChecksum()
254 return pluginContext.getAssets(); in packageAssetManager()
304 return copyPluginToCacheDir(pluginArchive, mApplicationContext.getAssets()); in copyPluginFromAssetsToCacheDir()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiContext.java164 public AssetManager getAssets() { in getAssets() method in WifiContext
168 mWifiAssetsFromApk = resourcesApkContext.getAssets(); in getAssets()
/packages/services/Car/service-builtin/src/com/android/car/
DUpdatablePackageContext.java217 public AssetManager getAssets() { in getAssets() method in UpdatablePackageContext
218 return mPackageContext.getAssets(); in getAssets()
/packages/apps/Settings/src/com/android/settings/language/
DPhoneLanguagePreferenceController.java40 && mContext.getAssets().getLocales().length > 1) { in getAvailabilityStatus()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/cobalt/
DCobaltRegistryLoader.java49 AssetManager assetManager = context.getAssets(); in getRegistry()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/data/measurement/
DDeleteExpiredIntegrationTest.java41 InputStream inputStream = sContext.getAssets().open( in data()
DAppDeletionIntegrationTest.java48 InputStream inputStream = sContext.getAssets().open( in data()
/packages/apps/Settings/tests/unit/src/com/android/settings/core/codeinspection/
DCodeInspector.java84 .getAssets().open(filename); in initializeExemptList()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DTopicIdNameUtil.java46 mAssetManager = context.getAssets(); in TopicIdNameUtil()
/packages/apps/Contacts/src/com/android/contacts/extensions/
DExtensionsFactory.java51 final InputStream fileStream = context.getAssets().open(EXTENSIONS_PROPERTIES); in init()
/packages/apps/Settings/tests/robotests/src/com/android/settings/core/codeinspection/
DCodeInspector.java83 final InputStream in = RuntimeEnvironment.application.getAssets().open(filename); in initializeExemptList()
/packages/modules/AdServices/adservices/tests/perf/src/android/adservices/test/scenario/adservices/fledge/
DAbstractSelectAdsLatencyTest.java176 InputStream is = ApplicationProvider.getApplicationContext().getAssets().open(fileName); in readCustomAudiences()
228 InputStream is = ApplicationProvider.getApplicationContext().getAssets().open(fileName); in readAdSelectionConfig()
/packages/modules/AdServices/sdksandbox/tests/test-apps/CodeProviderWithResources/src/com/android/codeproviderresources_1/
DResourceSandboxedSdkProvider.java57 AssetManager assets = getContext().getAssets(); in onLoadSdk()

1234