Home
last modified time | relevance | path

Searched refs:deleteAdServicesFiles (Results 1 – 2 of 2) sorted by relevance

/packages/modules/ExtServices/java/tests/src/android/ext/services/common/
DAdServicesFilesCleanupBootCompleteReceiverTest.java127 doReturn(true).when(mReceiver).deleteAdServicesFiles(any()); in testReceiverDisablesItselfIfDeleteSuccessful()
137 doReturn(false).when(mReceiver).deleteAdServicesFiles(any()); in testReceiverDisablesItselfIfDeleteUnsuccessful()
157 mReceiver.deleteAdServicesFiles(mContext.getDataDir()); in testReceiverDeletesAdServicesFiles()
199 mReceiver.deleteAdServicesFiles(mContext.getDataDir()); in testReceiverDeletesAdServicesDirectories()
226 mReceiver.deleteAdServicesFiles(dir); in testReceiverHandlesSecurityException()
237 assertThat(mReceiver.deleteAdServicesFiles(null)).isTrue(); in testDeleteAdServicesFiles_invalidInput()
241 assertThat(mReceiver.deleteAdServicesFiles(file)).isTrue(); in testDeleteAdServicesFiles_invalidInput()
247 assertThat(mReceiver.deleteAdServicesFiles(file2)).isFalse(); in testDeleteAdServicesFiles_invalidInput()
/packages/modules/ExtServices/java/src/android/ext/services/common/
DAdServicesFilesCleanupBootCompleteReceiver.java69 boolean success = deleteAdServicesFiles(context.getDataDir()); in onReceive()
109 public boolean deleteAdServicesFiles(File currentDirectory) { in deleteAdServicesFiles() method in AdServicesFilesCleanupBootCompleteReceiver
134 allSuccess = deleteAdServicesFiles(file) && allSuccess; in deleteAdServicesFiles()