/frameworks/base/packages/SystemUI/tests/src/android/animation/ |
D | AnimatorTestRulePrecisionTest.kt | 24 import com.google.common.truth.Truth.assertThat 59 assertThat(value1).isEqualTo(0f) in testSingleAnimator() 60 assertThat(ended).isFalse() in testSingleAnimator() 61 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator() 64 assertThat(value1).isEqualTo(0.5f) in testSingleAnimator() 65 assertThat(ended).isFalse() in testSingleAnimator() 66 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator() 69 assertThat(value1).isEqualTo(0.99f) in testSingleAnimator() 70 assertThat(ended).isFalse() in testSingleAnimator() 71 assertThat(AnimationHandler.getAnimationCount()).isEqualTo(1) in testSingleAnimator() [all …]
|
/frameworks/libs/modules-utils/javatests/com/android/modules/utils/build/ |
D | UnboundedSdkLevelTest.java | 19 import static com.google.common.truth.Truth.assertThat; 48 assertThat(sdkLevel.isAtLeastInternal("30")).isTrue(); in testFinalizedSdk_S() 49 assertThat(sdkLevel.isAtLeastInternal("31")).isTrue(); in testFinalizedSdk_S() 50 assertThat(sdkLevel.isAtLeastInternal("32")).isFalse(); in testFinalizedSdk_S() 54 assertThat(sdkLevel.isAtLeastInternal("Sv2")).isFalse(); in testFinalizedSdk_S() 55 assertThat(sdkLevel.isAtLeastInternal("Tiramisu")).isFalse(); in testFinalizedSdk_S() 56 assertThat(sdkLevel.isAtLeastInternal("U")).isFalse(); in testFinalizedSdk_S() 61 assertThat(sdkLevel.isAtMostInternal("30")).isFalse(); in testFinalizedSdk_S() 62 assertThat(sdkLevel.isAtMostInternal("31")).isTrue(); in testFinalizedSdk_S() 63 assertThat(sdkLevel.isAtMostInternal("32")).isTrue(); in testFinalizedSdk_S() [all …]
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/ |
D | ListenerSetTest.kt | 22 import com.google.common.truth.Truth.assertThat 39 assertThat(runnableSet).isEmpty() in makeRunnableListenerSet() 42 assertThat(runnableSet.addIfAbsent(runnable1)).isTrue() in makeRunnableListenerSet() 43 assertThat(runnableSet).containsExactly(runnable1) in makeRunnableListenerSet() 46 assertThat(runnableSet.addIfAbsent(runnable2)).isTrue() in makeRunnableListenerSet() 47 assertThat(runnableSet).containsExactly(runnable1, runnable2) in makeRunnableListenerSet() 50 assertThat(runnableSet.addIfAbsent(runnable1)).isFalse() in makeRunnableListenerSet() 51 assertThat(runnableSet).containsExactly(runnable1, runnable2) in makeRunnableListenerSet() 57 assertThat(runnableSet).isEmpty() in isEmpty_changes() 58 assertThat(runnableSet.isEmpty()).isTrue() in isEmpty_changes() [all …]
|
/frameworks/proto_logging/stats/stats_log_api_gen/test_java/src/com/android/test/statslogapigen/ |
D | VendorAtomCodeGenTest.java | 19 import static com.google.common.truth.Truth.assertThat; 40 assertThat(VendorAtomsLog.VENDOR_ATOM1).isEqualTo(105501); in testAtomIdConstantsGeneration() 41 assertThat(VendorAtomsLog.VENDOR_ATOM2).isEqualTo(105502); in testAtomIdConstantsGeneration() 42 assertThat(VendorAtomsLog.VENDOR_ATOM4).isEqualTo(105504); in testAtomIdConstantsGeneration() 50 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_UNKNOWN).isEqualTo(0); in testAtomEnumConstantsGeneration() 51 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_1).isEqualTo(1); in testAtomEnumConstantsGeneration() 52 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_2).isEqualTo(2); in testAtomEnumConstantsGeneration() 53 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE__TYPE_3).isEqualTo(3); in testAtomEnumConstantsGeneration() 55 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE2__ANOTHER_TYPE_UNKNOWN).isEqualTo(0); in testAtomEnumConstantsGeneration() 56 assertThat(VendorAtomsLog.VENDOR_ATOM1__ENUM_TYPE2__ANOTHER_TYPE_1).isEqualTo(1); in testAtomEnumConstantsGeneration() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | AnimatorTestRuleOrderTest.kt | 26 import com.google.common.truth.Truth.assertThat 78 assertThat(value1).isEqualTo(0f) in testTwoAnimators() 79 assertThat(value2).isEqualTo(0f) in testTwoAnimators() 80 assertThat(ended1).isFalse() in testTwoAnimators() 81 assertThat(ended2).isFalse() in testTwoAnimators() 84 assertThat(value1).isEqualTo(0.99f) in testTwoAnimators() 85 assertThat(value2).isEqualTo(0.495f) in testTwoAnimators() 86 assertThat(ended1).isFalse() in testTwoAnimators() 87 assertThat(ended2).isFalse() in testTwoAnimators() 90 assertThat(value1).isEqualTo(1f) in testTwoAnimators() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/subscription/ |
D | SubscriptionInfoInternalTest.java | 18 import static com.google.common.truth.Truth.assertThat; 160 assertThat(mSubInfo.getSubscriptionId()).isEqualTo(1); in testSubscriptionInfoInternalSetAndGet() 161 assertThat(mSubInfo.getIccId()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_ICCID1); in testSubscriptionInfoInternalSetAndGet() 162 assertThat(mSubInfo.getSimSlotIndex()).isEqualTo(0); in testSubscriptionInfoInternalSetAndGet() 163 assertThat(mSubInfo.getDisplayName()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 165 assertThat(mSubInfo.getCarrierName()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 167 assertThat(mSubInfo.getDisplayNameSource()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 169 assertThat(mSubInfo.getIconTint()).isEqualTo(SubscriptionDatabaseManagerTest.FAKE_COLOR1); in testSubscriptionInfoInternalSetAndGet() 170 assertThat(mSubInfo.getNumber()).isEqualTo( in testSubscriptionInfoInternalSetAndGet() 172 assertThat(mSubInfo.getDataRoaming()).isEqualTo(SubscriptionManager.DATA_ROAMING_ENABLE); in testSubscriptionInfoInternalSetAndGet() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/res/ |
D | FontScaleConverterFactoryTest.kt | 28 import com.google.common.truth.Truth.assertThat in <lambda>() 69 assertThat(table.convertSpToDp(1F)).isWithin(CONVERSION_TOLERANCE).of(2f) in <lambda>() 70 assertThat(table.convertSpToDp(8F)).isWithin(CONVERSION_TOLERANCE).of(16f) in <lambda>() 71 assertThat(table.convertSpToDp(10F)).isWithin(CONVERSION_TOLERANCE).of(20f) in <lambda>() 72 assertThat(table.convertSpToDp(5F)).isWithin(CONVERSION_TOLERANCE).of(10f) in <lambda>() 73 assertThat(table.convertSpToDp(0F)).isWithin(CONVERSION_TOLERANCE).of(0f) in <lambda>() 82 assertThat(table.convertSpToDp(it)).isWithin(CONVERSION_TOLERANCE).of(it * 3f) in <lambda>() 84 assertThat(table.convertSpToDp(1F)).isWithin(CONVERSION_TOLERANCE).of(3f) in <lambda>() 85 assertThat(table.convertSpToDp(8F)).isWithin(CONVERSION_TOLERANCE).of(24f) in <lambda>() 86 assertThat(table.convertSpToDp(10F)).isWithin(CONVERSION_TOLERANCE).of(30f) in <lambda>() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/autofill/ |
D | AutofillIdTest.java | 21 import static com.google.common.truth.Truth.assertThat; 48 assertThat(id.getViewId()).isEqualTo(42); in testVirtual_int() 49 assertThat(id.isVirtualInt()).isTrue(); in testVirtual_int() 50 assertThat(id.isVirtualLong()).isFalse(); in testVirtual_int() 51 assertThat(id.isNonVirtual()).isFalse(); in testVirtual_int() 52 assertThat(id.getVirtualChildIntId()).isEqualTo(108); in testVirtual_int() 53 assertThat(id.getVirtualChildLongId()).isEqualTo(View.NO_ID); in testVirtual_int() 56 assertThat(clone.getViewId()).isEqualTo(42); in testVirtual_int() 57 assertThat(clone.isVirtualLong()).isFalse(); in testVirtual_int() 58 assertThat(clone.isVirtualInt()).isTrue(); in testVirtual_int() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/condition/ |
D | CombinedConditionTest.kt | 25 import com.google.common.truth.Truth.assertThat 90 assertThat(combinedCondition.isConditionMet).isFalse() in <lambda>() 91 assertThat(eagerCondition.started).isTrue() in <lambda>() 92 assertThat(lazyCondition.started).isTrue() in <lambda>() 93 assertThat(startWhenNeededCondition.started).isTrue() in <lambda>() 96 assertThat(combinedCondition.isConditionMet).isTrue() in <lambda>() 97 assertThat(eagerCondition.started).isTrue() in <lambda>() 98 assertThat(lazyCondition.started).isTrue() in <lambda>() 99 assertThat(startWhenNeededCondition.started).isFalse() in <lambda>() 102 assertThat(combinedCondition.isConditionMet).isTrue() in <lambda>() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/shared/model/ |
D | BiometricModalitiesTest.kt | 25 import com.google.common.truth.Truth.assertThat 35 assertThat(BiometricModalities().isEmpty).isTrue() in isEmpty() 47 assertThat(isEmpty).isFalse() in hasUdfps() 48 assertThat(hasUdfps).isTrue() in hasUdfps() 49 assertThat(hasSfps).isFalse() in hasUdfps() 50 assertThat(hasFace).isFalse() in hasUdfps() 51 assertThat(hasFaceOnly).isFalse() in hasUdfps() 52 assertThat(hasFingerprint).isTrue() in hasUdfps() 53 assertThat(hasFingerprintOnly).isTrue() in hasUdfps() 54 assertThat(hasFaceAndFingerprint).isFalse() in hasUdfps() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/ |
D | HdmiUtilsTest.java | 18 import static com.google.common.truth.Truth.assertThat; 72 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isMe() 81 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isDirectlyBelow() 89 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_isBelow() 97 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 103 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 109 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 115 assertThat(HdmiUtils.getLocalPortFromPhysicalAddress( in pathToPort_neitherMeNorBelow() 199 assertThat(config).isEqualTo(expectedConfig); in parseSampleXML() 228 assertThat(HdmiUtils.pathRelationship(0x1234, Constants.INVALID_PHYSICAL_ADDRESS)) in pathRelationship_unknown() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/wakeups/ |
D | WakingActivityHistoryTest.java | 19 import static com.google.common.truth.Truth.assertThat; 71 assertThat(history.mWakingActivity.size()).isEqualTo(1); in recordActivityAppendsUids() 72 assertThat(history.mWakingActivity.contains(subsystem)).isTrue(); in recordActivityAppendsUids() 73 assertThat(history.mWakingActivity.contains(subsystem + 1)).isFalse(); in recordActivityAppendsUids() 74 assertThat(history.mWakingActivity.contains(subsystem - 1)).isFalse(); in recordActivityAppendsUids() 79 assertThat(recordedHistory.size()).isEqualTo(1); in recordActivityAppendsUids() 80 assertThat(recordedHistory.indexOfKey(timestamp - 1)).isLessThan(0); in recordActivityAppendsUids() 81 assertThat(recordedHistory.indexOfKey(timestamp)).isAtLeast(0); in recordActivityAppendsUids() 82 assertThat(recordedHistory.indexOfKey(timestamp + 1)).isLessThan(0); in recordActivityAppendsUids() 85 assertThat(recordedUids).isNotSameInstanceAs(uids); in recordActivityAppendsUids() [all …]
|
/frameworks/base/packages/SettingsLib/Spa/tests/src/com/android/settingslib/spa/framework/common/ |
D | SettingsEntryTest.kt | 32 import com.google.common.truth.Truth.assertThat in <lambda>() 44 assertThat(entryData.isHighlighted).isFalse() in <lambda>() 45 assertThat(entryData.pageId).isEqualTo(pageId) in <lambda>() 46 assertThat(entryData.entryId).isEqualTo(entryId) in <lambda>() 70 assertThat(entry.id).isEqualTo(genEntryId("myEntry", owner)) in testBuildBasic() 71 assertThat(entry.label).isEqualTo("myEntry") in testBuildBasic() 72 assertThat(entry.owner.sppName).isEqualTo("mySpp") in testBuildBasic() 73 assertThat(entry.owner.displayName).isEqualTo("mySpp") in testBuildBasic() 74 assertThat(entry.fromPage).isNull() in testBuildBasic() 75 assertThat(entry.toPage).isNull() in testBuildBasic() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/ui/viewmodel/ |
D | PromptAuthStateTest.kt | 23 import com.google.common.truth.Truth.assertThat 34 assertThat(isNotAuthenticated).isTrue() in notAuthenticated() 35 assertThat(isAuthenticatedAndConfirmed).isFalse() in notAuthenticated() 36 assertThat(isAuthenticatedAndExplicitlyConfirmed).isFalse() in notAuthenticated() 37 assertThat(isAuthenticatedByFace).isFalse() in notAuthenticated() 38 assertThat(isAuthenticatedByFingerprint).isFalse() in notAuthenticated() 45 assertThat(isNotAuthenticated).isFalse() in authenticatedByUnknown() 46 assertThat(isAuthenticatedAndConfirmed).isTrue() in authenticatedByUnknown() 47 assertThat(isAuthenticatedAndExplicitlyConfirmed).isFalse() in authenticatedByUnknown() 48 assertThat(isAuthenticatedByFace).isFalse() in authenticatedByUnknown() [all …]
|
/frameworks/base/core/tests/InputMethodCoreTests/src/android/view/inputmethod/ |
D | BaseInputConnectionTest.java | 18 import static com.google.common.truth.Truth.assertThat; 67 assertThat(mBaseInputConnection.commitText("text1", 1)).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 72 assertThat(mBaseInputConnection.commitText("text2", "text1".length())).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 77 assertThat(mBaseInputConnection.commitText("text3", 100)).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 82 assertThat(mBaseInputConnection.commitText("text4", 0)).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 87 assertThat(mBaseInputConnection.commitText("text5", -1)).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 92 assertThat(mBaseInputConnection.commitText("text6", -2)).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 97 assertThat(mBaseInputConnection.commitText("text7", -100)).isTrue(); in testCommitText_toEditorWithoutSelectionAndComposing() 106 assertThat(mBaseInputConnection.commitText("text", 1)).isTrue(); in testCommitText_toEditorWithSelection() 112 assertThat(mBaseInputConnection.commitText("text", 0)).isTrue(); in testCommitText_toEditorWithSelection() [all …]
|
D | SurroundingTextTest.java | 19 import static com.google.common.truth.Truth.assertThat; 41 assertThat(surroundingText1.getText().toString()).isEqualTo("test"); in testSurroundingTextBasicCreation() 42 assertThat(surroundingText1.getSelectionStart()).isEqualTo(0); in testSurroundingTextBasicCreation() 43 assertThat(surroundingText1.getSelectionEnd()).isEqualTo(0); in testSurroundingTextBasicCreation() 44 assertThat(surroundingText1.getOffset()).isEqualTo(0); in testSurroundingTextBasicCreation() 47 assertThat(surroundingText2.getText().toString()).isEmpty(); in testSurroundingTextBasicCreation() 48 assertThat(surroundingText2.getSelectionStart()).isEqualTo(-1); in testSurroundingTextBasicCreation() 49 assertThat(surroundingText2.getSelectionEnd()).isEqualTo(-1); in testSurroundingTextBasicCreation() 50 assertThat(surroundingText2.getOffset()).isEqualTo(-1); in testSurroundingTextBasicCreation() 53 assertThat(surroundingText3.getText().toString()).isEqualTo("hello"); in testSurroundingTextBasicCreation() [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/ |
D | DesktopModeTaskRepositoryTest.kt | 26 import com.google.common.truth.Truth.assertThat 49 assertThat(listener.activeChangesOnDefaultDisplay).isEqualTo(1) in addActiveTask_listenerNotifiedAndTaskIsActive() 50 assertThat(repo.isActiveTask(1)).isTrue() in addActiveTask_listenerNotifiedAndTaskIsActive() 60 assertThat(listener.activeChangesOnDefaultDisplay).isEqualTo(1) in addActiveTask_sameTaskDoesNotNotify() 70 assertThat(listener.activeChangesOnDefaultDisplay).isEqualTo(2) in addActiveTask_multipleTasksAddedNotifiesForEach() 82 assertThat(listener.activeChangesOnDefaultDisplay).isEqualTo(2) in addActiveTask_multipleDisplays_notifiesCorrectListener() 83 assertThat(listener.activeChangesOnSecondaryDisplay).isEqualTo(1) in addActiveTask_multipleDisplays_notifiesCorrectListener() 94 assertThat(listener.activeChangesOnDefaultDisplay).isEqualTo(2) in removeActiveTask_listenerNotifiedAndTaskNotActive() 95 assertThat(repo.isActiveTask(1)).isFalse() in removeActiveTask_listenerNotifiedAndTaskNotActive() 103 assertThat(listener.activeChangesOnDefaultDisplay).isEqualTo(0) in removeActiveTask_removeNotExistingTaskDoesNotNotify() [all …]
|
/frameworks/base/tools/hoststubgen/hoststubgen/test-tiny-framework/tiny-test/src/com/android/hoststubgen/test/tinyframework/ |
D | TinyFrameworkClassTest.java | 18 import static com.google.common.truth.Truth.assertThat; 40 assertThat(tfc.addOne(1)).isEqualTo(2); in testSimple() 41 assertThat(tfc.stub).isEqualTo(1); in testSimple() 58 assertThat(tfc.addTwo(1)).isEqualTo(3); in testSubstitute() 64 assertThat(tfc.nativeAddThree(1)).isEqualTo(4); in testSubstituteNative() 78 assertThat(new TinyFrameworkNestedClasses().mSupplier.get()).isEqualTo(1); in testNestedClass1() 83 assertThat(TinyFrameworkNestedClasses.sSupplier.get()).isEqualTo(2); in testNestedClass2() 88 assertThat(new TinyFrameworkNestedClasses().getSupplier().get()).isEqualTo(3); in testNestedClass3() 93 assertThat(TinyFrameworkNestedClasses.getSupplier_static().get()).isEqualTo(4); in testNestedClass4() 98 assertThat((new TinyFrameworkNestedClasses()).new InnerClass().value).isEqualTo(5); in testNestedClass5() [all …]
|
/frameworks/base/packages/SystemUI/compose/scene/tests/src/com/android/compose/animation/scene/ |
D | SceneTransitionLayoutStateTest.kt | 28 import com.android.compose.animation.scene.subjects.assertThat in <lambda>() 31 import com.google.common.truth.Truth.assertThat in <lambda>() 51 assertThat(state.isTransitioning()).isFalse() in <lambda>() 52 assertThat(state.isTransitioning(from = SceneA)).isFalse() in <lambda>() 53 assertThat(state.isTransitioning(to = SceneB)).isFalse() in <lambda>() 54 assertThat(state.isTransitioning(from = SceneA, to = SceneB)).isFalse() in <lambda>() 62 assertThat(state.isTransitioning()).isTrue() in <lambda>() 63 assertThat(state.isTransitioning(from = SceneA)).isTrue() in <lambda>() 64 assertThat(state.isTransitioning(from = SceneB)).isFalse() in <lambda>() 65 assertThat(state.isTransitioning(to = SceneB)).isTrue() in <lambda>() [all …]
|
/frameworks/base/core/tests/coretests/src/android/view/contentcapture/ |
D | ContentCaptureEventTest.java | 24 import static com.google.common.truth.Truth.assertThat; 63 assertThat(event.getId()).isNull(); in testSetAutofillId_null() 64 assertThat(event.getIds()).isNull(); in testSetAutofillId_null() 72 assertThat(event.getId()).isNull(); in testSetAutofillIds_null() 73 assertThat(event.getIds()).isNull(); in testSetAutofillIds_null() 81 assertThat(event.getId()).isNull(); in testAddAutofillId_null() 82 assertThat(event.getIds()).isNull(); in testAddAutofillId_null() 91 assertThat(event.getId()).isEqualTo(id); in testSetAutofillId() 92 assertThat(event.getIds()).isNull(); in testSetAutofillId() 103 assertThat(event.getId()).isNull(); in testSetAutofillIds() [all …]
|
/frameworks/base/core/tests/coretests/src/android/app/ |
D | BackgroundStartPrivilegesTest.java | 24 import static com.google.common.truth.Truth.assertThat; 51 assertThat(ALLOW_BAL.getOriginatingToken()).isNull(); in backgroundStartPrivilege_getters_work() 52 assertThat(ALLOW_BAL.allowsBackgroundActivityStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 53 assertThat(ALLOW_BAL.allowsBackgroundFgsStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 54 assertThat(ALLOW_BAL.allowsAny()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 55 assertThat(ALLOW_BAL.allowsNothing()).isEqualTo(false); in backgroundStartPrivilege_getters_work() 57 assertThat(ALLOW_FGS.getOriginatingToken()).isNull(); in backgroundStartPrivilege_getters_work() 58 assertThat(ALLOW_FGS.allowsBackgroundActivityStarts()).isEqualTo(false); in backgroundStartPrivilege_getters_work() 59 assertThat(ALLOW_FGS.allowsBackgroundFgsStarts()).isEqualTo(true); in backgroundStartPrivilege_getters_work() 60 assertThat(ALLOW_FGS.allowsAny()).isEqualTo(true); in backgroundStartPrivilege_getters_work() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CbGeoUtilsTest.java | 19 import static com.google.common.truth.Truth.assertThat; 38 assertThat(distInMeter).isWithin(0.1).of(12586.1); in testDistanceBetweenTwoLatLng() 44 assertThat(latlng.lat).isWithin(CbGeoUtils.EPS).of(-80.1234); in testParseLatLngFromString() 45 assertThat(latlng.lng).isWithin(CbGeoUtils.EPS).of(179.5678); in testParseLatLngFromString() 62 assertThat(decodedGeo.size()).isEqualTo(2); in testEncodeGeometries() 65 assertThat(geo.get(0)).isInstanceOf(CbGeoUtils.Polygon.class); in testEncodeGeometries() 68 assertThat(vertexes.size()).isEqualTo(3); in testEncodeGeometries() 70 assertThat(p.lat).isWithin(CbGeoUtils.EPS).of(11.11); in testEncodeGeometries() 71 assertThat(p.lng).isWithin(CbGeoUtils.EPS).of(22.22); in testEncodeGeometries() 73 assertThat(p.lat).isWithin(CbGeoUtils.EPS).of(33.33); in testEncodeGeometries() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/classifier/ |
D | FalsingDataProviderTest.java | 19 import static com.google.common.truth.Truth.assertThat; 86 assertThat(motionEventList.size()).isEqualTo(3); in test_trackMotionEvents_dropUpEvent() 87 assertThat(motionEventList.get(0).getActionMasked()).isEqualTo(MotionEvent.ACTION_DOWN); in test_trackMotionEvents_dropUpEvent() 88 assertThat(motionEventList.get(1).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_dropUpEvent() 89 assertThat(motionEventList.get(2).getActionMasked()).isEqualTo(MotionEvent.ACTION_MOVE); in test_trackMotionEvents_dropUpEvent() 90 assertThat(motionEventList.get(0).getEventTime()).isEqualTo(1L); in test_trackMotionEvents_dropUpEvent() 91 assertThat(motionEventList.get(1).getEventTime()).isEqualTo(2L); in test_trackMotionEvents_dropUpEvent() 92 assertThat(motionEventList.get(2).getEventTime()).isEqualTo(3L); in test_trackMotionEvents_dropUpEvent() 93 assertThat(motionEventList.get(0).getX()).isEqualTo(2f); in test_trackMotionEvents_dropUpEvent() 94 assertThat(motionEventList.get(1).getX()).isEqualTo(4f); in test_trackMotionEvents_dropUpEvent() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LooperStatsTest.java | 19 import static com.google.common.truth.Truth.assertThat; 96 assertThat(entries).hasSize(1); in testSingleMessageDispatched() 98 assertThat(entry.workSourceUid).isEqualTo(1000); in testSingleMessageDispatched() 99 assertThat(entry.threadName).isEqualTo("TestThread1"); in testSingleMessageDispatched() 100 assertThat(entry.handlerClassName).isEqualTo( in testSingleMessageDispatched() 102 assertThat(entry.messageName).isEqualTo("0x3e8" /* 1000 in hex */); in testSingleMessageDispatched() 103 assertThat(entry.isInteractive).isEqualTo(true); in testSingleMessageDispatched() 104 assertThat(entry.messageCount).isEqualTo(1); in testSingleMessageDispatched() 105 assertThat(entry.recordedMessageCount).isEqualTo(1); in testSingleMessageDispatched() 106 assertThat(entry.exceptionCount).isEqualTo(0); in testSingleMessageDispatched() [all …]
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | LauncherActivityInfoTest.java | 19 import static com.google.common.truth.Truth.assertThat; 38 assertThat(LauncherActivityInfo.trimStart("\u0009").toString()).isEmpty(); in testTrimStart() 40 assertThat(LauncherActivityInfo.trimStart("\u0FE1").toString()).isEmpty(); in testTrimStart() 42 assertThat(LauncherActivityInfo.trimStart("\uD83E\uDD36").toString()) in testTrimStart() 44 assertThat(LauncherActivityInfo.trimStart("\u0009\u0FE1\uD83E\uDD36A").toString()) in testTrimStart() 46 assertThat(LauncherActivityInfo.trimStart("\uD83E\uDD36A\u0009\u0FE1").toString()) in testTrimStart() 48 assertThat(LauncherActivityInfo.trimStart("A\uD83E\uDD36\u0009\u0FE1A").toString()) in testTrimStart() 50 assertThat(LauncherActivityInfo.trimStart( in testTrimStart() 53 assertThat(LauncherActivityInfo.trimStart( in testTrimStart() 61 assertThat(LauncherActivityInfo.trimEnd("\u0009").toString()).isEmpty(); in testTrimEnd() [all …]
|