/packages/modules/NetworkStack/tests/unit/src/android/net/captiveportal/ |
D | CaptivePortalProbeSpecTest.java | 46 assertSuccess(statusRegexSpec.getResult(200, null)); in testGetResult_Regex() 47 assertSuccess(statusRegexSpec.getResult(299, "qwer")); in testGetResult_Regex() 48 assertSuccess(statusRegexSpec.getResult(404, null)); in testGetResult_Regex() 49 assertSuccess(statusRegexSpec.getResult(404, "")); in testGetResult_Regex() 51 assertPortal(statusRegexSpec.getResult(300, null)); in testGetResult_Regex() 52 assertPortal(statusRegexSpec.getResult(399, "qwer")); in testGetResult_Regex() 53 assertPortal(statusRegexSpec.getResult(500, null)); in testGetResult_Regex() 55 assertSuccess(redirectSpec.getResult(404, null)); in testGetResult_Regex() 56 assertSuccess(redirectSpec.getResult(404, "")); in testGetResult_Regex() 57 assertSuccess(redirectSpec.getResult(301, "https://www.google.com")); in testGetResult_Regex() [all …]
|
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/correction/filtering/ |
D | MedAvgFilterTest.java | 33 assertThat(filter.getResult().value).isEqualTo((1 + 2 + 3) / 3f); in averageTest() 44 assertThat(filter.getResult().value).isEqualTo((2 + 3 + 4) / 3f); in slideTest() 54 assertThat(filter.getResult().value).isEqualTo((1 + 2 + 3) / 3f + 66); in remapTest() 65 assertThat(filter.getResult().value).isEqualTo((2f + 3f) / 2f); in evenMedianTest() 73 assertThat(filter.getResult().value).isEqualTo(5); in shortFilterTest() 75 assertThat(filter.getResult().value).isEqualTo((5f + 6f) / 2); in shortFilterTest() 77 assertThat(filter.getResult().value).isEqualTo(6); in shortFilterTest() 88 assertThat(filter.getResult().value).isEqualTo((3 + 7 + 11) / 3f); in mixCutTest() 114 assertThat(filter.getResult().value).isWithin(0.000001f).of(weightedResult); in weightedTest()
|
D | MedAvgRotationFilterFilterTest.java | 38 assertClose(filter.getResult().value, toRadians((175 + (360 - 175) + 5) / 3f)); in averageTest() 53 filter.getResult().value, in remapTest()
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | JavaMockitoHelperTest.java | 94 assertThrows(NullPointerException.class, ()->JavaMockitoHelper.getResult(null, "D'OH!")); in testGetResult_nullFuture() 99 assertThrows(NullPointerException.class, ()->JavaMockitoHelper.getResult(mFuture, null)); in testGetResult_nullMessageFormat() 106 assertThat(JavaMockitoHelper.getResult(mFuture, "I am number %d!", 4)).isEqualTo("done"); in testGetResult_ok() 115 () -> JavaMockitoHelper.getResult(mFuture, "I am number %d!", 4)); in testGetResult_timeoutException() 128 () -> JavaMockitoHelper.getResult(mFuture, "I am number %d!", 4)); in testGetResult_executionException() 141 () -> JavaMockitoHelper.getResult(mFuture, "I am number %d!", 4)); in testGetResult_interruptedException() 151 () -> JavaMockitoHelper.getResult(null, TIMEOUT_MS, "D'OH!")); in testGetResult_withCustomTimeout_nullFuture() 157 () -> JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, null)); in testGetResult_withCustomTimeout_nullMessageFormat() 164 assertThat(JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, "I am number %d!", 4)) in testGetResult_withCustomTimeout_ok() 176 () -> JavaMockitoHelper.getResult(mFuture, TIMEOUT_MS, "I am number %d!", 4)); in testGetResult_withCustomTimeout_timeoutException() [all …]
|
/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/backgroundread/ |
D | BackgroundReadTest.java | 110 assertThat(TestReceiver.getResult()).isNull(); in testReadRecordsByFilters_inBackgroundWithoutPermission_cannotReadOtherAppsData() 123 Bundle result = TestReceiver.getResult(); in testReadRecordsByFilters_inBackgroundWithoutPermission_canReadOwnData() 142 Bundle result = TestReceiver.getResult(); in testReadRecordsByFilters_inBackgroundWithPermission_canReadBothOwnAndOtherAppsData() 162 Bundle result = TestReceiver.getResult(); in testReadRecordsByIds_inBackgroundWithoutPermission_canReadOnlyOwnData() 181 Bundle result = TestReceiver.getResult(); in testReadRecordsByIds_inBackgroundWithPermission_canReadBothOwnAndOtherAppsData() 220 Bundle result = TestReceiver.getResult(); in testAggregate_inBackgroundWithPermission_canAggregateBothOwnAndOtherAppsData() 240 final String token = requireNonNull(TestReceiver.getResult()).getString(EXTRA_TOKEN); in testGetChangeLogs_inBackgroundWithPermission_success() 260 return getRecordIds(outcomeReceiver.getResult().getRecords()); in insertStepsRecordsDirectly() 288 return TestReceiver.getResult(); in assertSuccess()
|
/packages/modules/AdServices/adservices/tests/unittest/framework/src/android/adservices/adselection/ |
D | AdSelectionManagerTest.java | 212 assertThat(outcomeReceiver.getResult()).isNotNull(); in testAdSelectionManagerGetAdSelectionDataWhenResultIsByteArray() 213 expect.that(outcomeReceiver.getResult().getAdSelectionId()) in testAdSelectionManagerGetAdSelectionDataWhenResultIsByteArray() 215 assertArrayEquals(expectedByteArray, outcomeReceiver.getResult().getAdSelectionData()); in testAdSelectionManagerGetAdSelectionDataWhenResultIsByteArray() 247 expect.that(outcomeReceiver.getResult()).isNotNull(); in testAdSelectionManagerGetAdSelectionDataCoordinatorWasPassed() 281 assertThat(outcomeReceiver.getResult()).isNotNull(); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptor() 282 assertThat(outcomeReceiver.getResult().getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptor() 283 assertArrayEquals(expectedByteArray, outcomeReceiver.getResult().getAdSelectionData()); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptor() 313 assertThat(outcomeReceiver.getResult()).isNotNull(); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptorWithExcessiveSize() 314 assertThat(outcomeReceiver.getResult().getAdSelectionId()).isEqualTo(expectedAdSelectionId); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptorWithExcessiveSize() 316 byte[] result = outcomeReceiver.getResult().getAdSelectionData(); in testAdSelectionManagerGetAdSelectionDataWhenResultIsAssetFileDescriptorWithExcessiveSize() [all …]
|
/packages/modules/Uwb/service/java/com/android/server/uwb/correction/filtering/ |
D | IFilter.java | 49 Sample getResult(); in getResult() method 62 default Sample getResult(long timeMs) { in getResult() method 63 return getResult(); in getResult()
|
D | PositionFilterImpl.java | 86 Sample azimuth = mAzimuthFilter.getResult(timeMs); in compute() 87 Sample elevation = mElevationFilter.getResult(timeMs); in compute() 88 Sample distance = mDistanceFilter.getResult(timeMs); in compute()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/route/ |
D | RouteRequestActivityTest.kt | 177 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>() 178 val returnedIntent = scenario.getResult().getResultData() in <lambda>() 196 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>() 197 val returnedIntent = scenario.getResult().getResultData() in <lambda>() 221 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>() 222 val returnedIntent = scenario.getResult().getResultData() in <lambda>() 246 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>() 247 val returnedIntent = scenario.getResult().getResultData() in <lambda>() 400 assertThat(scenario.getResult().getResultCode()).isEqualTo(Activity.RESULT_CANCELED) in <lambda>() 401 val returnedIntent = scenario.getResult().getResultData() in <lambda>() [all …]
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/util/ |
D | CarTestingHelper.java | 38 public static <T> T getResult(@NonNull AsyncFuture<T> future) in getResult() method in CarTestingHelper 40 return getResult(future, ASYNC_TIMEOUT_MS); in getResult() 47 public static <T> T getResult(@NonNull AsyncFuture<T> future, long timeoutMs) { in getResult() method in CarTestingHelper
|
/packages/modules/AppSearch/framework/java/android/app/appsearch/ |
D | AppSearchSession.java | 148 AppSearchResult<Void> result = resultParcel.getResult(); in initialize() 264 resultParcel.getResult(); in getSchema() 310 resultParcel.getResult(); in getNamespaces() 371 () -> callback.onResult(resultParcel.getResult())); in put() 381 resultParcel.getResult(), callback)); in put() 643 resultParcel.getResult(); in searchSuggestion() 708 () -> callback.accept(resultParcel.getResult())); in reportUsage() 761 () -> callback.onResult(resultParcel.getResult())); in remove() 772 resultParcel.getResult(), callback)); in remove() 829 () -> callback.accept(resultParcel.getResult())); in remove() [all …]
|
/packages/modules/AdServices/shared/libraries/device-side/java/com/android/adservices/shared/testing/concurrency/ |
D | FailableResultSyncCallback.java | 111 var resultOrFailure = mCallback.getResult(); in getFailure() 136 public final R getResult() { in getResult() method in FailableResultSyncCallback 137 var resultOrFailure = mCallback.getResult(); in getResult() 153 return getResult(); in assertResultReceived()
|
D | ResultSyncCallback.java | 84 return getResult(); in assertResultReceived() 88 public final @Nullable R getResult() { in getResult() method in ResultSyncCallback 112 string.append(", result=").append(getResult()).append(", results=").append(results); in customizeToString()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/datatypes/ |
D | OvulationTestRecord.java | 63 public int getResult() { in getResult() method in OvulationTestRecord 123 return getResult() == that.getResult(); in equals() 129 return Objects.hash(super.hashCode(), getResult()); in hashCode()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/user/ |
D | CarUserManagerUnitTest.java | 19 import static android.car.test.util.CarTestingHelper.getResult; 303 UserSwitchResult result = getResult(future); in testSwitchUserId_success() 330 UserSwitchResult result = getResult(future); in testSwitchUserId_remoteException() 355 UserSwitchResult result = getResult(future); in testSwitchUserId_runtimeException() 367 UserSwitchResult result = getResult(future); in testLogoutUser_success() 380 UserSwitchResult result = getResult(future); in testLogoutUser_remoteException() 392 UserSwitchResult result = getResult(future); in testLogoutUser_runtimeException() 507 UserCreationResult result = getResult(future); in testCreateUserId_success() 542 UserCreationResult result = getResult(future); in testCreateUserId_remoteException() 574 UserCreationResult result = getResult(future); in testCreateUserId_runtimeException() [all …]
|
/packages/apps/Settings/src/com/android/settings/sim/smartForwarding/ |
D | EnableSmartForwardingTask.java | 251 abstract T getResult(); in getResult() method in EnableSmartForwardingTask.QueryCommand 289 Integer getResult() { in getResult() method in EnableSmartForwardingTask.QueryCallWaitingCommand 336 CallForwardingInfo getResult() { in getResult() method in EnableSmartForwardingTask.QueryCallForwardingCommand 371 if (queryResult.getResult() != TelephonyManager.CALL_WAITING_STATUS_ENABLED) { in onRestore() 414 .setCallForwarding(queryResult.getResult(), null, null); in onRestore() 433 public boolean getResult() { in getResult() method in EnableSmartForwardingTask.FeatureResult
|
/packages/services/Car/libs/car-test-lib/src/android/car/test/mocks/ |
D | JavaMockitoHelper.java | 99 public static <T> T getResult(@NonNull Future<T> future, in getResult() method in JavaMockitoHelper 101 return getResult(future, ASYNC_TIMEOUT_MS, messageFormat, messageArgs); in getResult() 108 public static <T> T getResult(@NonNull Future<T> future, long timeoutMs, in getResult() method in JavaMockitoHelper
|
/packages/modules/Wifi/service/java/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalHidlImpl.java | 394 return supplicantIface.getResult(); in getIfaceV1_0() 425 return supplicantIface.getResult(); in addIfaceV1_1() 689 return result.getResult(); in getName() 1025 return result.getResult(); in connect() 1241 return result.getResult(); in getDeviceAddress() 1291 return result.getResult(); in getSsid() 1471 return capability.getResult(); in getGroupCapability() 1800 Long value = result.getResult(); in requestServiceDiscovery() 1989 return result.getResult(); in startWpsPinDisplay() 2123 return result.getResult(); in listNetworks() [all …]
|
/packages/services/Telecomm/src/com/android/server/telecom/voip/ |
D | TransactionManager.java | 83 transactionName, result.getResult())); in addTransaction() 85 if (result.getResult() == TelecomManager.TELECOM_TRANSACTION_SUCCESS) { in addTransaction() 90 result.getResult())); in addTransaction() 254 if (s.getTransactionResult().getResult() == VoipCallTransactionResult.RESULT_SUCCEED) { in parseTransactionResult()
|
/packages/modules/OnDevicePersonalization/tests/cts/endtoend/src/com/android/ondevicepersonalization/cts/e2e/ |
D | CtsOdpManagerTests.java | 226 assertNull(receiver.getResult()); in testExecuteReturnsIllegalStateIfServiceNotEnrolled() 241 assertNull(receiver.getResult()); in testExecuteReturnsNameNotFoundIfServiceNotInstalled() 257 assertNull(receiver.getResult()); in testExecuteReturnsClassNotFoundIfServiceClassNotFound() 273 SurfacePackageToken token = receiver.getResult().getSurfacePackageToken(); in testExecuteNoOp() 296 SurfacePackageToken token = receiver.getResult().getSurfacePackageToken(); in testExecuteWithRenderAndLogging() 315 SurfacePackageToken token = receiver.getResult().getSurfacePackageToken(); in testExecuteWithRender() 336 assertArrayEquals(new byte[] {'A'}, receiver.getResult().getOutputData()); in testExecuteWithOutputData() 389 SurfacePackageToken token = receiver.getResult().getSurfacePackageToken(); in testExecuteWithLogging() 447 assertNull(receiver.getResult()); in testExecuteReturnsErrorIfServiceThrows() 470 assertNull(receiver.getResult()); in testExecuteReturnsErrorIfServiceReturnsError()
|
/packages/modules/AppSearch/testing/contactsindexertests/src/com/android/server/appsearch/contactsindexer/ |
D | EnterpriseContactsTest.java | 237 AppSearchBatchResult<String, GenericDocument> getResult = in testGetEnterpriseContact() local 241 assertThat(getResult.isSuccess()).isTrue(); in testGetEnterpriseContact() 242 GenericDocument document = getResult.getSuccesses().get("123"); in testGetEnterpriseContact() 289 AppSearchBatchResult<String, GenericDocument> getResult = in testGetEnterpriseContact_withProjection() local 293 assertThat(getResult.isSuccess()).isTrue(); in testGetEnterpriseContact_withProjection() 294 GenericDocument document = getResult.getSuccesses().get("123"); in testGetEnterpriseContact_withProjection() 528 AppSearchBatchResult<String, GenericDocument> getResult = in testEnterpriseContactsInSystemPackage_transformPerson() local 531 if (getResult.getSuccesses().containsKey(id)) { in testEnterpriseContactsInSystemPackage_transformPerson() 542 AppSearchBatchResult<String, GenericDocument> getResult = in testEnterpriseContactsInSystemPackage_transformPerson() local 545 assertThat(getResult.isSuccess()).isTrue(); in testEnterpriseContactsInSystemPackage_transformPerson() [all …]
|
/packages/providers/MediaProvider/tests/src/com/android/providers/media/photopicker/sync/ |
D | ImmediateAlbumSyncWorkerTest.java | 97 workManager.enqueue(request).getResult().get(); in testLocalAlbumImmediateSync() 130 workManager.enqueue(request).getResult().get(); in testCloudAlbumImmediateSync() 164 workManager.enqueue(request).getResult().get(); in testInvalidSyncSourceImmediateAlbumSync() 198 workManager.enqueue(request).getResult().get(); in testLocalAndCloudImmediateSyncFailure() 232 workManager.enqueue(request).getResult().get(); in testInvalidAlbumIdImmediateSyncFailure()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/ |
D | ResultWrapperTest.java | 44 assertThat(newResultWrapper.getResult().getStatus()) in testParcelable() 45 .isEqualTo(resultWrapper.getResult().getStatus()); in testParcelable()
|
/packages/apps/Car/DebuggingRestrictionController/app/src/androidTest/java/com/android/car/debuggingrestrictioncontroller/ |
D | TokenTest.java | 90 activityScenarioRule.getScenario().getResult(), in agree() 99 activityScenarioRule.getScenario().getResult(), in disagree() 108 activityScenarioRule.getScenario().getResult(), in userNotSignedIn()
|
/packages/modules/HealthFitness/framework/java/android/health/connect/internal/datatypes/ |
D | OvulationTestRecordInternal.java | 34 public int getResult() { in getResult() method in OvulationTestRecordInternal 48 return new OvulationTestRecord.Builder(buildMetaData(), getTime(), getResult()) in toExternalRecord()
|