Home
last modified time | relevance | path

Searched refs:dataDir (Results 1 – 22 of 22) sorted by relevance

/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/
DContextTest.java64 File dataDir = new File(ShadowContext.FILES_DIR, "data"); in shouldGetApplicationDataDirectory() local
65 assertThat(dataDir.mkdir(), is(true)); in shouldGetApplicationDataDirectory()
67 dataDir = context.getDir("data", Context.MODE_PRIVATE); in shouldGetApplicationDataDirectory()
68 assertThat(dataDir, not(nullValue())); in shouldGetApplicationDataDirectory()
69 assertThat(dataDir.exists(), is(true)); in shouldGetApplicationDataDirectory()
75 File dataDir = new File(ShadowContext.FILES_DIR, "data"); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory() local
76 assertThat(dataDir.exists(), is(false)); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
78 dataDir = context.getDir("data", Context.MODE_PRIVATE); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
79 assertThat(dataDir, not(nullValue())); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
80 assertThat(dataDir.exists(), is(true)); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
/external/icu/icu4c/source/test/cintltst/
Dhpmufn.c63 const char *dataDir = u_getDataDirectory(); /* Returned string vanashes with u_cleanup */ in safeGetICUDataDirectory() local
65 if (dataDir != NULL) { in safeGetICUDataDirectory()
66 retStr = (char *)malloc(strlen(dataDir)+1); in safeGetICUDataDirectory()
67 strcpy(retStr, dataDir); in safeGetICUDataDirectory()
Dcintltst.c454 const char *dataDir = u_getDataDirectory(); /* Returned string vanashes with u_cleanup */ in safeGetICUDataDirectory() local
456 if (dataDir != NULL) { in safeGetICUDataDirectory()
457 retStr = (char *)malloc(strlen(dataDir)+1); in safeGetICUDataDirectory()
458 strcpy(retStr, dataDir); in safeGetICUDataDirectory()
465 char *dataDir = safeGetICUDataDirectory(); in ctest_resetICU() local
472 u_setDataDirectory(dataDir); in ctest_resetICU()
473 free(dataDir); in ctest_resetICU()
Dudatatst.c500 const char *dataDir = u_getDataDirectory(); /* Returned string vanashes with u_cleanup */ in safeGetICUDataDirectory() local
502 if (dataDir != NULL) { in safeGetICUDataDirectory()
503 retStr = (char *)malloc(strlen(dataDir)+1); in safeGetICUDataDirectory()
504 strcpy(retStr, dataDir); in safeGetICUDataDirectory()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextTest.java47 File dataDir = context.getDir("data", Context.MODE_PRIVATE); in shouldGetApplicationDataDirectory() local
48 assertThat(dataDir) in shouldGetApplicationDataDirectory()
55 File dataDir = new File(context.getPackageManager() in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory() local
56 .getPackageInfo("org.robolectric", 0).applicationInfo.dataDir, "data"); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
58 assertThat(dataDir).doesNotExist(); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
60 dataDir = context.getDir("data", Context.MODE_PRIVATE); in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
61 assertThat(dataDir) in shouldCreateIfDoesNotExistAndGetApplicationDataDirectory()
/external/mockito/subprojects/android/src/main/java/org/mockito/android/internal/creation/
DAndroidTempFileLocator.java65 File dataDir = new File("/data/data/" + packageName); in guessPath() local
66 if (isWriteableDirectory(dataDir)) { in guessPath()
67 File cacheDir = new File(dataDir, "cache"); in guessPath()
/external/dexmaker/dexmaker/src/main/java/com/android/dx/
DAppDataDirGuesser.java149 File dataDir = new File("/data/data/" + packageName); in guessPath() local
150 if (isWriteableDirectory(dataDir)) { in guessPath()
151 File cacheDir = new File(dataDir, "cache"); in guessPath()
/external/skia/tools/skqp/jni/
Dorg_skia_skqp_SkQPRunner.cpp144 jstring dataDir, jboolean experimentalMode) { in Java_org_skia_skqp_SkQP_nInit() argument
157 const char* dataDirString = env->GetStringUTFChars(dataDir, nullptr); in Java_org_skia_skqp_SkQP_nInit()
163 env->ReleaseStringUTFChars(dataDir, dataDirString); in Java_org_skia_skqp_SkQP_nInit()
/external/skqp/tools/skqp/jni/
Dorg_skia_skqp_SkQPRunner.cpp144 jstring dataDir, jboolean experimentalMode) { in Java_org_skia_skqp_SkQP_nInit() argument
157 const char* dataDirString = env->GetStringUTFChars(dataDir, nullptr); in Java_org_skia_skqp_SkQP_nInit()
163 env->ReleaseStringUTFChars(dataDir, dataDirString); in Java_org_skia_skqp_SkQP_nInit()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/
DCompatibilityTest.java141 for (File dataDir : dataDirs) { in getFileList()
142 File files[] = dataDir.listFiles(new FileFilter() { in getFileList()
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/serializable/
DCompatibilityTest.java138 for (File dataDir : dataDirs) { in getFileList()
139 File files[] = dataDir.listFiles(new FileFilter() { in getFileList()
/external/icu/icu4c/source/tools/gensprep/
Dgensprep.h57 generateData(const char *dataDir, const char* bundleName);
Dstore.c550 generateData(const char *dataDir, const char* bundleName) { in generateData() argument
589 pData=udata_create(dataDir, DATA_TYPE, fileName, &dataInfo, in generateData()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DAnnotationIdTest.java350 String dataDir = InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir; in getDataDirectory() local
351 return new File(dataDir + "/cache" ); in getDataDirectory()
DDexMakerTest.java2211 String dataDir = InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir;
2212 return new File(dataDir);
/external/icu/icu4c/source/tools/pkgdata/
Dpkgtypes.h117 const char *dataDir; /* parent of dir for package (default: tmpdir) */ member
/external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQP.java17 … protected native void nInit(AssetManager assetManager, String dataDir, boolean experimentalMode); in nInit() argument
/external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQP.java17 … protected native void nInit(AssetManager assetManager, String dataDir, boolean experimentalMode); in nInit() argument
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowPackageManager.java179 if (applicationInfo.dataDir == null) { in setUpPackageStorage()
180 applicationInfo.dataDir = in setUpPackageStorage()
/external/libmojo/third_party/catapult/devil/devil/android/
Ddevice_utils.py523 _, _, dataDir = line.partition('dataDir=')
524 if dataDir:
525 return dataDir
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DParallelUniverse.java360 applicationInfo.dataDir = in setUpPackageStorage()
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils.py667 _, _, dataDir = line.partition('dataDir=')
668 if dataDir:
669 return dataDir