/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | OwnersTest.java | 49 assertFalse(owners.getLegacyConfigFileWithTestOverride().exists()); in testUpgrade01() 52 assertFalse(owners.getDeviceOwnerFileWithTestOverride().exists()); in testUpgrade01() 54 assertFalse(owners.getProfileOwnerFileWithTestOverride(10).exists()); in testUpgrade01() 55 assertFalse(owners.getProfileOwnerFileWithTestOverride(11).exists()); in testUpgrade01() 56 assertFalse(owners.getProfileOwnerFileWithTestOverride(20).exists()); in testUpgrade01() 57 assertFalse(owners.getProfileOwnerFileWithTestOverride(21).exists()); in testUpgrade01() 102 assertFalse(owners.getLegacyConfigFileWithTestOverride().exists()); in testUpgrade02() 104 assertTrue(owners.getDeviceOwnerFileWithTestOverride().exists()); // TODO Check content in testUpgrade02() 106 assertFalse(owners.getProfileOwnerFileWithTestOverride(10).exists()); in testUpgrade02() 107 assertFalse(owners.getProfileOwnerFileWithTestOverride(11).exists()); in testUpgrade02() [all …]
|
/frameworks/base/core/java/com/android/internal/util/ |
D | JournaledFile.java | 49 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/ |
D | PathTest.cpp | 44 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/packages/DocumentsUI/tests/src/com/android/documentsui/bots/ |
D | DirectoryListBot.java | 64 if (!findDocument(label).exists()) { in assertDocumentsPresent() 77 if (findDocument(label).exists()) { in assertDocumentsAbsent() 87 …public void assertDocumentsCountOnList(boolean exists, int count) throws UiObjectNotFoundException… in assertDocumentsCountOnList() argument 89 assertEquals(exists, docsList.exists()); in assertDocumentsCountOnList() 90 if(docsList.exists()) { in assertDocumentsCountOnList() 97 assertTrue(messageTextView.exists()); in assertMessageTextView() 163 if (!findDocument(label).exists()) { in hasDocuments()
|
D | UiBot.java | 78 assertFalse(searchIcon.exists()); in assertSearchTextField() 79 assertTrue(textField.exists()); in assertSearchTextField() 87 assertEquals(searchTextFieldExists, findSearchViewTextField().exists()); in assertSearchTextFiledAndIcon() 88 assertEquals(searchIconExists, findSearchViewIcon().exists()); in assertSearchTextFiledAndIcon() 93 assertEquals(inActionMode, actionModeBar.exists()); in assertInActionMode() 99 assertTrue(searchView.exists()); in openSearchView() 104 assertTrue(searchView.exists()); in setSearchQuery()
|
/frameworks/base/tools/aapt2/flatten/ |
D | TableFlattener_test.cpp | 68 ::testing::AssertionResult exists(ResTable* table, in exists() function in aapt::TableFlattenerTest 163 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/one", ResourceId(0x7f020000), {}, in TEST_F() 166 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/two", ResourceId(0x7f020001), {}, in TEST_F() 169 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/three", ResourceId(0x7f020002), {}, in TEST_F() 172 EXPECT_TRUE(exists(&resTable, u"@com.app.test:integer/one", ResourceId(0x7f030000), in TEST_F() 176 EXPECT_TRUE(exists(&resTable, u"@com.app.test:integer/one", ResourceId(0x7f030000), in TEST_F() 183 EXPECT_TRUE(exists(&resTable, u"@com.app.test:string/test", ResourceId(0x7f040000), in TEST_F() 189 EXPECT_TRUE(exists(&resTable, u"@com.app.test:layout/bar", ResourceId(0x7f050000), {}, in TEST_F() 203 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/one", ResourceId(0x7f020001), {}, in TEST_F() 205 EXPECT_TRUE(exists(&resTable, u"@com.app.test:id/three", ResourceId(0x7f020003), {}, in TEST_F()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | AtomicFile.java | 58 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/ |
D | DatabaseErrorHandlerTest.java | 43 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()
|
D | DatabaseGeneralTest.java | 60 if (mDatabaseFile.exists()) { in setUp() 1056 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler() 1059 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler() 1077 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler() 1082 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler() 1096 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler() 1097 assertTrue(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler() 1103 assertFalse(dbfile.exists()); in testDefaultDatabaseErrorHandler() 1104 assertFalse(new File(attachedDb1File).exists()); in testDefaultDatabaseErrorHandler() 1121 assertTrue(dbfile.exists()); in testDefaultDatabaseErrorHandler() [all …]
|
/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/ |
D | WallpaperBackupAgent.java | 99 mQuotaExceeded = mQuotaFile.exists(); in onCreate() 150 if ((sysEligible || lockEligible) && mWallpaperInfo.exists()) { in onFullBackup() 151 if (sysChanged || lockChanged || !infoStage.exists()) { in onFullBackup() 157 if (sysEligible && mWallpaperFile.exists()) { in onFullBackup() 158 if (sysChanged || !imageStage.exists()) { in onFullBackup() 167 … if (lockEligible && hasLockWallpaper && mLockWallpaperFile.exists() && !mQuotaExceeded) { in onFullBackup() 168 if (lockChanged || !lockImageStage.exists()) { in onFullBackup() 214 final int sysWhich = FLAG_SYSTEM | (lockImageStage.exists() ? 0 : FLAG_LOCK); in onRestoreFinished() 258 if (stage.exists()) { in restoreFromStage()
|
/frameworks/base/core/java/android/util/ |
D | AtomicFile.java | 90 if (mBaseName.exists()) { in startWrite() 91 if (!mBackupName.exists()) { in startWrite() 195 if (mBackupName.exists()) { in openRead() 210 if (mBackupName.exists()) { in getLastModifiedTime()
|
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests/src/com/android/framework/multidexlegacytestservices/test/ |
D | ServicesTests.java | 43 resultFile.exists()); in testStressConcurentFirstLaunch() 47 "'.", completeFile.exists()); in testStressConcurentFirstLaunch() 82 if (!completeFile.exists()) { in areAllServicesRunning()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | Divider.java | 128 private void notifyDockedStackExistsChanged(final boolean exists) { in notifyDockedStackExistsChanged() argument 132 mForcedResizableController.notifyDockedStackExistsChanged(exists); in notifyDockedStackExistsChanged() 156 public void onDockedStackExistsChanged(boolean exists) throws RemoteException { in onDockedStackExistsChanged() argument 157 notifyDockedStackExistsChanged(exists); in onDockedStackExistsChanged()
|
/frameworks/support/compat/java/android/support/v4/util/ |
D | AtomicFile.java | 88 if (mBaseName.exists()) { in startWrite() 89 if (!mBackupName.exists()) { in startWrite() 164 if (mBackupName.exists()) { in openRead()
|
/frameworks/base/keystore/java/android/security/ |
D | SystemKeyStore.java | 75 if (keyFile.exists()) { in generateNewKey() 118 if (!keyFile.exists()) { in retrieveKey() 128 if (!keyFile.exists()) { in deleteKey()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | EphemeralApplicationRegistry.java | 104 if (cookieFile != null && cookieFile.exists()) { in getEphemeralApplicationCookieLPw() 131 if (!appDir.exists() && !appDir.mkdirs()) { in setEphemeralApplicationCookieLPw() 136 if (cookieFile.exists() && !cookieFile.delete()) { in setEphemeralApplicationCookieLPw() 157 if (iconFile.exists()) { in getEphemeralApplicationIconLPw() 292 if (!appDir.exists()) { in writeEphemeralApplicationIconLPw() 346 if (!ephemeralAppsDir.exists()) { in pruneUninstalledEphemeralAppsLPw() 359 if (!metadataFile.exists()) { in pruneUninstalledEphemeralAppsLPw() 486 if (ephemeralAppsDir.exists()) { in getUninstalledEphemeralAppStatesLPr() 526 if (!metadataFile.exists()) { in parseMetadataFile() 563 if (!appDir.exists()) { in peekEphemeralCookieFile() [all …]
|
/frameworks/data-binding/compiler/src/test/java/android/databinding/tool/reflection/java/ |
D | JavaAnalyzer.java | 144 while (folder != null && folder.exists()) { in loadAndroidHome() 146 if (f.exists() && f.canRead()) { in loadAndroidHome() 167 if (Strings.isNullOrEmpty(androidHome) || !new File(androidHome).exists()) { in initForTests() 173 if (!androidJar.exists() || !androidJar.canRead()) { in initForTests()
|
/frameworks/support/core-utils/tests/java/android/support/v4/provider/ |
D | DocumentFileTest.java | 127 assertTrue("exists", doc.exists()); in testSimple() 282 assertTrue("exists", dog.exists()); in testDelete() 289 assertFalse("exists", dog.exists()); in testDelete() 306 assertTrue(dog.exists()); in testRename() 330 assertFalse(dog.exists()); in testRename() 334 assertTrue(dog.exists()); in testRename()
|
/frameworks/base/tests/HugeBackup/src/com/android/hugebackup/ |
D | HugeBackupActivity.java | 104 boolean exists = mDataFile.exists(); in populateUI() 107 if (exists) { in populateUI()
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | UiBot.java | 99 assertTrue("could not find object with text '" + text + "'", uiObject.exists()); in getVisibleObject() 110 assertTrue("could not find object with id '" + id+ "'", uiObject.exists()); in getVisibleObjectById() 180 assertTrue("'Just Once' button not found", justOnce.exists()); in clickJustOnce()
|
/frameworks/support/samples/SupportLeanbackShowcase/ |
D | build-local.py | 12 if os.path.exists(inputFile): 26 if not os.path.exists(leanback_maven_metadata_path):
|
/frameworks/base/packages/Keyguard/scripts/ |
D | new_merge.py | 113 if (os.path.exists(TEMP_FILE1)): 116 if (os.path.exists(TEMP_FILE2)): 132 if (os.path.exists(outFile)):
|
/frameworks/support/core-utils/java/android/support/v4/provider/ |
D | SingleDocumentFile.java | 94 public boolean exists() { in exists() method in SingleDocumentFile 95 return DocumentsContractApi19.exists(mContext, mUri); in exists()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | UiCollection.java | 65 if (item.exists()) { in getChildByDescription() 123 if (item.exists()) { in getChildByText()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/ |
D | AppIdleHistoryTests.java | 51 assertTrue(aih.getScreenOnTimeFile().exists()); in testFilesCreation() 56 AppIdleHistory.APP_IDLE_FILENAME).exists()); in testFilesCreation()
|