/frameworks/base/core/tests/coretests/src/android/util/apk/ |
D | SourceStampVerifierTest.java | 75 assertFalse(result.isPresent()); in testSourceStamp_noStamp() 88 assertTrue(result.isPresent()); in testSourceStamp_correctSignature() 103 assertTrue(result.isPresent()); in testSourceStamp_signatureMissing() 115 assertTrue(result.isPresent()); in testSourceStamp_certificateMismatch() 127 assertTrue(result.isPresent()); in testSourceStamp_apkHashMismatch_v1SignatureScheme() 139 assertTrue(result.isPresent()); in testSourceStamp_apkHashMismatch_v2SignatureScheme() 151 assertTrue(result.isPresent()); in testSourceStamp_apkHashMismatch_v3SignatureScheme() 163 assertTrue(result.isPresent()); in testSourceStamp_malformedSignature() 179 assertTrue(result.isPresent()); in testSourceStamp_multiApk_validStamps() 197 assertTrue(result.isPresent()); in testSourceStamp_multiApk_invalidStamps() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/ |
D | RemoteResultTest.java | 36 boolean isPresent = result.isPresent(); in testIsPresent_whenNonFailedResult_returnsTrue() 38 assertThat(isPresent).isTrue(); in testIsPresent_whenNonFailedResult_returnsTrue() 43 boolean timeOutIsPresent = RemoteResult.FAILED_TIMED_OUT.isPresent(); in testIsPresent_whenTimeOutResult_returnsFalse() 50 boolean cancelledIsPresent = RemoteResult.FAILED_CANCELLED.isPresent(); in testIsPresent_whenCancelledResult_returnsFalse() 57 boolean threadInterruptedIsPresent = RemoteResult.FAILED_THREAD_INTERRUPTED.isPresent(); in testIsPresent_whenThreadInterruptedResult_returnsFalse()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/ |
D | CryptoSettingsTest.java | 58 assertThat(mCryptoSettings.getActiveSecondaryKeyAlias().isPresent()).isFalse(); in getActiveSecondaryAlias_isInitiallyAbsent() 70 assertThat(mCryptoSettings.getNextSecondaryKeyAlias().isPresent()).isFalse(); in getNextSecondaryAlias_isInitiallyAbsent() 115 assertThat(mCryptoSettings.getNextSecondaryKeyAlias().isPresent()).isFalse(); in removeNextSecondaryAlias_removesIt() 165 assertThat(mCryptoSettings.getAncestralSecondaryKeyVersion().isPresent()).isFalse(); in getAncestralSecondaryKeyVersion_notSet_returnsOptionalAbsent() 202 assertThat(mCryptoSettings.getActiveSecondaryKeyAlias().isPresent()).isFalse(); in clearAllSettingsForBackup_clearsStateForBackup() 203 assertThat(mCryptoSettings.getNextSecondaryKeyAlias().isPresent()).isFalse(); in clearAllSettingsForBackup_clearsStateForBackup() 204 assertThat(mCryptoSettings.getSecondaryLastRotated().isPresent()).isFalse(); in clearAllSettingsForBackup_clearsStateForBackup()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/request/ |
D | CapabilityRequestResponse.java | 201 if (mReasonHeaderCause.isPresent()) { in getResponseSipCode() 209 if (mReasonPhrase.isPresent()) { in getResponseReason() 367 if (respSipCode.filter(c -> (c == sipCodeOk || c == sipCodeAccepted)).isPresent() in isNetworkResponseOK() 368 && (!getReasonHeaderCause().isPresent() in isNetworkResponseOK() 369 || getReasonHeaderCause().filter(c -> c == sipCodeOk).isPresent())) { in isNetworkResponseOK() 381 if (getReasonHeaderCause().isPresent()) { in isRequestForbidden() 382 return getReasonHeaderCause().filter(c -> c == sipCodeForbidden).isPresent(); in isRequestForbidden() 384 return getNetworkRespSipCode().filter(c -> c == sipCodeForbidden).isPresent(); in isRequestForbidden() 395 if (getReasonHeaderCause().isPresent()) { in isNotFound() 397 } else if (getNetworkRespSipCode().isPresent()) { in isNotFound() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/tasks/ |
D | StartSecondaryKeyRotationTaskTest.java | 64 assertThat(mCryptoSettings.getNextSecondaryKeyAlias().isPresent()).isFalse(); in run_doesNothingIfNoActiveSecondaryExists() 75 assertThat(mSecondaryKeyManager.get(activeAlias).isPresent()).isTrue(); in run_doesNotRemoveExistingNextSecondaryKeyIfItIsAlreadyActive() 87 assertThat(mSecondaryKeyManager.get(nextAlias).isPresent()).isFalse(); in run_doesRemoveExistingNextSecondaryKeyIfItIsNotYetActive() 96 assertThat(mCryptoSettings.getNextSecondaryKeyAlias().isPresent()).isTrue(); in run_generatesANewNextSecondaryKey() 106 assertThat(mSecondaryKeyManager.get(nextAlias).isPresent()).isTrue(); in run_generatesANewKeyThatExistsInKeyStore()
|
D | EncryptedKvBackupTaskTest.java | 153 assertFalse(mKeyValueListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_rotationRequired_deletesListings() 154 assertFalse(mChunkListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_rotationRequired_deletesListings() 205 assertFalse(mKeyValueListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_existingStateButNonIncremental_deletesListings() 206 assertFalse(mChunkListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_existingStateButNonIncremental_deletesListings() 223 assertFalse(mKeyValueListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_keyValueListingMissing_deletesChunkListingAndPerformsNonIncremental() 224 assertFalse(mChunkListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_keyValueListingMissing_deletesChunkListingAndPerformsNonIncremental() 241 assertFalse(mKeyValueListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_chunkListingMissing_deletesKeyValueListingAndPerformsNonIncremental() 242 assertFalse(mChunkListingStore.loadProto(TEST_PACKAGE_1).isPresent()); in testPerformBackup_chunkListingMissing_deletesKeyValueListingAndPerformsNonIncremental()
|
D | ClearCryptoStateTaskTest.java | 68 .isPresent()) in run_clearsChunkListingProtoState() 83 .isPresent()) in run_clearsKeyValueProtoState() 107 assertThat(mCryptoSettings.getSecondaryLastRotated().isPresent()).isFalse(); in run_clearsSettings()
|
/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/ |
D | EncryptedKvBackupTask.java | 158 if (oldListings.isPresent() && !incremental) { in performBackup() 166 if (!oldListings.isPresent() && incremental) { in performBackup() 172 if (oldListings.isPresent()) { in performBackup() 177 if (oldListings.isPresent()) { in performBackup() 209 boolean bothPresent = keyValueListing.isPresent() && chunkListing.isPresent(); in getListingsAndEnsureConsistency() 214 + keyValueListing.isPresent() in getListingsAndEnsureConsistency() 216 + chunkListing.isPresent()); in getListingsAndEnsureConsistency()
|
D | InitializeRecoverableSecondaryKeyTask.java | 100 if (maybeActiveKey.isPresent()) { in runInternal() 139 if (!maybeAlias.isPresent()) { in loadFromSetting() 150 if (!key.isPresent()) { in loadFromSetting()
|
D | RotateSecondaryKeyTask.java | 102 if (!maybeNextKey.isPresent()) { in runInternal() 130 if (!maybeNextAlias.isPresent()) { in getNextKey() 222 if (!activeSecondaryAlias.isPresent()) { in getActiveSecondaryKey() 234 if (!secondaryKey.isPresent()) { in getActiveSecondaryKey()
|
D | StartSecondaryKeyRotationTask.java | 54 if (!maybeCurrentAlias.isPresent()) { in run() 61 if (maybeNextAlias.isPresent()) { in run()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/presence/publish/ |
D | PublishRequestResponse.java | 134 return (mReasonHeaderCause.isPresent()) ? mReasonHeaderCause : mNetworkRespSipCode; in getResponseSipCode() 143 return (mReasonHeaderText.isPresent()) ? mReasonHeaderText : mReasonPhrase; in getResponseReason() 239 if (getNetworkRespSipCode().filter(c -> c == sipCodeOk).isPresent() && in isRequestSuccess() 240 (!getReasonHeaderCause().isPresent() in isRequestSuccess() 241 || getReasonHeaderCause().filter(c -> c == sipCodeOk).isPresent())) { in isRequestSuccess() 254 if (getCmdErrorCode().isPresent() && !isCommandCodeNoChange()) { in isCommandError() 263 code == RcsCapabilityExchangeImplBase.COMMAND_CODE_NO_CHANGE).isPresent()) { in isCommandCodeNoChange() 306 } else if (getReasonHeaderCause().isPresent()) { in getPublishStateByNetworkResponse()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/dagger/ |
D | ControlsComponentTest.kt | 80 assertTrue(component.getControlsController().isPresent) in testFeatureEnabled() 82 assertTrue(component.getControlsUiController().isPresent) in testFeatureEnabled() 84 assertTrue(component.getControlsListingController().isPresent) in testFeatureEnabled() 92 assertFalse(component.getControlsController().isPresent) in testFeatureDisabled() 93 assertFalse(component.getControlsUiController().isPresent) in testFeatureDisabled() 94 assertFalse(component.getControlsListingController().isPresent) in testFeatureDisabled()
|
/frameworks/opt/net/ims/src/java/com/android/ims/rcs/uce/ |
D | UceDeviceState.java | 128 if (!mRequestRetryTime.isPresent()) { in getRequestRetryAfterMillis() 181 if (deviceState.isPresent()) { in UceDeviceState() 203 if (!mExitStateTime.isPresent()) { in checkSendResetDeviceStateTimer() 336 if (mErrorCode.isPresent()) { in resetErrorCode() 346 if (!mRequestRetryTime.isPresent() || mRequestRetryTime.get().isAfter(Instant.now())) { in setupRequestRetryTime() 353 if (mRequestRetryTime.isPresent()) { in removeRequestRetryTime() 362 if (!mExitStateTime.isPresent()) { in setupExitStateTimer() 376 if (mExitStateTime.isPresent()) { in removeExitStateTimer()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
D | CdmaInformationRecords.java | 134 public boolean isPresent; /* non-zero if signal information record is present */ field in CdmaInformationRecords.CdmaSignalInfoRec 141 public CdmaSignalInfoRec(int isPresent, int signalType, int alertPitch, int signal) { in CdmaSignalInfoRec() argument 142 this.isPresent = isPresent != 0; in CdmaSignalInfoRec() 151 " isPresent: " + isPresent + in toString()
|
D | CdmaCallWaitingNotification.java | 38 public int isPresent = 0; field in CdmaCallWaitingNotification 53 + " isPresent: " + isPresent in toString()
|
/frameworks/base/services/core/java/com/android/server/devicestate/ |
D | DeviceStateManagerService.java | 232 if (!mBaseState.isPresent() || !mCommittedState.isPresent()) { in getDeviceStateInfoLocked() 275 hasBaseState = mBaseState.isPresent(); in updateSupportedStates() 317 if (!baseStateOptional.isPresent()) { in setBaseState() 322 if (mBaseState.isPresent() && mBaseState.get().equals(baseState)) { in setBaseState() 359 if (mPendingState.isPresent()) { in updatePendingStateLocked() 367 } else if (mBaseState.isPresent() in updatePendingStateLocked() 380 if (mCommittedState.isPresent() && stateToConfigure.equals(mCommittedState.get())) { in updatePendingStateLocked() 452 newState.getIdentifier(), !mCommittedState.isPresent()); in commitPendingState() 541 currentInfo = mCommittedState.isPresent() ? getDeviceStateInfoLocked() : null; in registerProcess() 586 if (!deviceState.isPresent()) { in requestStateInternal() [all …]
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/storage/ |
D | TertiaryKeysTableTest.java | 63 assertThat(maybeKeyInDb.isPresent()).isTrue(); in addKey_onEmptyDatabase_putsKeyInDb() 97 assertThat(mTertiaryKeysTable.getKey(SECONDARY_ALIAS, PACKAGE_NAME).isPresent()).isTrue(); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() 100 assertThat(mTertiaryKeysTable.getKey(alias2, PACKAGE_NAME).isPresent()).isTrue(); in addKey_havingSamePackageNameButDifferentAlias_doesNotReplaceOldKey() 112 assertThat(key.isPresent()).isFalse(); in getKey_forMissingKey_returnsEmptyOptional()
|
/frameworks/compile/libbcc/lib/ |
D | RSScreenFunctionsPass.cpp | 37 bool isPresent(const std::string &name) { in isPresent() function in __anonb11841a80111::RSScreenFunctionsPass 60 if (isPresent(FName.str())) in isLegal()
|
D | RSIsThreadablePass.cpp | 81 bool isPresent(std::vector<std::string> &list, const std::string &name) { in isPresent() function in __anona5cb26170111::RSIsThreadablePass 106 if (isPresent(nonThreadableFns, F.getName().str())) { in runOnModule()
|
/frameworks/base/packages/BackupEncryption/test/robolectric/src/com/android/server/backup/encryption/keys/ |
D | TertiaryKeyStoreTest.java | 75 assertTrue(maybeLoadedKey.isPresent()); in load_loadsAKeyThatWasSaved() 91 assertFalse(managerWithOtherSecondaryKey.load(packageName).isPresent()); in load_doesNotLoadAKeyForAnotherSecondary() 97 assertFalse(mTertiaryKeyStore.load("mystery.package").isPresent()); in load_returnsAbsentForANonExistentKey() 139 assertTrue(maybeLoadedKey.isPresent()); in save_overwritesPreviousKey()
|
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | ProtoLogCallProcessor.kt | 70 return call.scope.isPresent && call.scope.get().toString() == protoLogClassName || in <lambda>() 71 isLogClassImported && call.scope.isPresent && in <lambda>() 73 !call.scope.isPresent && staticLogImports.contains(call.name.toString()) in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/collection/coordinator/ |
D | BubbleCoordinator.java | 82 if (mBubblesManagerOptional.isPresent()) { in attach() 91 return mBubblesOptional.isPresent() 110 if (mBubblesManagerOptional.isPresent()
|
/frameworks/base/services/backup/java/com/android/server/backup/remote/ |
D | RemoteResult.java | 53 public boolean isPresent() { in isPresent() method in RemoteResult 63 Preconditions.checkState(isPresent(), "Can't obtain value of failed result"); in get()
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | SourceTransformerTest.kt | 196 assertFalse(ifStmt.elseStmt.isPresent) in <lambda>() 238 assertFalse(ifStmt.elseStmt.isPresent) in <lambda>() 276 assertFalse(ifStmt.elseStmt.isPresent) in <lambda>() 313 assertFalse(ifStmt.elseStmt.isPresent) in <lambda>() 347 assertFalse(ifStmt.elseStmt.isPresent) in <lambda>() 385 assertFalse(ifStmt.elseStmt.isPresent) in <lambda>()
|