Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DOwnersTest.java51 assertFalse(owners.getLegacyConfigFileWithTestOverride().exists()); in testUpgrade01()
54 assertFalse(owners.getDeviceOwnerFileWithTestOverride().exists()); in testUpgrade01()
56 assertFalse(owners.getProfileOwnerFileWithTestOverride(10).exists()); in testUpgrade01()
57 assertFalse(owners.getProfileOwnerFileWithTestOverride(11).exists()); in testUpgrade01()
58 assertFalse(owners.getProfileOwnerFileWithTestOverride(20).exists()); in testUpgrade01()
59 assertFalse(owners.getProfileOwnerFileWithTestOverride(21).exists()); in testUpgrade01()
104 assertFalse(owners.getLegacyConfigFileWithTestOverride().exists()); in testUpgrade02()
106 assertTrue(owners.getDeviceOwnerFileWithTestOverride().exists()); // TODO Check content in testUpgrade02()
108 assertFalse(owners.getProfileOwnerFileWithTestOverride(10).exists()); in testUpgrade02()
109 assertFalse(owners.getProfileOwnerFileWithTestOverride(11).exists()); in testUpgrade02()
[all …]
/frameworks/native/cmds/installd/tests/
Dinstalld_cache_test.cpp84 static int exists(const char* path) { in exists() function
145 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F()
146 EXPECT_EQ(0, exists("com.example/cache/foo/one")); in TEST_F()
147 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F()
152 EXPECT_EQ(0, exists("com.example/normal")); in TEST_F()
153 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F()
154 EXPECT_EQ(-1, exists("com.example/cache/foo/two")); in TEST_F()
169 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F()
170 EXPECT_EQ(0, exists("com.example/cache/foo/two")); in TEST_F()
175 EXPECT_EQ(-1, exists("com.example/cache/foo/one")); in TEST_F()
[all …]
/frameworks/base/core/java/com/android/internal/util/
DJournaledFile.java49 if (mReal.exists()) { in chooseForRead()
51 if (mTemp.exists()) { in chooseForRead()
54 } else if (mTemp.exists()) { in chooseForRead()
75 if (!mReal.exists()) { in chooseForWrite()
88 if (mTemp.exists()) { in chooseForWrite()
/frameworks/compile/mclinker/unittests/
DPathTest.cpp44 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
48 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
54 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
58 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
64 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
68 EXPECT_TRUE(exists(*m_pTestee)); in TEST_F()
75 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
79 EXPECT_FALSE(exists(*m_pTestee)); in TEST_F()
/frameworks/base/services/tests/servicestests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java62 assertTrueForFiles(files, File::exists, " must exist"); in testPersistAndLoadSnapshot()
81 assertFalse(new File(sFilesDir.getPath() + "/snapshots/1.proto").exists()); in testTaskRemovedFromRecents()
82 assertFalse(new File(sFilesDir.getPath() + "/snapshots/1.jpg").exists()); in testTaskRemovedFromRecents()
83 assertFalse(new File(sFilesDir.getPath() + "/snapshots/1_reduced.jpg").exists()); in testTaskRemovedFromRecents()
126 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testPurging()
127 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testPurging()
154 assertTrueForFiles(files, File::exists, " must exist"); in testLowResolutionPersistAndLoadSnapshot()
155 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testLowResolutionPersistAndLoadSnapshot()
182 assertTrueForFiles(existsFiles, File::exists, " must exist"); in testRemoveObsoleteFiles()
183 assertTrueForFiles(nonExistsFiles, file -> !file.exists(), " must not exist"); in testRemoveObsoleteFiles()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DDockedStackExistsListener.java48 public void onDockedStackExistsChanged(boolean exists)
50 DockedStackExistsListener.onDockedStackExistsChanged(exists);
76 private static void onDockedStackExistsChanged(boolean exists) { in onDockedStackExistsChanged() argument
77 mLastExists = exists; in onDockedStackExistsChanged()
81 if (l != null) l.accept(exists); in onDockedStackExistsChanged()
/frameworks/base/core/java/android/util/
DAtomicFile.java92 if (mBaseName.exists()) { in startWrite()
93 if (!mBackupName.exists()) { in startWrite()
197 if (mBackupName.exists()) { in openRead()
209 public boolean exists() { in exists() method in AtomicFile
210 return mBaseName.exists() || mBackupName.exists(); in exists()
221 if (mBackupName.exists()) { in getLastModifiedTime()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java58 if (mBaseName.exists()) { in startWrite()
59 if (!mBackupName.exists()) { in startWrite()
133 public boolean exists() { in exists() method in AtomicFile
134 return mBaseName.exists() || mBackupName.exists(); in exists()
143 if (mBackupName.exists()) { in openRead()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java43 if (mDatabaseFile.exists()) { in setUp()
61 assertTrue(mDatabaseFile.exists()); in testNoCorruptionCase()
71 assertTrue(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
84 if (mDatabaseFile.exists()) { in testDatabaseIsCorrupt()
91 assertFalse(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
/frameworks/opt/setupwizard/library/test/robotest/src/com/android/setupwizardlib/robolectric/
DPatchedGradleManifestFactory.java58 if (FileFsFile.from(buildOutputDir, "data-binding-layout-out", flavor, type).exists()) { in identify()
62 } else if (FileFsFile.from(buildOutputDir, "res", "merged", flavor, type).exists()) { in identify()
65 } else if (FileFsFile.from(buildOutputDir, "res", flavor, type).exists()) { in identify()
71 if (FileFsFile.from(buildOutputDir, "assets", flavor, type).exists()) { in identify()
82 manifestName).exists()) { in identify()
86 manifestName).exists()) { in identify()
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
DWallpaperBackupAgent.java99 mQuotaExceeded = mQuotaFile.exists(); in onCreate()
150 if (mWallpaperInfo.exists()) { in onFullBackup()
151 if (sysChanged || lockChanged || !infoStage.exists()) { in onFullBackup()
158 if (sysEligible && mWallpaperFile.exists()) { in onFullBackup()
159 if (sysChanged || !imageStage.exists()) { in onFullBackup()
169 … if (lockEligible && hasLockWallpaper && mLockWallpaperFile.exists() && !mQuotaExceeded) { in onFullBackup()
170 if (lockChanged || !lockImageStage.exists()) { in onFullBackup()
217 final int sysWhich = FLAG_SYSTEM | (lockImageStage.exists() ? 0 : FLAG_LOCK); in onRestoreFinished()
233 if (!lockImageStage.exists()) { in onRestoreFinished()
263 if (stage.exists()) { in restoreFromStage()
/frameworks/base/tools/bit/
Dutil.cpp43 exists = true; in FileInfo()
53 return exists == that.exists in operator ==()
62 return exists != that.exists in operator !=()
98 return !updated.exists || fileInfo != updated; in HasChanged()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/
DServicesTests.java43 resultFile.exists()); in testStressConcurentFirstLaunch()
47 "'.", completeFile.exists()); in testStressConcurentFirstLaunch()
82 if (!completeFile.exists()) { in areAllServicesRunning()
/frameworks/support/compat/java/android/support/v4/util/
DAtomicFile.java88 if (mBaseName.exists()) { in startWrite()
89 if (!mBackupName.exists()) { in startWrite()
164 if (mBackupName.exists()) { in openRead()
/frameworks/base/keystore/java/android/security/
DSystemKeyStore.java75 if (keyFile.exists()) { in generateNewKey()
118 if (!keyFile.exists()) { in retrieveKey()
128 if (!keyFile.exists()) { in deleteKey()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/
DDivider.java146 private void notifyDockedStackExistsChanged(final boolean exists) { in notifyDockedStackExistsChanged() argument
150 mForcedResizableController.notifyDockedStackExistsChanged(exists); in notifyDockedStackExistsChanged()
186 public void onDockedStackExistsChanged(boolean exists) throws RemoteException { in onDockedStackExistsChanged() argument
187 notifyDockedStackExistsChanged(exists); in onDockedStackExistsChanged()
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/
DJavaAnalyzer.java148 while (folder != null && folder.exists()) { in loadAndroidHome()
150 if (f.exists() && f.canRead()) { in loadAndroidHome()
171 if (Strings.isNullOrEmpty(androidHome) || !new File(androidHome).exists()) { in initForTests()
177 if (!androidJar.exists() || !androidJar.canRead()) { in initForTests()
/frameworks/support/core-utils/tests/java/android/support/v4/provider/
DDocumentFileTest.java128 assertTrue("exists", doc.exists()); in testSimple()
283 assertTrue("exists", dog.exists()); in testDelete()
290 assertFalse("exists", dog.exists()); in testDelete()
307 assertTrue(dog.exists()); in testRename()
331 assertFalse(dog.exists()); in testRename()
335 assertTrue(dog.exists()); in testRename()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiConfigStore.java191 if (!storeDir.exists()) { in createFile()
233 return (mSharedStore.exists() || (mUserStore != null && mUserStore.exists())); in areStoresPresent()
476 public boolean exists() { in exists() method in WifiConfigStore.StoreFile
477 return mAtomicFile.exists(); in exists()
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/
DHugeBackupActivity.java104 boolean exists = mDataFile.exists(); in populateUI()
107 if (exists) { in populateUI()
/frameworks/support/graphics/drawable/animated/tests/src/android/support/graphics/drawable/tests/
DDrawableUtils.java40 if (!folder.exists()) { in saveVectorDrawableIntoPNG()
57 if (!outputFile.exists()) { in saveVectorDrawableIntoPNG()
/frameworks/support/samples/SupportLeanbackShowcase/
Dbuild-local.py12 if os.path.exists(inputFile):
26 if not os.path.exists(leanback_maven_metadata_path):
/frameworks/base/packages/SystemUI/scripts/
Dnew_merge.py113 if (os.path.exists(TEMP_FILE1)):
116 if (os.path.exists(TEMP_FILE2)):
132 if (os.path.exists(outFile)):
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppRegistry.java147 if (cookieFile != null && cookieFile.exists()) { in getInstantAppCookieLPw()
183 if (!appDir.exists() && !appDir.mkdirs()) { in persistInstantApplicationCookie()
188 if (cookieFile.exists() && !cookieFile.delete()) { in persistInstantApplicationCookie()
208 if (iconFile.exists()) { in getInstantAppIconLPw()
218 if (idFile.exists()) { in getInstantAppAndroidIdLPw()
234 if (!appDir.exists() && !appDir.mkdirs()) { in generateInstantAppAndroidIdLPw()
501 if (!appDir.exists()) { in writeInstantApplicationIconLPw()
597 return new File(instantAppDir, INSTANT_APP_METADATA_FILE).exists() in hasInstantAppMetadataLPr()
598 || new File(instantAppDir, INSTANT_APP_ICON_FILE).exists() in hasInstantAppMetadataLPr()
599 || new File(instantAppDir, INSTANT_APP_ANDROID_ID_FILE).exists() in hasInstantAppMetadataLPr()
[all …]
/frameworks/support/core-utils/java/android/support/v4/provider/
DSingleDocumentFile.java105 public boolean exists() { in exists() method in SingleDocumentFile
106 return DocumentsContractApi19.exists(mContext, mUri); in exists()

12345678910>>...13