Home
last modified time | relevance | path

Searched refs:F_OK (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DTransactionTraceWriterTest.cpp51 EXPECT_EQ(access(mFilename.c_str(), F_OK), 0); in TEST_F()
58 EXPECT_EQ(access(mFilename.c_str(), F_OK), 0); in TEST_F()
112 EXPECT_NE(access(mFilename.c_str(), F_OK), 0); in TEST_F()
116 EXPECT_EQ(access(mFilename.c_str(), F_OK), 0); in TEST_F()
/frameworks/native/cmds/installd/
Dinstalld.cpp139 if (access(keychain_added_dir, F_OK) == 0) { in initialize_directories()
144 if (access(keychain_removed_dir, F_OK) == 0) { in initialize_directories()
152 if (access(keychain_added_dir, F_OK) == 0) { in initialize_directories()
155 if (access(keychain_removed_dir, F_OK) == 0) { in initialize_directories()
Dotapreopt.cpp372 if (access(dalvik_cache.c_str(), F_OK) != 0) { in EnsureDalvikCache()
378 if (access(isa_path.c_str(), F_OK) != 0) { in EnsureDalvikCache()
488 if (access(path.c_str(), F_OK) == 0) { in ShouldSkipPreopt()
500 if (access(apk_path, F_OK) != 0) { in ShouldSkipPreopt()
DInstalldNativeService.cpp597 sUsingProjectIdsFlag = access(using_project_ids.c_str(), F_OK) == 0; in internal_storage_has_project_id()
774 bool cache_exists = (access(cache_path.c_str(), F_OK) == 0); in createAppDataDirs()
775 bool code_cache_exists = (access(code_cache_path.c_str(), F_OK) == 0); in createAppDataDirs()
1203 if (access(path.c_str(), F_OK) == 0) { in clearAppData()
1221 if (access(path.c_str(), F_OK) == 0) { in clearAppData()
1299 if (access(appPath.c_str(), F_OK) != 0) continue; in clearSdkSandboxDataPackageDirectory()
1641 if (access(from.c_str(), F_OK) == 0) { in snapshotAppData()
1653 if (access(from_ce.c_str(), F_OK) != 0) { in snapshotAppData()
1735 (access(from_ce.c_str(), F_OK) == 0); in restoreAppDataSnapshot()
1737 (access(from_de.c_str(), F_OK) == 0); in restoreAppDataSnapshot()
[all …]
/frameworks/native/cmds/atrace/
Datrace.cpp354 return access((g_traceFolder + filename).c_str(), F_OK) != -1; in fileExists()
1122 bool tracefs = access((tracefs_path + trace_file).c_str(), F_OK) != -1; in findTraceFiles()
1123 bool debugfs = access((debugfs_path + trace_file).c_str(), F_OK) != -1; in findTraceFiles()
1191 if (access(kVendorCategoriesPath, F_OK) != -1) { in initVendorCategories()
/frameworks/base/core/jni/
Dcom_android_internal_os_Zygote.cpp1486 if (access(ceSandboxPath, F_OK) != 0) { in isolateSdkSandboxData()
1489 if (access(deSandboxPath, F_OK) != 0) { in isolateSdkSandboxData()
1677 if (access(mirrorCurPackageProfile.c_str(), F_OK) != 0) { in isolateJitProfile()
1681 if (access(mirrorRefPackageProfile.c_str(), F_OK) != 0) { in isolateJitProfile()
1701 if (access(dir_path, F_OK) == 0) { in WaitUntilDirReady()
1712 if (access(dir_path, F_OK) == 0) { in WaitUntilDirReady()
1830 if (access(source.c_str(), F_OK) != 0) { in BindMountSyspropOverride()
1833 if (access(target.c_str(), F_OK) != 0) { in BindMountSyspropOverride()
1862 if (access(source.c_str(), F_OK) != 0) { in BindMountStorageToLowerFs()
1865 if (access(target.c_str(), F_OK) != 0) { in BindMountStorageToLowerFs()
/frameworks/av/media/libmedia/
DMediaScanner.cpp145 if (access(path, F_OK) == 0) { in doProcessDirectory()
/frameworks/av/media/mtp/
DMtpUtils.cpp40 if (access(path, F_OK) == -1) { in access_ok()
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper.cpp448 if (access(current.c_str(), F_OK) < 0) { in WaitForEndpoint()
471 ret = access(current.c_str(), F_OK); in WaitForEndpoint()
/frameworks/native/cmds/installd/tests/
Dinstalld_utils_test.cpp747 ASSERT_EQ(access(filename.c_str(), F_OK), 0); in TEST_F()
751 EXPECT_NE(access(filename.c_str(), F_OK), 0); in TEST_F()
Dinstalld_cache_test.cpp91 return ::access(fullPath.c_str(), F_OK); in exists()
Dinstalld_dexopt_test.cpp441 ASSERT_EQ(expected_access, access(odex.c_str(), F_OK)); in reconcile_secondary_dex()
442 ASSERT_EQ(expected_access, access(vdex.c_str(), F_OK)); in reconcile_secondary_dex()
Dinstalld_service_test.cpp169 return ::access(get_full_path(path).c_str(), F_OK) == 0; in exists()
1112 bool exists(const char* path) { return ::access(path, F_OK) == 0; } in exists()
/frameworks/base/libs/hwui/tests/macrobench/
Dmain.cpp115 if (access("/dev/cpuset/tasks", F_OK)) { in moveToCpuSet()
/frameworks/av/media/libeffects/factory/
DEffectsConfigLoader.c139 if (F_OK == access(path, 0)) { in checkLibraryPath()
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/
DAudioPolicyConfig.cpp232 if (access(path.c_str(), F_OK) == 0) { in loadFromCustomXmlConfigForVtsTests()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java578 Os.access(oldPath.toString(), OsConstants.F_OK); in renameFile()
579 Os.access(newPath.toString(), OsConstants.F_OK); in renameFile()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java33 import static android.system.OsConstants.F_OK;
741 assertEquals(O_RDONLY, translateModeAccessToPosix(F_OK)); in testTranslateMode_Access()
/frameworks/base/libs/hwui/pipeline/skia/
DSkiaPipeline.cpp127 if (0 == access(filename.c_str(), F_OK)) { in savePictureAsync()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_smoke_test.cpp234 EXPECT_EQ(access(getZipFilePath().c_str(), F_OK), 0); in TEST_F()
/frameworks/base/core/java/android/os/
DProcess.java1720 if (Os.access("/proc/" + tid + "/task/" + pid, OsConstants.F_OK)) { in isThreadInProcess()
DFileUtils.java27 import static android.system.OsConstants.F_OK;
1647 if (mode == F_OK) { in translateModeAccessToPosix()
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp313 if (access(origName, F_OK) != 0) { in loadSOHelper()
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/android/system/
DOsConstants.java348 public static final int F_OK = placeholder(); field in OsConstants
/frameworks/base/tools/aapt/
DZipFile.cpp78 newArchive = (access(zipFileName, F_OK) != 0); in open()

12