Home
last modified time | relevance | path

Searched refs:R_OK (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/native/libs/input/
DInputDevice.cpp121 if (!access(path.c_str(), R_OK)) { in getInputDeviceConfigurationFilePathByName()
141 if (!access(path.c_str(), R_OK)) { in getInputDeviceConfigurationFilePathByName()
/frameworks/av/media/libeffects/factory/
DEffectsConfigLoader.c50 if (access(AUDIO_EFFECT_VENDOR_CONFIG_FILE, R_OK) == 0) { in EffectLoadEffectConfig()
52 } else if (access(AUDIO_EFFECT_DEFAULT_CONFIG_FILE, R_OK) == 0) { in EffectLoadEffectConfig()
DEffectsXmlConfigLoader.cpp50 if (access(candidatePath.c_str(), R_OK) == 0) { in resolveLibrary()
/frameworks/native/libs/binder/
DProcessState.cpp107 return access("/vendor/bin/vndservicemanager", R_OK) == 0; in isVndservicemanagerEnabled()
121 if (access(driver, R_OK) == -1) { in init()
/frameworks/native/cmds/installd/tests/
Dinstalld_dexopt_test.cpp408 ASSERT_EQ(expected_access, access(odex.c_str(), R_OK)); in CompileSecondaryDex()
409 ASSERT_EQ(expected_access, access(vdex.c_str(), R_OK)); in CompileSecondaryDex()
410 ASSERT_EQ(-1, access(art.c_str(), R_OK)); // empty profiles do not generate an image. in CompileSecondaryDex()
443 ASSERT_EQ(-1, access(art.c_str(), R_OK)); // empty profiles do not generate an image. in reconcile_secondary_dex()
1211 ASSERT_EQ(-1, access(code_path_cur_prof.c_str(), R_OK)); in preparePackageProfile()
1220 ASSERT_EQ(-1, access(code_path_ref_profile.c_str(), R_OK)); in preparePackageProfile()
/frameworks/minikin/tests/util/
DFontTestUtils.cpp88 if (access(fontPath.c_str(), R_OK) != 0) { in getFontFamilies()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java40 import static android.system.OsConstants.R_OK;
742 assertEquals(O_RDONLY, translateModeAccessToPosix(R_OK)); in testTranslateMode_Access()
744 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK)); in testTranslateMode_Access()
745 assertEquals(O_RDWR, translateModeAccessToPosix(R_OK | W_OK | X_OK)); in testTranslateMode_Access()
/frameworks/base/core/java/android/os/
DFileUtils.java36 import static android.system.OsConstants.R_OK;
1651 } else if ((mode & (R_OK | W_OK)) == (R_OK | W_OK)) { in translateModeAccessToPosix()
1653 } else if ((mode & R_OK) == R_OK) { in translateModeAccessToPosix()
/frameworks/av/media/libeffects/config/src/
DEffectsConfig.cpp353 if (access(defaultPath.c_str(), R_OK) != 0) { in parse()
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/
DParameterManagerWrapper.cpp102 if (access(mPolicyPfwVendorConfFileName, R_OK) == 0) { in ParameterManagerWrapper()
/frameworks/av/services/audiopolicy/service/
DAudioPolicyEffects.cpp54 if (access(AUDIO_EFFECT_VENDOR_CONFIG_FILE, R_OK) == 0) { in AudioPolicyEffects()
56 } else if (access(AUDIO_EFFECT_DEFAULT_CONFIG_FILE, R_OK) == 0) { in AudioPolicyEffects()
/frameworks/base/libs/androidfw/
DAssetManager.cpp271 if (access(targetPath.c_str(), R_OK) != 0) { in addOverlayPath()
275 if (access(idmapPath.c_str(), R_OK) != 0) { in addOverlayPath()
279 if (access(overlayPath.c_str(), R_OK) != 0) { in addOverlayPath()
/frameworks/native/cmds/installd/
Dotapreopt.cpp315 if (access(GetOtaDirectoryPrefix().c_str(), R_OK) < 0) { in CheckAndInitializeInstalldGlobals()
Ddexopt.cpp1451 if (access(dex_path.c_str(), R_OK) == 0) { in check_secondary_dex_access()
/frameworks/native/opengl/libs/EGL/
DLoader.cpp457 if (!access(absolutePath.c_str(), R_OK)) { in findLibrary()
/frameworks/native/libs/adbd_auth/
Dadbd_auth.cpp396 if (access(path, R_OK) == 0) { in IteratePublicKeys()
/frameworks/rs/cpu_ref/
DrsCpuExecutable.cpp30 if (access(path, R_OK | W_OK | X_OK) == 0) { in ensureCacheDirExists()
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/android/system/
DOsConstants.java568 public static final int R_OK = placeholder(); field in OsConstants
/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dfile_test.cc53 ASSERT_EQ(access(temp, R_OK | W_OK), 0); in TEST()
/frameworks/minikin/tests/unittest/
DFontFamilyTest.cpp554 if (access(getTestFontPath(kVsTestFont).c_str(), R_OK) != 0) { in SetUp()
/frameworks/base/ravenwood/runtime-jni/
Dravenwood_os_constants.cpp478 initConstant(env, c, "R_OK", R_OK); in OsConstants_initConstants()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp741 if (access(f.c_str(), R_OK) == 0) { in findBootAnimationFileInternal()
/frameworks/native/services/inputflinger/reader/
DEventHub.cpp704 if (access(propPath.c_str(), R_OK)) { in loadVirtualKeyMapLocked()
/frameworks/native/cmds/dumpstate/
Ddumpstate.cpp1794 std::string binder_logs_dir = access("/dev/binderfs/binder_logs", R_OK) ? in dumpstate()
/frameworks/base/tools/aapt2/integration-tests/CommandTests/
Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...

12