Searched refs:exists (Results 1 - 25 of 263) sorted by relevance

1234567891011

/frameworks/base/core/java/com/android/internal/util/
H A DJournaledFile.java49 if (mReal.exists()) {
51 if (mTemp.exists()) {
54 } else if (mTemp.exists()) {
75 if (!mReal.exists()) {
88 if (mTemp.exists()) {
/frameworks/base/core/java/android/view/
H A DIDockedStackListener.aidl35 void onDockedStackExistsChanged(boolean exists);
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DOwnersTest.java49 assertFalse(owners.getLegacyConfigFileWithTestOverride().exists());
52 assertFalse(owners.getDeviceOwnerFileWithTestOverride().exists());
54 assertFalse(owners.getProfileOwnerFileWithTestOverride(10).exists());
55 assertFalse(owners.getProfileOwnerFileWithTestOverride(11).exists());
56 assertFalse(owners.getProfileOwnerFileWithTestOverride(20).exists());
57 assertFalse(owners.getProfileOwnerFileWithTestOverride(21).exists());
102 assertFalse(owners.getLegacyConfigFileWithTestOverride().exists());
104 assertTrue(owners.getDeviceOwnerFileWithTestOverride().exists()); // TODO Check content
106 assertFalse(owners.getProfileOwnerFileWithTestOverride(10).exists());
107 assertFalse(owners.getProfileOwnerFileWithTestOverride(11).exists());
[all...]
/frameworks/native/opengl/libs/tools/
H A Dglenumsgen30 next if exists($enumHash { $enumValue });
/frameworks/native/cmds/installd/tests/
H A Dinstalld_cache_test.cpp84 static int exists(const char* path) { function in namespace:android::installd
145 EXPECT_EQ(0, exists("com.example/normal"));
146 EXPECT_EQ(0, exists("com.example/cache/foo/one"));
147 EXPECT_EQ(0, exists("com.example/cache/foo/two"));
152 EXPECT_EQ(0, exists("com.example/normal"));
153 EXPECT_EQ(-1, exists("com.example/cache/foo/one"));
154 EXPECT_EQ(-1, exists("com.example/cache/foo/two"));
169 EXPECT_EQ(-1, exists("com.example/cache/foo/one"));
170 EXPECT_EQ(0, exists("com.example/cache/foo/two"));
175 EXPECT_EQ(-1, exists("co
[all...]
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseErrorHandlerTest.java43 if (mDatabaseFile.exists()) {
61 assertTrue(mDatabaseFile.exists());
71 assertTrue(mDatabaseFile.exists());
84 if (mDatabaseFile.exists()) {
91 assertFalse(mDatabaseFile.exists());
/frameworks/base/core/java/com/android/internal/os/
H A DAtomicFile.java34 * As long as the backup file exists, the original file is considered
58 if (mBaseName.exists()) {
59 if (!mBackupName.exists()) {
133 public boolean exists() { method in class:AtomicFile
134 return mBaseName.exists() || mBackupName.exists();
143 if (mBackupName.exists()) {
/frameworks/base/packages/SystemUI/src/com/android/systemui/
H A DDockedStackExistsListener.java25 * Utility wrapper to listen for whether or not a docked stack exists, to be
43 public void onDockedStackExistsChanged(final boolean exists) throws RemoteException { argument
44 mCallback.accept(exists);
66 Log.e(TAG, "Failed registering docked stack exists listener", e);
/frameworks/compile/mclinker/unittests/
H A DPathTest.cpp44 EXPECT_TRUE(exists(*m_pTestee));
48 EXPECT_TRUE(exists(*m_pTestee));
54 EXPECT_FALSE(exists(*m_pTestee));
58 EXPECT_FALSE(exists(*m_pTestee));
64 EXPECT_TRUE(exists(*m_pTestee));
68 EXPECT_TRUE(exists(*m_pTestee));
75 EXPECT_FALSE(exists(*m_pTestee));
79 EXPECT_FALSE(exists(*m_pTestee));
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
H A DServicesTests.java43 resultFile.exists());
47 "'.", completeFile.exists());
82 if (!completeFile.exists()) {
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
H A DPatchedGradleManifestFactory.java33 * The change is that in the .exists() checks below we check for specific folders for the build
58 if (FileFsFile.from(buildOutputDir, "data-binding-layout-out", flavor, type).exists()) {
62 } else if (FileFsFile.from(buildOutputDir, "res", "merged", flavor, type).exists()) {
65 } else if (FileFsFile.from(buildOutputDir, "res", flavor, type).exists()) {
71 if (FileFsFile.from(buildOutputDir, "assets", flavor, type).exists()) {
82 manifestName).exists()) {
86 manifestName).exists()) {
/frameworks/base/core/java/android/content/res/
H A DObbScanner.java44 if (!obbFile.exists()) {
/frameworks/base/core/java/android/security/net/config/
H A DSystemCertificateSource.java46 return new File(mUserRemovedCaDir, caFile).exists();
/frameworks/compile/mclinker/lib/Support/
H A DFileSystem.cpp16 bool mcld::sys::fs::exists(const Path& pPath) { function in class:mcld::sys::fs
/frameworks/rs/tests/lldb/tests/harness/
H A Dutil_functions.py36 if not os.path.exists(path):
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
H A DTaskSnapshotPersisterLoaderTest.java61 assertTrueForFiles(files, File::exists, " must exist");
80 assertFalse(new File(sFilesDir.getPath() + "/snapshots/1.proto").exists());
81 assertFalse(new File(sFilesDir.getPath() + "/snapshots/1.jpg").exists());
82 assertFalse(new File(sFilesDir.getPath() + "/snapshots/1_reduced.jpg").exists());
125 assertTrueForFiles(existsFiles, File::exists, " must exist");
126 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist");
158 assertTrueForFiles(existsFiles, File::exists, " must exist");
159 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist");
177 assertTrueForFiles(existsFiles, File::exists, " must exist");
/frameworks/support/core-utils/java/android/support/v4/provider/
H A DSingleDocumentFile.java100 public boolean exists() { method in class:SingleDocumentFile
101 return DocumentsContractApi19.exists(mContext, mUri);
/frameworks/support/frameworks/support/samples/SupportLeanbackShowcase/
H A Dbuild-local.py12 if os.path.exists(inputFile):
26 if not os.path.exists(leanback_maven_metadata_path):
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
H A DDrawableUtils.java40 if (!folder.exists()) {
57 if (!outputFile.exists()) {
/frameworks/support/samples/SupportLeanbackShowcase/
H A Dbuild-local.py12 if os.path.exists(inputFile):
26 if not os.path.exists(leanback_maven_metadata_path):
/frameworks/base/keystore/java/android/security/
H A DSystemKeyStore.java73 // Check if key with similar name exists. If so, return null.
75 if (keyFile.exists()) {
118 if (!keyFile.exists()) {
128 if (!keyFile.exists()) {
/frameworks/support/compat/java/android/support/v4/util/
H A DAtomicFile.java34 * As long as the backup file exists, the original file is considered
88 if (mBaseName.exists()) {
89 if (!mBackupName.exists()) {
164 if (mBackupName.exists()) {
/frameworks/base/core/java/android/util/
H A DAtomicFile.java38 * As long as the backup file exists, the original file is considered
92 if (mBaseName.exists()) {
93 if (!mBackupName.exists()) {
197 if (mBackupName.exists()) {
212 if (mBackupName.exists()) {
/frameworks/compile/mclinker/include/mcld/MC/
H A DAttributeSet.h44 // exists- return the recorded attribute whose content is identical to the
46 Attribute* exists(const Attribute& pAttr) const;
/frameworks/compile/mclinker/lib/MC/
H A DAttributeSet.cpp35 Attribute* AttributeSet::exists(const Attribute& pAttr) const { function in class:mcld::AttributeSet

Completed in 962 milliseconds

1234567891011