/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | ExpectableTestCase.java | 66 public final Expect mExpect = Expect.create(); field in ExpectableTestCase 69 return mExpect.withMessage(msg); in expectWithMessage() 73 return mExpect.withMessage(format, args); in expectWithMessage() 78 return mExpect.that(actual); in expectThat() 82 return mExpect.that(actual); in expectThat() 86 return mExpect.that(actual); in expectThat() 91 return mExpect.that(actual); in expectThat() 95 return mExpect.that(actual); in expectThat() 99 return mExpect.that(actual); in expectThat() 103 return mExpect.that(actual); in expectThat() [all …]
|
/frameworks/base/core/tests/BroadcastRadioTests/src/android/hardware/radio/ |
D | RadioManagerTest.java | 159 public final Expect mExpect = Expect.create(); field in RadioManagerTest 181 mExpect.withMessage("Unsupported band type exception") in constructor_withUnsupportedTypeForBandDescriptor_throwsException() 189 mExpect.withMessage("AM Band Descriptor type") in getType_forBandDescriptor() 197 mExpect.withMessage("FM Band Descriptor region") in getRegion_forBandDescriptor() 205 mExpect.withMessage("FM Band Descriptor lower limit") in getLowerLimit_forBandDescriptor() 213 mExpect.withMessage("AM Band Descriptor upper limit") in getUpperLimit_forBandDescriptor() 221 mExpect.withMessage("AM Band Descriptor spacing") in getSpacing_forBandDescriptor() 229 mExpect.withMessage("Band Descriptor contents") in describeContents_forBandDescriptor() 243 mExpect.withMessage("Band Descriptor created from parcel") in writeToParcel_forBandDescriptor() 252 mExpect.withMessage("Band Descriptors").that(bandDescriptors).hasLength(CREATOR_ARRAY_SIZE); in newArray_forBandDescriptorCreator() [all …]
|
D | RadioMetadataTest.java | 58 public final Expect mExpect = Expect.create(); field in RadioMetadataTest 72 mExpect.withMessage("Describe contents for metadata clock") in describeContents_forClock() 80 mExpect.withMessage("Clock array size").that(clocks.length).isEqualTo(CREATOR_ARRAY_SIZE); in newArray_forClockCreator() 93 mExpect.withMessage("UTC second since epoch of metadata clock created from parcel") in writeToParcel_forClock() 95 mExpect.withMessage("Time zone offset minutes of metadata clock created from parcel") in writeToParcel_forClock() 108 mExpect.withMessage("Exception for putting illegal string-value key %s", invalidStringKey) in putString_withIllegalKey() 121 mExpect.withMessage("Exception for putting illegal int-value for key %s", invalidIntKey) in putInt_withIllegalKey() 134 mExpect.withMessage("Exception for putting illegal bitmap-value for key %s", invalidIntKey) in putBitmap_withIllegalKey() 148 mExpect.withMessage("Exception for putting illegal clock-value key %s", invalidClockKey) in putClock_withIllegalKey() 162 mExpect.withMessage("Exception for putting illegal string-array-value for key %s", in putStringArray_withIllegalKey_throwsException() [all …]
|
D | ProgramListTest.java | 149 public final Expect mExpect = Expect.create(); field in ProgramListTest 158 mExpect.withMessage("Filtered identifier types").that(filter.getIdentifierTypes()) in getIdentifierTypes_forFilter() 167 mExpect.withMessage("Filtered identifiers").that(filter.getIdentifiers()) in getIdentifiers_forFilter() 176 mExpect.withMessage("Filter including categories") in areCategoriesIncluded_forFilter() 185 mExpect.withMessage("Filter excluding modifications") in areModificationsExcluded_forFilter() 194 mExpect.withMessage("Filter vendor obtained from filter without vendor filter") in getVendorFilter_forFilterWithoutVendorFilter_returnsNull() 202 mExpect.withMessage("Filter vendor obtained from filter with vendor filter") in getVendorFilter_forFilterWithVendorFilter() 208 mExpect.withMessage("Filter contents").that(TEST_FILTER.describeContents()).isEqualTo(0); in describeContents_forFilter() 216 mExpect.withMessage("Hash code of the same filter") in hashCode_withTheSameFilters_equals() 224 mExpect.withMessage("Hash code of the different filter") in hashCode_withDifferentFilters_notEquals() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannedTest.java | 42 private int mExpect; field in SpannedTest 139 mExpect = 0; in checkPriority() 154 mExpect = 4; in checkPriority() 156 assertEquals(mExpect, 0); in checkPriority() 162 mExpect = 4; in checkPriority2() 164 assertEquals(mExpect, 0); in checkPriority2() 182 if (mExpect != 0) { in onSpanAdded() 183 assertEquals(mSequence, mExpect); in onSpanAdded() 184 mExpect = mSequence - 1; in onSpanAdded() 193 if (mExpect != 0) { in onTextChanged() [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/ |
D | AsyncUserVisibilityListener.java | 47 private final Expect mExpect; field in AsyncUserVisibilityListener 61 mExpect = expect; in AsyncUserVisibilityListener() 92 mExpect.withMessage("received events").that(receivedEvents).isEmpty(); in verify() 101 mExpect.withMessage("received events").that(receivedEvents) in verify() 159 private final Expect mExpect; field in AsyncUserVisibilityListener.Factory 163 mExpect = expect; in Factory() 171 return new AsyncUserVisibilityListener(mExpect, mExpectedReceiverThread, in forEvents() 179 return new AsyncUserVisibilityListener(mExpect, mExpectedReceiverThread, in forNoEvents()
|
D | UserVisibilityMediatorTestCase.java | 135 mListenerFactory = new AsyncUserVisibilityListener.Factory(mExpect, thread); in setFixtures()
|
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/devicestate/ |
D | DeviceStateRotationLockSettingsManagerTest.java | 51 @Rule public Expect mExpect = Expect.create(); field in DeviceStateRotationLockSettingsManagerTest 158 mExpect.that(manager.getRotationLockSetting(0)).isEqualTo(1); in persistedInvalidIgnoredState_returnsDefaults() 159 mExpect.that(manager.getRotationLockSetting(1)).isEqualTo(2); in persistedInvalidIgnoredState_returnsDefaults() 160 mExpect.that(manager.getRotationLockSetting(2)).isEqualTo(2); in persistedInvalidIgnoredState_returnsDefaults() 172 mExpect.that(manager.getRotationLockSetting(0)).isEqualTo(2); in persistedValidValues_returnsPersistedValues() 173 mExpect.that(manager.getRotationLockSetting(1)).isEqualTo(1); in persistedValidValues_returnsPersistedValues() 174 mExpect.that(manager.getRotationLockSetting(2)).isEqualTo(1); in persistedValidValues_returnsPersistedValues()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/hal2/ |
D | TunerSessionHidlTest.java | 104 public final Expect mExpect = Expect.create(); field in TunerSessionHidlTest 214 mExpect.withMessage("Session of index %s close state", index) in openSession_withMultipleSessions() 246 mExpect.withMessage("Session configuration").that(config) in getConfiguration() 256 mExpect.withMessage("Session mute state after setting unmuted") in setMuted_withUnmuted() 266 mExpect.withMessage("Session mute state after setting muted") in setMuted_withMuted() 276 mExpect.withMessage("Close state of broadcast radio service session") in close_withOneSession() 290 mExpect.withMessage( in close_withOnlyOneSession_withMultipleSessions() 294 mExpect.withMessage( in close_withOnlyOneSession_withMultipleSessions() 309 mExpect.withMessage("Close state of broadcast radio service session") in close_withOneSession_withError() 323 mExpect.withMessage("State of closing broadcast radio service session twice") in close_forMultipleTimes() [all …]
|
D | AnnouncementAggregatorHidlTest.java | 62 public final Expect mExpect = Expect.create(); field in AnnouncementAggregatorHidlTest 93 mExpect.withMessage("Exception for dead binder").that(thrown).hasMessageThat() in constructor_withBinderDied() 126 mExpect.withMessage("Number of announcements %s after %s announcements were updated", in onListUpdated_withMultipleModuleWatchers() 154 mExpect.withMessage("Exception for watching module after aggregator has been closed") in watchModule_afterClosed_throwsException()
|
/frameworks/base/core/tests/BroadcastRadioTests/src/com/android/server/broadcastradio/aidl/ |
D | RadioModuleTest.java | 57 public final Expect mExpect = Expect.create(); field in RadioModuleTest 86 mExpect.withMessage("Service of radio module") in getService() 92 mExpect.withMessage("Module properties of radio module") in getProperties() 102 mExpect.withMessage("Image from radio module").that(imageTest).isNull(); in getImage_withValidIdFromRadioModule() 113 mExpect.withMessage("Exception for getting image with invalid ID") in getImage_withInvalidIdFromRadioModule_throwsIllegalArgumentException() 133 mExpect.withMessage("Exception for adding announcement listener when HAL service died") in addAnnouncementListener_whenHalThrowsRemoteException()
|
D | AnnouncementAggregatorTest.java | 61 public final Expect mExpect = Expect.create(); field in AnnouncementAggregatorTest 91 mExpect.withMessage("Exception for dead binder").that(thrown).hasMessageThat() in constructor_withBinderDied() 124 mExpect.withMessage("Number of announcements %s after %s announcements were updated", in onListUpdated_withMultipleModuleWatchers() 152 mExpect.withMessage("Exception for watching module after aggregator has been closed") in watchModule_afterClosed_throwsException()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/media/projection/ |
D | MediaProjectionMetricsLoggerTest.java | 92 public Expect mExpect = Expect.create(); field in MediaProjectionMetricsLoggerTest 583 mExpect.that(mLogger.contentToRecordToTargetType(RECORD_CONTENT_DISPLAY)) in testContentToRecordToTargetType() 586 mExpect.that(mLogger.contentToRecordToTargetType(RECORD_CONTENT_TASK)) in testContentToRecordToTargetType() 589 mExpect.that(mLogger.contentToRecordToTargetType(2)) in testContentToRecordToTargetType() 592 mExpect.that(mLogger.contentToRecordToTargetType(-1)) in testContentToRecordToTargetType() 595 mExpect.that(mLogger.contentToRecordToTargetType(100)) in testContentToRecordToTargetType() 601 mExpect.that(mLogger.windowingModeToTargetWindowingMode(WINDOWING_MODE_FULLSCREEN)) in testWindowingModeToTargetWindowingMode() 604 mExpect.that(mLogger.windowingModeToTargetWindowingMode(WINDOWING_MODE_MULTI_WINDOW)) in testWindowingModeToTargetWindowingMode() 607 mExpect.that(mLogger.windowingModeToTargetWindowingMode(WINDOWING_MODE_FREEFORM)) in testWindowingModeToTargetWindowingMode() 610 mExpect.that(mLogger.windowingModeToTargetWindowingMode(WINDOWING_MODE_PINNED)) in testWindowingModeToTargetWindowingMode() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/jank/ |
D | CujTest.java | 72 public final Expect mExpect = Expect.create(); field in CujTest 78 mExpect.withMessage(formatSimple("Too long CUJ(%d) name: %s", cuj, getNameOfCuj(cuj))) in testCujNameLimit() 126 mExpect.withMessage( in testCujsMapToEnumsCorrectly() 130 mExpect.withMessage( in testCujsMapToEnumsCorrectly()
|
D | InteractionJankMonitorTest.java | 76 public final Expect mExpect = Expect.create(); field in InteractionJankMonitorTest
|
/frameworks/base/core/tests/coretests/src/com/android/internal/widget/ |
D | NotificationOptimizedLinearLayoutComparisonTest.java | 62 public final Expect mExpect = Expect.create(); field in NotificationOptimizedLinearLayoutComparisonTest 295 mExpect.withMessage( in assertLayoutsEqual() 298 mExpect.withMessage("MeasuredHeights are not equal. Test Case:" + testCase) in assertLayoutsEqual() 300 mExpect.withMessage("Left Positions are not equal. Test Case:" + testCase) in assertLayoutsEqual() 302 mExpect.withMessage("Top Positions are not equal. Test Case:" + testCase) in assertLayoutsEqual()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | LatencyTrackerTest.java | 62 public final Expect mExpect = Expect.create(); field in LatencyTrackerTest 102 mExpect in testCujsMapToEnumsCorrectly() 107 mExpect in testCujsMapToEnumsCorrectly()
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | WindowManagerServiceTests.java | 153 public Expect mExpect = Expect.create(); field in WindowManagerServiceTests 822 mExpect.that(wci.getToken()).isEqualTo(launchRootTask); in testGetTaskWindowContainerTokenForRecordingSession_validCookie() 823 mExpect.that(wci.getUid()).isEqualTo(uid); in testGetTaskWindowContainerTokenForRecordingSession_validCookie() 841 mExpect.that(wci.getToken()).isEqualTo(launchRootTask); in testGetTaskWindowContainerTokenForRecordingSession_validTaskId() 842 mExpect.that(wci.getUid()).isEqualTo(uid); in testGetTaskWindowContainerTokenForRecordingSession_validTaskId() 860 mExpect.that(wci.getToken()).isEqualTo(launchRootTask1); in testGetTaskWindowContainerTokenForRecordingSession_multipleCookies() 861 mExpect.that(wci.getUid()).isEqualTo(uid1); in testGetTaskWindowContainerTokenForRecordingSession_multipleCookies() 935 mExpect.that(session.getTokenToRecord()) in setContentRecordingSession_matchingTask_mutatesSessionWithWindowContainerInfo() 937 mExpect.that(session.getTargetUid()).isEqualTo(task.effectiveUid); in setContentRecordingSession_matchingTask_mutatesSessionWithWindowContainerInfo()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ScrimControllerTest.java | 115 @Rule public Expect mExpect = Expect.create(); field in ScrimControllerTest 1882 mExpect.that(mNotificationsScrim.getViewAlpha()).isEqualTo(notificationExpansionProgress); in notificationAlpha_qsNotClipped_alphaMatchesNotificationExpansionProgress() 1886 mExpect.that(mNotificationsScrim.getViewAlpha()).isEqualTo(notificationExpansionProgress); in notificationAlpha_qsNotClipped_alphaMatchesNotificationExpansionProgress() 1890 mExpect.that(mNotificationsScrim.getViewAlpha()).isEqualTo(notificationExpansionProgress); in notificationAlpha_qsNotClipped_alphaMatchesNotificationExpansionProgress() 1894 mExpect.that(mNotificationsScrim.getViewAlpha()).isEqualTo(notificationExpansionProgress); in notificationAlpha_qsNotClipped_alphaMatchesNotificationExpansionProgress() 1898 mExpect.that(mNotificationsScrim.getViewAlpha()).isEqualTo(notificationExpansionProgress); in notificationAlpha_qsNotClipped_alphaMatchesNotificationExpansionProgress()
|