Home
last modified time | relevance | path

Searched refs:assetPath (Results 1 – 10 of 10) sorted by relevance

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
H A DReportEncoderTests.java101 private static String readAsset(Context context, String assetPath) throws IOException { in readAsset() argument
105 context.getResources().getAssets().open(assetPath)))) { in readAsset()
H A DWatchlistSettingsTests.java116 private static String readAsset(Context context, String assetPath) throws IOException { in readAsset() argument
120 context.getResources().getAssets().open(assetPath)))) { in readAsset()
H A DWatchlistConfigTests.java143 private static String readAsset(Context context, String assetPath) throws IOException { in readAsset() argument
147 context.getResources().getAssets().open(assetPath)))) { in readAsset()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/cpu/
H A DCpuInfoReaderTest.java558 private void copyAssets(String assetPath, File targetRoot) throws Exception { in copyAssets() argument
559 File target = new File(targetRoot, assetPath); in copyAssets()
560 String[] assets = mAssetManager.list(assetPath); in copyAssets()
562 try (InputStream in = mAssetManager.open(assetPath); in copyAssets()
570 copyAssets(String.format("%s%s%s", assetPath, File.separator, assetName), targetRoot); in copyAssets()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDpmTestUtils.java134 public static String readAsset(Context context, String assetPath) throws IOException { in readAsset() argument
138 context.getResources().getAssets().open(assetPath)))) { in readAsset()
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/appop/
H A DAppOpsUpgradeTest.java121 private static void extractAppOpsFile(String assetPath) { in extractAppOpsFile() argument
124 InputStream in = sContext.getAssets().open(assetPath, AssetManager.ACCESS_BUFFER)) { in extractAppOpsFile()
/aosp14/frameworks/base/core/java/android/app/
H A DResourcesManager.java1427 public void appendLibAssetForMainAssetPath(String assetPath, String libAsset) { in appendLibAssetForMainAssetPath() argument
1428 appendLibAssetsForMainAssetPath(assetPath, new String[] { libAsset }); in appendLibAssetForMainAssetPath()
1437 public void appendLibAssetsForMainAssetPath(String assetPath, String[] libAssets) { in appendLibAssetsForMainAssetPath() argument
1448 if (impl != null && Objects.equals(key.mResDir, assetPath)) { in appendLibAssetsForMainAssetPath()
/aosp14/frameworks/base/tools/aapt/
H A DCommand.cpp747 const String8& assetPath = bundle->getPackageIncludes()[i]; in doDump() local
748 if (!assets.addAssetPath(assetPath, NULL)) { in doDump()
749 fprintf(stderr, "ERROR: included asset path %s could not be loaded\n", assetPath.string()); in doDump()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DNetworkPolicyManagerServiceTest.java2596 final String assetPath = NETPOLICY_DIR + "/" + mNetpolicyXml; in setNetpolicyXml() local
2598 Log.d(TAG, "Creating " + netConfigFile + " from asset " + assetPath); in setNetpolicyXml()
2599 try (InputStream in = context.getResources().getAssets().open(assetPath); in setNetpolicyXml()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DBaseShortcutManagerTest.java2376 public String readTestAsset(String assetPath) throws IOException {
2380 getTestContext().getResources().getAssets().open(assetPath)))) {