Home
last modified time | relevance | path

Searched refs:isEqualTo (Results 1 – 25 of 2074) sorted by relevance

12345678910>>...83

/packages/modules/StatsD/framework/test/unittests/src/android/util/
DStatsEventTest.java48 assertThat(statsEvent.getAtomId()).isEqualTo(expectedAtomId); in testNoFields()
54 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_OBJECT); in testNoFields()
57 .that(buffer.get()).isEqualTo(3); in testNoFields()
60 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_LONG); in testNoFields()
66 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_INT); in testNoFields()
69 .that(buffer.getInt()).isEqualTo(expectedAtomId); in testNoFields()
72 .that(buffer.get()).isEqualTo(StatsEvent.TYPE_ERRORS); in testNoFields()
77 .that(errorMask).isEqualTo(StatsEvent.ERROR_NO_ATOM_ID); in testNoFields()
79 assertThat(statsEvent.getNumBytes()).isEqualTo(buffer.position()); in testNoFields()
95 assertThat(statsEvent.getAtomId()).isEqualTo(expectedAtomId); in testOnlyAtomId()
[all …]
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/fastpair/
DPreferencesTest.java64 assertThat(prefs.getGattOperationTimeoutSeconds()).isEqualTo(FIRST_INT); in testGattOperationTimeoutSeconds()
66 .isEqualTo(FIRST_INT); in testGattOperationTimeoutSeconds()
70 assertThat(prefs2.getGattOperationTimeoutSeconds()).isEqualTo(SECOND_INT); in testGattOperationTimeoutSeconds()
78 assertThat(prefs.getGattConnectionTimeoutSeconds()).isEqualTo(FIRST_INT); in testGattConnectionTimeoutSeconds()
80 .isEqualTo(FIRST_INT); in testGattConnectionTimeoutSeconds()
84 assertThat(prefs2.getGattConnectionTimeoutSeconds()).isEqualTo(SECOND_INT); in testGattConnectionTimeoutSeconds()
92 assertThat(prefs.getBluetoothToggleTimeoutSeconds()).isEqualTo(FIRST_INT); in testBluetoothToggleTimeoutSeconds()
94 .isEqualTo(FIRST_INT); in testBluetoothToggleTimeoutSeconds()
98 assertThat(prefs2.getBluetoothToggleTimeoutSeconds()).isEqualTo(SECOND_INT); in testBluetoothToggleTimeoutSeconds()
106 assertThat(prefs.getBluetoothToggleSleepSeconds()).isEqualTo(FIRST_INT); in testBluetoothToggleSleepSeconds()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/stats/
DAppSearchStatsTest.java50 assertThat(cStats.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testAppSearchStats_CallStats()
51 assertThat(cStats.getDatabase()).isEqualTo(TEST_DATA_BASE); in testAppSearchStats_CallStats()
52 assertThat(cStats.getStatusCode()).isEqualTo(TEST_STATUS_CODE); in testAppSearchStats_CallStats()
53 assertThat(cStats.getTotalLatencyMillis()).isEqualTo(TEST_TOTAL_LATENCY_MILLIS); in testAppSearchStats_CallStats()
55 .isEqualTo(estimatedBinderLatencyMillis); in testAppSearchStats_CallStats()
56 assertThat(cStats.getCallType()).isEqualTo(callType); in testAppSearchStats_CallStats()
57 assertThat(cStats.getNumOperationsSucceeded()).isEqualTo(numOperationsSucceeded); in testAppSearchStats_CallStats()
58 assertThat(cStats.getNumOperationsFailed()).isEqualTo(numOperationsFailed); in testAppSearchStats_CallStats()
71 assertThat(cStats.getCallType()).isEqualTo(callType); in testAppSearchCallStats_nullValues()
100 assertThat(pStats.getPackageName()).isEqualTo(TEST_PACKAGE_NAME); in testAppSearchStats_PutDocumentStats()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/notification/zen/
DZenPrioritySendersHelperTest.java215 assertThat(endState[0]).isEqualTo(SOURCE_NONE); in testKeyToSettingEndState_messagesCheck()
216 assertThat(endState[1]).isEqualTo(CONVERSATION_SENDERS_NONE); in testKeyToSettingEndState_messagesCheck()
220 assertThat(endState[0]).isEqualTo(PRIORITY_SENDERS_ANY); in testKeyToSettingEndState_messagesCheck()
221 assertThat(endState[1]).isEqualTo(CONVERSATION_SENDERS_ANYONE); in testKeyToSettingEndState_messagesCheck()
225 assertThat(endState[0]).isEqualTo(PRIORITY_SENDERS_STARRED); in testKeyToSettingEndState_messagesCheck()
226 assertThat(endState[1]).isEqualTo(UNKNOWN); in testKeyToSettingEndState_messagesCheck()
229 assertThat(endState[0]).isEqualTo(PRIORITY_SENDERS_CONTACTS); in testKeyToSettingEndState_messagesCheck()
230 assertThat(endState[1]).isEqualTo(UNKNOWN); in testKeyToSettingEndState_messagesCheck()
234 assertThat(endState[0]).isEqualTo(UNKNOWN); in testKeyToSettingEndState_messagesCheck()
235 assertThat(endState[1]).isEqualTo(CONVERSATION_SENDERS_IMPORTANT); in testKeyToSettingEndState_messagesCheck()
[all …]
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DRssiCurveTest.java36 assertThat(curve.lookupScore(-200)).isEqualTo(10); in lookupScore_constantCurve()
37 assertThat(curve.lookupScore(-100)).isEqualTo(10); in lookupScore_constantCurve()
38 assertThat(curve.lookupScore(0)).isEqualTo(10); in lookupScore_constantCurve()
39 assertThat(curve.lookupScore(100)).isEqualTo(10); in lookupScore_constantCurve()
40 assertThat(curve.lookupScore(200)).isEqualTo(10); in lookupScore_constantCurve()
47 assertThat(curve.lookupScore(-200)).isEqualTo(-10); in lookupScore_changingCurve()
48 assertThat(curve.lookupScore(-100)).isEqualTo(-10); in lookupScore_changingCurve()
49 assertThat(curve.lookupScore(-50)).isEqualTo(-10); in lookupScore_changingCurve()
50 assertThat(curve.lookupScore(0)).isEqualTo(10); in lookupScore_changingCurve()
51 assertThat(curve.lookupScore(50)).isEqualTo(10); in lookupScore_changingCurve()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/audio_util/
DAvrcpPassthroughTest.java19 .isEqualTo(KeyEvent.KEYCODE_DPAD_UP); in toKeyCode()
21 .isEqualTo(KeyEvent.KEYCODE_DPAD_DOWN); in toKeyCode()
23 .isEqualTo(KeyEvent.KEYCODE_DPAD_LEFT); in toKeyCode()
25 .isEqualTo(KeyEvent.KEYCODE_DPAD_RIGHT); in toKeyCode()
27 .isEqualTo(KeyEvent.KEYCODE_DPAD_UP_RIGHT); in toKeyCode()
29 .isEqualTo(KeyEvent.KEYCODE_DPAD_DOWN_RIGHT); in toKeyCode()
31 .isEqualTo(KeyEvent.KEYCODE_DPAD_UP_LEFT); in toKeyCode()
33 .isEqualTo(KeyEvent.KEYCODE_DPAD_DOWN_LEFT); in toKeyCode()
35 .isEqualTo(KeyEvent.KEYCODE_NUMPAD_0); in toKeyCode()
37 .isEqualTo(KeyEvent.KEYCODE_NUMPAD_1); in toKeyCode()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/map/
DFilterInfoTest.java66 assertThat(mFilterInfo.mMessageColId).isEqualTo(0); in setMessageColumns()
67 assertThat(mFilterInfo.mMessageColDate).isEqualTo(1); in setMessageColumns()
68 assertThat(mFilterInfo.mMessageColSubject).isEqualTo(2); in setMessageColumns()
69 assertThat(mFilterInfo.mMessageColFolder).isEqualTo(3); in setMessageColumns()
70 assertThat(mFilterInfo.mMessageColRead).isEqualTo(4); in setMessageColumns()
71 assertThat(mFilterInfo.mMessageColSize).isEqualTo(5); in setMessageColumns()
72 assertThat(mFilterInfo.mMessageColFromAddress).isEqualTo(6); in setMessageColumns()
73 assertThat(mFilterInfo.mMessageColToAddress).isEqualTo(7); in setMessageColumns()
74 assertThat(mFilterInfo.mMessageColAttachment).isEqualTo(8); in setMessageColumns()
75 assertThat(mFilterInfo.mMessageColAttachmentSize).isEqualTo(9); in setMessageColumns()
[all …]
DBluetoothMapAppParamsTest.java122 assertThat(appParamsDecoded.getMaxListCount()).isEqualTo(TEST_MAX_LIST_COUNT); in encodeToBuffer_thenDecode()
123 assertThat(appParamsDecoded.getStartOffset()).isEqualTo(TEST_START_OFFSET); in encodeToBuffer_thenDecode()
124 assertThat(appParamsDecoded.getFilterMessageType()).isEqualTo(TEST_FILTER_MESSAGE_TYPE); in encodeToBuffer_thenDecode()
125 assertThat(appParamsDecoded.getFilterPeriodBegin()).isEqualTo(TEST_FILTER_PERIOD_BEGIN); in encodeToBuffer_thenDecode()
126 assertThat(appParamsDecoded.getFilterPeriodEnd()).isEqualTo(TEST_FILTER_PERIOD_END); in encodeToBuffer_thenDecode()
127 assertThat(appParamsDecoded.getFilterReadStatus()).isEqualTo(TEST_FILTER_READ_STATUS); in encodeToBuffer_thenDecode()
128 assertThat(appParamsDecoded.getFilterRecipient()).isEqualTo(TEST_FILTER_RECIPIENT); in encodeToBuffer_thenDecode()
129 assertThat(appParamsDecoded.getFilterOriginator()).isEqualTo(TEST_FILTER_ORIGINATOR); in encodeToBuffer_thenDecode()
130 assertThat(appParamsDecoded.getFilterPriority()).isEqualTo(TEST_FILTER_PRIORITY); in encodeToBuffer_thenDecode()
131 assertThat(appParamsDecoded.getAttachment()).isEqualTo(TEST_ATTACHMENT); in encodeToBuffer_thenDecode()
[all …]
DBluetoothMapMessageListingElementTest.java100 assertThat(mMessageListingElement.getHandle()).isEqualTo(TEST_CP_HANDLE); in getters()
101 assertThat(mMessageListingElement.getSubject()).isEqualTo(TEST_SUBJECT); in getters()
102 assertThat(mMessageListingElement.getDateTime()).isEqualTo(TEST_DATE_TIME); in getters()
103 assertThat(mMessageListingElement.getDateTimeString()).isEqualTo( in getters()
105 assertThat(mMessageListingElement.getSenderName()).isEqualTo(TEST_SENDER_NAME); in getters()
106 assertThat(mMessageListingElement.getSenderAddressing()).isEqualTo(TEST_SENDER_ADDRESSING); in getters()
107 assertThat(mMessageListingElement.getReplyToAddressing()).isEqualTo( in getters()
109 assertThat(mMessageListingElement.getRecipientName()).isEqualTo(TEST_RECIPIENT_NAME); in getters()
110 assertThat(mMessageListingElement.getRecipientAddressing()).isEqualTo( in getters()
112 assertThat(mMessageListingElement.getType()).isEqualTo(TEST_TYPE); in getters()
[all …]
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/config/
DSafetySourceTest.kt38 assertThat(DYNAMIC_BAREBONE.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType()
39 assertThat(DYNAMIC_ALL_OPTIONAL.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType()
40 assertThat(DYNAMIC_HIDDEN.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType()
42 .isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType()
43 assertThat(DYNAMIC_DISABLED.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_DYNAMIC) in getType_returnsType()
44 assertThat(STATIC_BAREBONE.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_STATIC) in getType_returnsType()
45 assertThat(STATIC_ALL_OPTIONAL.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_STATIC) in getType_returnsType()
46 assertThat(ISSUE_ONLY_BAREBONE.type).isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY) in getType_returnsType()
48 .isEqualTo(SafetySource.SAFETY_SOURCE_TYPE_ISSUE_ONLY) in getType_returnsType()
53 assertThat(DYNAMIC_BAREBONE.id).isEqualTo(DYNAMIC_BAREBONE_ID) in getId_returnsId()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DUsageGraphTest.java73 assertThat(localPaths.size()).isEqualTo(3); in calculateLocalPaths_singlePath()
74 assertThat(localPaths.keyAt(0)).isEqualTo(0); in calculateLocalPaths_singlePath()
75 assertThat(localPaths.valueAt(0)).isEqualTo(0); in calculateLocalPaths_singlePath()
76 assertThat(localPaths.keyAt(1)).isEqualTo(1000); in calculateLocalPaths_singlePath()
77 assertThat(localPaths.valueAt(1)).isEqualTo(100); in calculateLocalPaths_singlePath()
78 assertThat(localPaths.keyAt(2)).isEqualTo(1001); in calculateLocalPaths_singlePath()
79 assertThat(localPaths.valueAt(2)).isEqualTo(-1); in calculateLocalPaths_singlePath()
96 assertThat(localPaths.size()).isEqualTo(6); in calculateLocalPaths_multiplePaths()
98 assertThat(localPaths.keyAt(0)).isEqualTo(0); in calculateLocalPaths_multiplePaths()
99 assertThat(localPaths.valueAt(0)).isEqualTo(0); in calculateLocalPaths_multiplePaths()
[all …]
/packages/modules/Wifi/framework/tests/src/android/net/wifi/
DSoftApConfigurationTest.java102 assertThat(original.getSsid()).isEqualTo(utf8Ssid); in testBasicSettings()
103 assertThat(original.getWifiSsid()).isEqualTo(WifiSsid.fromUtf8Text(utf8Ssid)); in testBasicSettings()
105 assertThat(original.getSecurityType()).isEqualTo(SoftApConfiguration.SECURITY_TYPE_OPEN); in testBasicSettings()
106 assertThat(original.getBand()).isEqualTo(SoftApConfiguration.BAND_2GHZ); in testBasicSettings()
107 assertThat(original.getChannel()).isEqualTo(0); in testBasicSettings()
108 assertThat(original.isHiddenSsid()).isEqualTo(false); in testBasicSettings()
109 assertThat(original.getMaxNumberOfClients()).isEqualTo(0); in testBasicSettings()
113 .isEqualTo(true); in testBasicSettings()
115 .isEqualTo(true); in testBasicSettings()
117 .isEqualTo(true); in testBasicSettings()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DHalPropValueTest.java89 assertThat(value.getTimestamp()).isEqualTo(TEST_TIMESTAMP); in testBuildFromHidlValue()
90 assertThat(value.getAreaId()).isEqualTo(TEST_AREA_ID); in testBuildFromHidlValue()
91 assertThat(value.getPropId()).isEqualTo(TEST_PROP); in testBuildFromHidlValue()
92 assertThat(value.getStatus()).isEqualTo(TEST_STATUS); in testBuildFromHidlValue()
93 assertThat(value.getInt32ValuesSize()).isEqualTo(1); in testBuildFromHidlValue()
94 assertThat(value.getInt32Value(0)).isEqualTo(TEST_INT32_VALUE); in testBuildFromHidlValue()
95 assertThat(value.getFloatValuesSize()).isEqualTo(1); in testBuildFromHidlValue()
96 assertThat(value.getFloatValue(0)).isEqualTo(TEST_FLOAT_VALUE); in testBuildFromHidlValue()
97 assertThat(value.getInt64ValuesSize()).isEqualTo(1); in testBuildFromHidlValue()
98 assertThat(value.getInt64Value(0)).isEqualTo(TEST_INT64_VALUE); in testBuildFromHidlValue()
[all …]
/packages/services/Car/packages/ScriptExecutor/tests/functional/src/com/android/car/scriptexecutortest/functional/
DScriptExecutorFunctionalTest.java143 assertThat(mListener.mInterimResult.size()).isEqualTo(1); in invokeScript_returnsResult()
144 assertThat(mListener.mInterimResult.getString("hello")).isEqualTo("world"); in invokeScript_returnsResult()
159 assertThat(mListener.mInterimResult.size()).isEqualTo(4); in invokeScript_allSupportedPrimitiveTypes()
160 assertThat(mListener.mInterimResult.getString("string")).isEqualTo("hello"); in invokeScript_allSupportedPrimitiveTypes()
161 assertThat(mListener.mInterimResult.getBoolean("boolean")).isEqualTo(true); in invokeScript_allSupportedPrimitiveTypes()
162 assertThat(mListener.mInterimResult.getLong("integer")).isEqualTo(1); in invokeScript_allSupportedPrimitiveTypes()
163 assertThat(mListener.mInterimResult.getDouble("number")).isEqualTo(1.1); in invokeScript_allSupportedPrimitiveTypes()
179 assertThat(mListener.mInterimResult.size()).isEqualTo(5); in invokeScript_supportsNestedTables()
183 assertThat(nestedBundle.getLong("x")).isEqualTo(10); in invokeScript_supportsNestedTables()
184 assertThat(nestedBundle.getLong("y")).isEqualTo(30); in invokeScript_supportsNestedTables()
[all …]
/packages/apps/Launcher3/quickstep/tests/src/com/android/quickstep/
DHotseatWidthCalculationTest.kt42 assertThat(dp.hotseatBarEndOffset).isEqualTo(510) in distribute_border_space_when_space_is_enough_portrait()
43 assertThat(dp.numShownHotseatIcons).isEqualTo(6) in distribute_border_space_when_space_is_enough_portrait()
44 assertThat(dp.hotseatBorderSpace).isEqualTo(70) in distribute_border_space_when_space_is_enough_portrait()
46 assertThat(dp.getHotseatLayoutPadding(context).left).isEqualTo(150) in distribute_border_space_when_space_is_enough_portrait()
47 assertThat(dp.getHotseatLayoutPadding(context).right).isEqualTo(580) in distribute_border_space_when_space_is_enough_portrait()
50 assertThat(dp.hotseatQsbWidth).isEqualTo(1445) in distribute_border_space_when_space_is_enough_portrait()
64 assertThat(dp.hotseatBarEndOffset).isEqualTo(510) in decrease_num_of_icons_when_not_enough_space_portrait()
65 assertThat(dp.numShownHotseatIcons).isEqualTo(4) in decrease_num_of_icons_when_not_enough_space_portrait()
66 assertThat(dp.hotseatBorderSpace).isEqualTo(40) in decrease_num_of_icons_when_not_enough_space_portrait()
68 assertThat(dp.getHotseatLayoutPadding(context).left).isEqualTo(150) in decrease_num_of_icons_when_not_enough_space_portrait()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/nonquickstep/
DHotseatWidthCalculationTest.kt42 assertThat(dp.hotseatBarEndOffset).isEqualTo(0) in distribute_border_space_when_space_is_enough_portrait()
43 assertThat(dp.numShownHotseatIcons).isEqualTo(6) in distribute_border_space_when_space_is_enough_portrait()
44 assertThat(dp.hotseatBorderSpace).isEqualTo(145) in distribute_border_space_when_space_is_enough_portrait()
46 assertThat(dp.getHotseatLayoutPadding(context).left).isEqualTo(177) in distribute_border_space_when_space_is_enough_portrait()
47 assertThat(dp.getHotseatLayoutPadding(context).right).isEqualTo(177) in distribute_border_space_when_space_is_enough_portrait()
50 assertThat(dp.hotseatQsbWidth).isEqualTo(1445) in distribute_border_space_when_space_is_enough_portrait()
64 assertThat(dp.hotseatBarEndOffset).isEqualTo(0) in decrease_num_of_icons_when_not_enough_space_portrait()
65 assertThat(dp.numShownHotseatIcons).isEqualTo(6) in decrease_num_of_icons_when_not_enough_space_portrait()
66 assertThat(dp.hotseatBorderSpace).isEqualTo(72) in decrease_num_of_icons_when_not_enough_space_portrait()
68 assertThat(dp.getHotseatLayoutPadding(context).left).isEqualTo(110) in decrease_num_of_icons_when_not_enough_space_portrait()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java88 assertThat(wearInformation.lifetimeEstimateA).isEqualTo(40); in testEMmcWearInformationProvider()
90 .isEqualTo(WearInformation.UNKNOWN_LIFETIME_ESTIMATE); in testEMmcWearInformationProvider()
92 .isEqualTo(WearInformation.PRE_EOL_INFO_NORMAL); in testEMmcWearInformationProvider()
113 assertThat(wearInformation.lifetimeEstimateB).isEqualTo(90); in testUfsWearInformationProvider()
114 assertThat(wearInformation.preEolInfo).isEqualTo(WearInformation.PRE_EOL_INFO_WARNING); in testUfsWearInformationProvider()
116 .isEqualTo(WearInformation.UNKNOWN_LIFETIME_ESTIMATE); in testUfsWearInformationProvider()
142 assertThat(wearInformation.lifetimeEstimateA).isEqualTo(20); in testHealthServiceWearInformationProvider()
143 assertThat(wearInformation.lifetimeEstimateB).isEqualTo(storageInfo.lifetimeB); in testHealthServiceWearInformationProvider()
144 assertThat(wearInformation.preEolInfo).isEqualTo(storageInfo.eol); in testHealthServiceWearInformationProvider()
155 assertThat(wearEstimate1).isEqualTo(wearEstimate1); in testWearEstimateEquality()
[all …]
/packages/modules/AppSearch/testing/servicestests/src/com/android/server/appsearch/external/localstorage/
DAppSearchLoggerTest.java129 assertThat(iStats.getNativeLatencyMillis()).isEqualTo(nativeLatencyMillis); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
131 .isEqualTo(nativeDocumentStoreRecoveryCause); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
132 assertThat(iStats.getIndexRestorationCause()).isEqualTo(nativeIndexRestorationCause); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
133 assertThat(iStats.getSchemaStoreRecoveryCause()).isEqualTo(nativeSchemaStoreRecoveryCause); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
135 .isEqualTo(nativeDocumentStoreRecoveryLatencyMillis); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
137 .isEqualTo(nativeIndexRestorationLatencyMillis); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
139 .isEqualTo(nativeSchemaStoreRecoveryLatencyMillis); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
140 assertThat(iStats.getDocumentStoreDataStatus()).isEqualTo(nativeDocumentStoreDataStatus); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
141 assertThat(iStats.getDocumentCount()).isEqualTo(nativeNumDocuments); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
142 assertThat(iStats.getSchemaTypeCount()).isEqualTo(nativeNumSchemaTypes); in testAppSearchLoggerHelper_testCopyNativeStats_initialize()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DArrayUtilsTest.java98 assertThat(ArrayUtils.size(list)).isEqualTo(2); in testIsEmptyAndSize()
104 assertThat(ArrayUtils.size(map)).isEqualTo(1); in testIsEmptyAndSize()
110 assertThat(ArrayUtils.size(array)).isEqualTo(2); in testIsEmptyAndSize()
140 assertThat(ArrayUtils.indexOf(array, 1)).isEqualTo(0); in testIndexOf()
141 assertThat(ArrayUtils.indexOf(array, 2)).isEqualTo(1); in testIndexOf()
142 assertThat(ArrayUtils.indexOf(array, 3)).isEqualTo(-1); in testIndexOf()
217 assertThat(ArrayUtils.total(array)).isEqualTo(0L); in testTotal()
220 assertThat(ArrayUtils.total(array)).isEqualTo(6L); in testTotal()
226 assertThat(ArrayUtils.convertToIntArray(list)).isEqualTo(new int[]{1, 2}); in testConverToIntArray()
237 assertThat(ArrayUtils.convertToLongArray(array)).isEqualTo(new long[]{1L, 2L}); in testConverToLongArray()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/graphicsdriver/
DGraphicsDriverAppPreferenceControllerTest.java108 assertThat(mController.getAvailabilityStatus()).isEqualTo(AVAILABLE); in getAvailability_developmentSettingsEnabledAndProductionDriverOn_available()
116 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailability_developmentSettingsDisabled_conditionallyUnavailable()
125 assertThat(mController.getAvailabilityStatus()).isEqualTo(CONDITIONALLY_UNAVAILABLE); in getAvailability_graphicsDriverOff_conditionallyUnavailable()
134 assertThat(mGroup.getPreferenceCount()).isEqualTo(2); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
135 assertThat(mGroup.getPreference(0).getKey()).isEqualTo(APP_1); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
136 assertThat(mGroup.getPreference(1).getKey()).isEqualTo(APP_3); in displayPreference_shouldAddTwoPreferencesAndSortAscendingly()
182 assertThat(preference.getKey()).isEqualTo(TEST_PKG_NAME); in createPreference_configDefault_shouldSetDefaultAttributes()
183 assertThat(preference.getTitle()).isEqualTo(TEST_APP_NAME); in createPreference_configDefault_shouldSetDefaultAttributes()
184 assertThat(preference.getDialogTitle()).isEqualTo(mDialogTitle); in createPreference_configDefault_shouldSetDefaultAttributes()
185 assertThat(preference.getEntries()).isEqualTo(mValueList); in createPreference_configDefault_shouldSetDefaultAttributes()
[all …]
/packages/apps/RemoteProvisioner/tests/hosttest/src/com/android/remoteprovisioner/hosttest/
DRemoteProvisionerStatsTests.java90 assertThat(attempt.getCause()).isEqualTo(Cause.OUT_OF_KEYS); in testGenerateKeyRkpOnly()
91 assertThat(attempt.getRemotelyProvisionedComponent()).isEqualTo("TEE_KEYMINT"); in testGenerateKeyRkpOnly()
93 assertThat(attempt.getEnablement()).isEqualTo(Enablement.ENABLED_RKP_ONLY); in testGenerateKeyRkpOnly()
95 assertThat(attempt.getStatus()).isEqualTo( in testGenerateKeyRkpOnly()
101 assertThat(timing.getRemotelyProvisionedComponent()).isEqualTo( in testGenerateKeyRkpOnly()
113 assertThat(network.getTransportType()).isEqualTo(timing.getTransportType()); in testGenerateKeyRkpOnly()
114 assertThat(network.getStatus()).isEqualTo(attempt.getStatus()); in testGenerateKeyRkpOnly()
115 assertThat(network.getHttpStatusError()).isEqualTo(200); in testGenerateKeyRkpOnly()
121 assertThat(attempt.getCause()).isEqualTo(Cause.KEY_CONSUMED); in testGenerateKeyRkpOnly()
122 assertThat(attempt.getRemotelyProvisionedComponent()).isEqualTo("TEE_KEYMINT"); in testGenerateKeyRkpOnly()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DVehicleGearTest.java31 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_UNKNOWN); in testMatchWithVehicleHal()
34 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_NEUTRAL); in testMatchWithVehicleHal()
37 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_REVERSE); in testMatchWithVehicleHal()
40 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_PARK); in testMatchWithVehicleHal()
43 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_DRIVE); in testMatchWithVehicleHal()
46 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_1); in testMatchWithVehicleHal()
49 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_2); in testMatchWithVehicleHal()
52 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_3); in testMatchWithVehicleHal()
55 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_4); in testMatchWithVehicleHal()
58 .isEqualTo(android.hardware.automotive.vehicle.VehicleGear.GEAR_5); in testMatchWithVehicleHal()
[all …]
/packages/apps/Settings/tests/unit/src/com/android/settings/slices/
DSliceDataTest.java61 assertThat(data.getKey()).isEqualTo(KEY); in testBuilder_buildsMatchingObject()
62 assertThat(data.getTitle()).isEqualTo(TITLE); in testBuilder_buildsMatchingObject()
63 assertThat(data.getSummary()).isEqualTo(SUMMARY); in testBuilder_buildsMatchingObject()
64 assertThat(data.getScreenTitle()).isEqualTo(SCREEN_TITLE); in testBuilder_buildsMatchingObject()
65 assertThat(data.getKeywords()).isEqualTo(KEYWORDS); in testBuilder_buildsMatchingObject()
66 assertThat(data.getIconResource()).isEqualTo(ICON); in testBuilder_buildsMatchingObject()
67 assertThat(data.getFragmentClassName()).isEqualTo(FRAGMENT_NAME); in testBuilder_buildsMatchingObject()
68 assertThat(data.getUri()).isEqualTo(URI); in testBuilder_buildsMatchingObject()
69 assertThat(data.getPreferenceController()).isEqualTo(PREF_CONTROLLER); in testBuilder_buildsMatchingObject()
70 assertThat(data.getSliceType()).isEqualTo(SLICE_TYPE); in testBuilder_buildsMatchingObject()
[all …]
/packages/apps/Launcher3/tests/src/com/android/launcher3/celllayout/
DCellPosMapperTest.java43 createInfo(0, 0, 0, CONTAINER_DESKTOP))).isEqualTo(new CellPos(0, 0, 0)); in testMapModelToPresenter_default()
45 createInfo(0, 0, 1, CONTAINER_DESKTOP))).isEqualTo(new CellPos(0, 0, 1)); in testMapModelToPresenter_default()
47 createInfo(5, 0, 1, CONTAINER_DESKTOP))).isEqualTo(new CellPos(5, 0, 1)); in testMapModelToPresenter_default()
49 createInfo(5, 0, 0, CONTAINER_DESKTOP))).isEqualTo(new CellPos(5, 0, 0)); in testMapModelToPresenter_default()
52 createInfo(0, 0, 0, CONTAINER_HOTSEAT))).isEqualTo(new CellPos(0, 0, 0)); in testMapModelToPresenter_default()
54 createInfo(0, 0, 1, CONTAINER_HOTSEAT))).isEqualTo(new CellPos(0, 0, 1)); in testMapModelToPresenter_default()
56 createInfo(5, 0, 1, CONTAINER_HOTSEAT))).isEqualTo(new CellPos(5, 0, 1)); in testMapModelToPresenter_default()
58 createInfo(5, 0, 0, CONTAINER_HOTSEAT))).isEqualTo(new CellPos(5, 0, 0)); in testMapModelToPresenter_default()
64 0, 0, 0, CONTAINER_DESKTOP)).isEqualTo(new CellPos(0, 0, 0)); in testMapPresenterToModel_default()
66 0, 0, 1, CONTAINER_DESKTOP)).isEqualTo(new CellPos(0, 0, 1)); in testMapPresenterToModel_default()
[all …]
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/a2dpsink/
DA2dpSinkStateMachineTest.java76 assertThat(mStateMachine.getDevice()).isEqualTo(mDevice); in setUp()
78 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in setUp()
108 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testConnectInDisconnected()
112 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTING); in testConnectInDisconnected()
117 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testDisconnectInDisconnected()
120 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testDisconnectInDisconnected()
125 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testAudioConfigChangedInDisconnected()
128 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testAudioConfigChangedInDisconnected()
134 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_DISCONNECTED); in testIncomingConnectedInDisconnected()
137 assertThat(mStateMachine.getState()).isEqualTo(BluetoothProfile.STATE_CONNECTED); in testIncomingConnectedInDisconnected()
[all …]

12345678910>>...83