/packages/apps/Dialer/java/com/android/dialer/smartdial/util/ |
D | SmartDialPrefix.java | 99 final ArrayList<String> result = new ArrayList<>(); in parseToIndexTokens() local 114 result.add(currentIndexToken.toString()); in parseToIndexTokens() 122 result.add(currentIndexToken.toString()); in parseToIndexTokens() 124 return result; in parseToIndexTokens() 135 final ArrayList<String> result = new ArrayList<>(); in generateNamePrefixes() local 150 result.add(fullNameToken.toString()); in generateNamePrefixes() 162 final int recursiveNameStart = result.size(); in generateNamePrefixes() 163 int recursiveNameEnd = result.size(); in generateNamePrefixes() 172 result.add(initial + fullNames.get(j)); in generateNamePrefixes() 175 result.add(initial + result.get(j)); in generateNamePrefixes() [all …]
|
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/ |
D | TetheringServiceTest.java | 164 void runTetheringCall(TestTetheringResult result) throws Exception; in runTetheringCall() argument 259 private void runTether(final TestTetheringResult result) throws Exception { in runTether() argument 260 mTetheringConnector.tether(TEST_IFACE_NAME, TEST_CALLER_PKG, TEST_ATTRIBUTION_TAG, result); in runTether() 263 verify(mTethering).legacyTether(TEST_IFACE_NAME, result); in runTether() 268 runAsNoPermission((result) -> { in testTether() argument 270 result); in testTether() 272 result.assertResult(TETHER_ERROR_NO_CHANGE_TETHERING_PERMISSION); in testTether() 276 runAsTetherPrivileged((result) -> { in testTether() argument 277 runTether(result); in testTether() 281 runAsWriteSettings((result) -> { in testTether() argument [all …]
|
/packages/providers/MediaProvider/pdf/framework/libs/pdfClient/ |
D | form_filing_click_test.cc | 78 FormWidgetInfo result = page_zero->GetFormWidgetInfo(kReadOnlyCheckboxDeviceCoords); in TEST() local 80 EXPECT_TRUE(result.FoundWidget()); in TEST() 81 EXPECT_EQ(FPDF_FORMFIELD_CHECKBOX, result.widget_type()); in TEST() 82 EXPECT_EQ(0, result.widget_index()); in TEST() 85 ASSERT_EQ(expected, result.widget_rect()); in TEST() 87 EXPECT_TRUE(result.read_only()); in TEST() 88 EXPECT_EQ("true", result.text_value()); in TEST() 89 EXPECT_FALSE(result.editable_text()); in TEST() 90 EXPECT_FALSE(result.multiselect()); in TEST() 91 EXPECT_FALSE(result.multi_line_text()); in TEST() [all …]
|
D | form_filing_textfield_test.cc | 98 FormWidgetInfo result = page_zero->GetFormWidgetInfo(kReadOnlyLocationDeviceCoords); in TEST() local 100 EXPECT_TRUE(result.FoundWidget()); in TEST() 101 EXPECT_EQ(FPDF_FORMFIELD_TEXTFIELD, result.widget_type()); in TEST() 102 EXPECT_EQ(0, result.widget_index()); in TEST() 105 ASSERT_EQ(expected, result.widget_rect()); in TEST() 107 EXPECT_TRUE(result.read_only()); in TEST() 108 EXPECT_EQ("Mountain Lion", result.text_value()); in TEST() 109 EXPECT_FALSE(result.editable_text()); in TEST() 110 EXPECT_FALSE(result.multiselect()); in TEST() 111 EXPECT_FALSE(result.multi_line_text()); in TEST() [all …]
|
D | form_filing_combo_test.cc | 95 FormWidgetInfo result = page_zero->GetFormWidgetInfo(kReadOnlyLocationDeviceCoords); in TEST() local 97 EXPECT_TRUE(result.FoundWidget()); in TEST() 98 EXPECT_EQ(FPDF_FORMFIELD_COMBOBOX, result.widget_type()); in TEST() 99 EXPECT_EQ(0, result.widget_index()); in TEST() 102 ASSERT_EQ(expected, result.widget_rect()); in TEST() 104 EXPECT_TRUE(result.read_only()); in TEST() 105 EXPECT_EQ("Frog", result.text_value()); in TEST() 106 EXPECT_FALSE(result.editable_text()); in TEST() 107 EXPECT_FALSE(result.multiselect()); in TEST() 108 EXPECT_FALSE(result.multi_line_text()); in TEST() [all …]
|
D | form_filing_listbox_test.cc | 82 FormWidgetInfo result = page_zero->GetFormWidgetInfo(kReadOnlyLocationDeviceCoords); in TEST() local 84 EXPECT_TRUE(result.FoundWidget()); in TEST() 85 EXPECT_EQ(FPDF_FORMFIELD_LISTBOX, result.widget_type()); in TEST() 86 EXPECT_EQ(0, result.widget_index()); in TEST() 89 ASSERT_EQ(expected, result.widget_rect()); in TEST() 91 EXPECT_TRUE(result.read_only()); in TEST() 92 EXPECT_TRUE(result.text_value().empty()); in TEST() 93 EXPECT_FALSE(result.editable_text()); in TEST() 94 EXPECT_FALSE(result.multiselect()); in TEST() 95 EXPECT_FALSE(result.multi_line_text()); in TEST() [all …]
|
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/ |
D | AnspImsPreferModePolicyBuilderTest.java | 57 String[] result = in testGetPolicyInMap_rove_in() local 62 Assert.assertEquals("Condition:WIFI_AVAILABLE", result[0]); in testGetPolicyInMap_rove_in() 64 result = in testGetPolicyInMap_rove_in() 69 Assert.assertEquals("Condition:WIFI_GOOD", result[0]); in testGetPolicyInMap_rove_in() 71 result = in testGetPolicyInMap_rove_in() 76 Assert.assertEquals("Condition:WIFI_GOOD", result[0]); in testGetPolicyInMap_rove_in() 78 result = in testGetPolicyInMap_rove_in() 83 Assert.assertEquals("Condition:WIFI_GOOD,CELLULAR_BAD", result[0]); in testGetPolicyInMap_rove_in() 85 result = in testGetPolicyInMap_rove_in() 90 Assert.assertEquals("Condition:WIFI_GOOD,CELLULAR_BAD", result[0]); in testGetPolicyInMap_rove_in() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/contentpreview/payloadtoggle/domain/update/ |
D | SelectionChangeCallbackImplTest.kt | 174 val result = testSubject.onSelectionChanged(targetIntent) in <lambda>() constant 175 assertWithMessage("Callback result should not be null").that(result).isNotNull() in <lambda>() 176 requireNotNull(result) in <lambda>() 178 .that(result.customActions.getOrThrow().map { it.icon to it.label }) in <lambda>() 182 assertThat(result.modifyShareAction).isEqualTo(Absent) in <lambda>() 183 assertThat(result.alternateIntents).isEqualTo(Absent) in <lambda>() 184 assertThat(result.callerTargets).isEqualTo(Absent) in <lambda>() 185 assertThat(result.refinementIntentSender).isEqualTo(Absent) in <lambda>() 186 assertThat(result.resultIntentSender).isEqualTo(Absent) in <lambda>() 187 assertThat(result.metadataText).isEqualTo(Absent) in <lambda>() [all …]
|
/packages/services/Car/cpp/watchdog/server/src/ |
D | OveruseConfigurationXmlHelper.cpp | 114 if (const auto result = readExactlyOneElement(kTagComponentType, rootElement); result.ok()) { in readComponentType() local 115 componentTypeElement = *result; in readComponentType() 117 return Error() << "Failed to read tag '" << kTagComponentType << "': " << result.error(); in readComponentType() 269 if (const auto result = readExactlyOneElement(kTagComponentLevelThresholds, rootElement); in readComponentLevelThresholds() local 270 result.ok()) { in readComponentLevelThresholds() 271 componentLevelThresholdElement = *result; in readComponentLevelThresholds() 274 << "': " << result.error(); in readComponentLevelThresholds() 278 if (const auto result = readPerStateBytes(componentLevelThresholdElement); result.ok()) { in readComponentLevelThresholds() local 279 thresholds.perStateWriteBytes = *result; in readComponentLevelThresholds() 282 << thresholds.name << "': " << result.error(); in readComponentLevelThresholds() [all …]
|
D | ServiceManager.cpp | 51 if (auto result = startWatchdogProcessService(mainLooper); !result.ok()) { in startServices() local 52 return result; in startServices() 55 if (auto result = mWatchdogServiceHelper->init(mWatchdogProcessService); !result.ok()) { in startServices() local 56 return Error() << "Failed to initialize watchdog service helper: " << result.error(); in startServices() 59 if (auto result = startPressureMonitor(); !result.ok()) { in startServices() local 60 ALOGE("%s", result.error().message().c_str()); in startServices() 63 if (auto result = startWatchdogPerfService(mWatchdogServiceHelper); !result.ok()) { in startServices() local 64 return result; in startServices() 66 if (auto result = packageInfoResolver->initWatchdogServiceHelper(mWatchdogServiceHelper); in startServices() local 67 !result.ok()) { in startServices() [all …]
|
/packages/services/Car/cpp/watchdog/stable_server/src/ |
D | OveruseConfigurationXmlHelper.cpp | 114 if (const auto result = readExactlyOneElement(kTagComponentType, rootElement); result.ok()) { in readComponentType() local 115 componentTypeElement = *result; in readComponentType() 117 return Error() << "Failed to read tag '" << kTagComponentType << "': " << result.error(); in readComponentType() 269 if (const auto result = readExactlyOneElement(kTagComponentLevelThresholds, rootElement); in readComponentLevelThresholds() local 270 result.ok()) { in readComponentLevelThresholds() 271 componentLevelThresholdElement = *result; in readComponentLevelThresholds() 274 << "': " << result.error(); in readComponentLevelThresholds() 278 if (const auto result = readPerStateBytes(componentLevelThresholdElement); result.ok()) { in readComponentLevelThresholds() local 279 thresholds.perStateWriteBytes = *result; in readComponentLevelThresholds() 282 << thresholds.name << "': " << result.error(); in readComponentLevelThresholds() [all …]
|
D | ServiceManager.cpp | 51 if (auto result = startWatchdogProcessService(mainLooper); !result.ok()) { in startServices() local 52 return result; in startServices() 55 if (auto result = mWatchdogServiceHelper->init(mWatchdogProcessService); !result.ok()) { in startServices() local 56 return Error() << "Failed to initialize watchdog service helper: " << result.error(); in startServices() 59 if (auto result = startPressureMonitor(); !result.ok()) { in startServices() local 60 ALOGE("%s", result.error().message().c_str()); in startServices() 63 if (auto result = startWatchdogPerfService(mWatchdogServiceHelper); !result.ok()) { in startServices() local 64 return result; in startServices() 66 if (auto result = packageInfoResolver->initWatchdogServiceHelper(mWatchdogServiceHelper); in startServices() local 67 !result.ok()) { in startServices() [all …]
|
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/ |
D | NfcProprietaryCapsTest.java | 44 NfcProprietaryCaps result = NfcProprietaryCaps.createFromByteArray(inputCaps); in testCreateFromByteArraySupportWithoutRfDeactivation() local 45 assertNotNull(result); in testCreateFromByteArraySupportWithoutRfDeactivation() 47 result.getPassiveObserveMode()); in testCreateFromByteArraySupportWithoutRfDeactivation() 48 assertTrue(result.isPollingFrameNotificationSupported()); in testCreateFromByteArraySupportWithoutRfDeactivation() 49 assertFalse(result.isPowerSavingModeSupported()); in testCreateFromByteArraySupportWithoutRfDeactivation() 50 assertTrue(result.isAutotransactPollingLoopFilterSupported()); in testCreateFromByteArraySupportWithoutRfDeactivation() 51 assertEquals(5, result.getNumberOfExitFramesSupported()); in testCreateFromByteArraySupportWithoutRfDeactivation() 64 NfcProprietaryCaps result = NfcProprietaryCaps.createFromByteArray(inputCaps); in testCreateFromByteArraySupportWithRfDeactivation() local 65 assertNotNull(result); in testCreateFromByteArraySupportWithRfDeactivation() 67 result.getPassiveObserveMode()); in testCreateFromByteArraySupportWithRfDeactivation() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/ui/viewmodel/ |
D | ChooserRequestTest.kt | 71 val result = readChooserRequest(model) in missingIntent() constant 73 assertThat(result).isInstanceOf(Invalid::class.java) in missingIntent() 74 result as Invalid<ChooserRequest> in missingIntent() 76 assertThat(result.errors) in missingIntent() 86 val result = readChooserRequest(model) in referrerFillIn() constant 88 assertThat(result).isInstanceOf(Valid::class.java) in referrerFillIn() 89 result as Valid<ChooserRequest> in referrerFillIn() 91 val fillIn = result.value.getReferrerFillInIntent() in referrerFillIn() 103 val result = readChooserRequest(model) in referrerPackage_isNullWithNonAppReferrer() constant 105 assertThat(result).isInstanceOf(Valid::class.java) in referrerPackage_isNullWithNonAppReferrer() [all …]
|
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/validation/ |
D | ValidationTest.kt | 29 val result: ValidationResult<String> = in required_valuePresent() constant 35 assertThat(result).isInstanceOf(Valid::class.java) in required_valuePresent() 36 result as Valid<String> in required_valuePresent() 38 assertThat(result.value).isEqualTo("return value: 1") in required_valuePresent() 39 assertThat(result.warnings).isEmpty() in required_valuePresent() 45 val result: ValidationResult<String> = in required_valueAbsent() constant 52 assertThat(result).isInstanceOf(Invalid::class.java) in required_valueAbsent() 53 result as Invalid<String> in required_valueAbsent() 55 assertThat(result.errors).containsExactly(NoValue("key", Importance.CRITICAL, Int::class)) in required_valueAbsent() 61 val result: ValidationResult<String> = in optional_valuePresent() constant [all …]
|
/packages/modules/Bluetooth/system/stack/avdt/ |
D | avdt_api.cc | 177 tAVDT_RESULT result = AVDT_SUCCESS; in AVDT_CreateStream() local 183 result = AVDT_BAD_PARAMS; in AVDT_CreateStream() 192 result = AVDT_NO_RESOURCES; in AVDT_CreateStream() 198 return static_cast<uint16_t>(result); in AVDT_CreateStream() 216 uint16_t result = AVDT_SUCCESS; in AVDT_RemoveStream() local 224 result = AVDT_BAD_HANDLE; in AVDT_RemoveStream() 230 if (result != AVDT_SUCCESS) { in AVDT_RemoveStream() 231 log::error("result={} avdt_handle={}", result, handle); in AVDT_RemoveStream() 234 return result; in AVDT_RemoveStream() 266 uint16_t result = AVDT_SUCCESS; in AVDT_DiscoverReq() local [all …]
|
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/jni/java/com/android/adservices/ |
D | HpkeJniTest.java | 39 byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_Success() 40 assertThat(result).isNotNull(); in testHpkeEncrypt_Success() 41 assertThat(result.length).isGreaterThan(0); in testHpkeEncrypt_Success() 46 byte[] result = HpkeJni.decrypt(sPrivateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_Success() 47 assertThat(result).isNotNull(); in testHpkeDecrypt_Success() 48 assertThat(result.length).isGreaterThan(0); in testHpkeDecrypt_Success() 49 assertThat(new String(result)).isEqualTo(new String(sPlaintext)); in testHpkeDecrypt_Success() 67 byte[] result = HpkeJni.encrypt(/* publicKey= */ null, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyNull_fail() 68 assertThat(result).isNull(); in testHpkeEncrypt_publicKeyNull_fail() 74 byte[] result = HpkeJni.encrypt(shortPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyShorterThan32_fail() [all …]
|
/packages/modules/OnDevicePersonalization/tests/commontests/src/com/android/odp/module/common/encryption/jni/ |
D | HpkeJniTest.java | 37 final byte[] result = HpkeJni.encrypt(sPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_Success() 38 Assert.assertNotNull(result); in testHpkeEncrypt_Success() 39 Assert.assertTrue(result.length > 0); in testHpkeEncrypt_Success() 44 final byte[] result = HpkeJni.decrypt(sPrivateKey, sCiphertext, sAssociatedData); in testHpkeDecrypt_Success() 45 Assert.assertNotNull(result); in testHpkeDecrypt_Success() 46 Assert.assertTrue(result.length > 0); in testHpkeDecrypt_Success() 47 Assert.assertTrue(new String(sPlaintext).equals(new String(result))); in testHpkeDecrypt_Success() 65 final byte[] result = HpkeJni.encrypt(/* publicKey= */ null, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyNull_fail() 66 Assert.assertNull(result); in testHpkeEncrypt_publicKeyNull_fail() 72 final byte[] result = HpkeJni.encrypt(shortPublicKey, sPlaintext, sAssociatedData); in testHpkeEncrypt_publicKeyShorterThan32_fail() [all …]
|
/packages/modules/Bluetooth/system/stack/test/fuzzers/avrc/ |
D | fuzz_avrc.cc | 20 static void free_avrc_response(tAVRC_RESPONSE& result) { in free_avrc_response() argument 22 switch (result.pdu) { in free_avrc_response() 37 osi_free_and_reset((void**)&result.get_cur_app_val.p_vals); in free_avrc_response() 44 for (int i = 0; i < result.get_app_attr_txt.num_attr; i++) { in free_avrc_response() 45 osi_free_and_reset((void**)&result.get_app_attr_txt.p_attrs[i].p_str); in free_avrc_response() 47 osi_free_and_reset((void**)&result.get_app_attr_txt.p_attrs); in free_avrc_response() 51 for (int i = 0; i < result.get_app_val_txt.num_attr; i++) { in free_avrc_response() 52 osi_free_and_reset((void**)&result.get_app_val_txt.p_attrs[i].p_str); in free_avrc_response() 54 osi_free_and_reset((void**)&result.get_app_val_txt.p_attrs); in free_avrc_response() 64 for (int i = 0; i < result.get_attrs.num_attrs; i++) { in free_avrc_response() [all …]
|
/packages/services/Telephony/tests/src/com/android/services/telephony/rcs/validator/ |
D | OutgoingTransportStateValidatorTest.java | 66 ValidationResult result = validator.validate(testMessage); in testVerifyMessageInOpenCloseState() local 67 assertFalse(result.isValidated); in testVerifyMessageInOpenCloseState() 69 result.restrictedReason); in testVerifyMessageInOpenCloseState() 73 result = validator.validate(testMessage); in testVerifyMessageInOpenCloseState() 74 assertTrue(result.isValidated); in testVerifyMessageInOpenCloseState() 77 result = validator.validate(testMessage); in testVerifyMessageInOpenCloseState() 78 assertFalse(result.isValidated); in testVerifyMessageInOpenCloseState() 80 result.restrictedReason); in testVerifyMessageInOpenCloseState() 107 ValidationResult result = validator.validate(generate200OkResponse("callId4")); in testVerifyMessageRestricted() local 108 assertTrue(result.isValidated); in testVerifyMessageRestricted() [all …]
|
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/handover/ |
D | HandoverDataParserTest.java | 83 NdefRecord result = HandoverDataParser.createCollisionRecord(); in testCreateCollisionRecord() local 84 assertNotNull(result); in testCreateCollisionRecord() 85 assertEquals(NdefRecord.TNF_WELL_KNOWN, result.getTnf()); in testCreateCollisionRecord() 120 NdefRecord result = mHandoverDataParser.createHandoverSelectRecord(alternateCarrier); in testCreateHandoverSelectRecord() local 121 byte[] payload = result.getPayload(); in testCreateHandoverSelectRecord() 122 assertNotNull(result); in testCreateHandoverSelectRecord() 140 BluetoothHandoverData result = mHandoverDataParser.parseNokia(payload); in testParseNokiaValidPayload() local 141 assertTrue(result.valid); in testParseNokiaValidPayload() 142 assertEquals(deviceName, result.name); in testParseNokiaValidPayload() 152 BluetoothHandoverData result = mHandoverDataParser.parseNokia(payload); in testParseNokiaWithInvalidBluetoothAddress() local [all …]
|
/packages/modules/Nfc/libnfc-nci/tests/src/ |
D | nfa_hci_api_test.cc | 34 tNFA_STATUS result = NFA_HciAddStaticPipe(invalid_handle, host, gate, pipe); in TEST_F() local 35 EXPECT_EQ(result, NFA_STATUS_FAILED); in TEST_F() 43 tNFA_STATUS result = NFA_HciAddStaticPipe(hci_handle, inactive_host, gate, pipe); in TEST_F() local 44 EXPECT_EQ(result, NFA_STATUS_FAILED); in TEST_F() 52 tNFA_STATUS result = NFA_HciAddStaticPipe(hci_handle, host, invalid_gate, pipe); in TEST_F() local 53 EXPECT_EQ(result, NFA_STATUS_FAILED); in TEST_F() 61 tNFA_STATUS result = NFA_HciAddStaticPipe(hci_handle, host, gate, invalid_pipe); in TEST_F() local 62 EXPECT_EQ(result, NFA_STATUS_FAILED); in TEST_F() 101 tNFA_STATUS result = NFA_HciAddStaticPipe(hci_handle, host, gate, pipe); in TEST_F() local 102 EXPECT_EQ(result, NFA_STATUS_FAILED); in TEST_F() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/helper/ |
D | QuerySimSlotIndexTest.java | 68 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_nullInput_getNoneNullEmptyList() local 70 assertThat(result.size()).isEqualTo(0); in allSimSlotIndexCall_nullInput_getNoneNullEmptyList() 80 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_oneSimAndActivePsim_getList() local 82 assertThat(result.size()).isEqualTo(1); in allSimSlotIndexCall_oneSimAndActivePsim_getList() 83 assertThat(result.get(0)).isEqualTo(0); in allSimSlotIndexCall_oneSimAndActivePsim_getList() 93 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_oneSimAndActiveEsim_getList() local 95 assertThat(result.size()).isEqualTo(1); in allSimSlotIndexCall_oneSimAndActiveEsim_getList() 96 assertThat(result.get(0)).isEqualTo(1); in allSimSlotIndexCall_oneSimAndActiveEsim_getList() 106 List<Integer> result = SelectableSubscriptions.atomicToList(mActiveSimSlotIndex.get()); in allSimSlotIndexCall_twoSimsAndActivePsimActiveEsim_getList() local 108 assertThat(result.size()).isEqualTo(2); in allSimSlotIndexCall_twoSimsAndActivePsimActiveEsim_getList() [all …]
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/ |
D | ThumbnailCacheTest.java | 74 Result result = mCache.getThumbnail(URI_1, USER_ID_0, MID_SIZE); in testMiss() local 76 assertMiss(result); in testMiss() 82 Result result = mCache.getThumbnail(URI_0, USER_ID_1, MID_SIZE); in testMiss_DifferentUser() local 83 assertMiss(result); in testMiss_DifferentUser() 90 Result result = mCache.getThumbnail(URI_0, USER_ID_0, MID_SIZE); in testHit_Exact() local 92 assertHitExact(result); in testHit_Exact() 93 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Exact() 100 Result result = mCache.getThumbnail(URI_0, USER_ID_0, LARGE_SIZE); in testHit_Smaller() local 102 assertHitSmaller(result); in testHit_Smaller() 103 assertSame(MIDSIZE_BITMAP, result.getThumbnail()); in testHit_Smaller() [all …]
|
/packages/apps/Car/RotaryController/tests/unit/src/com/android/car/rotary/ |
D | TreeTraverserTest.java | 122 AccessibilityNodeInfo result = mTreeTraverser.findNodeOrAncestor(mNode0, in testFindNodeOrAncestor() local 124 assertThat(result).isEqualTo(mNode0); in testFindNodeOrAncestor() 125 Utils.recycleNode(result); in testFindNodeOrAncestor() 128 result = mTreeTraverser.findNodeOrAncestor(mNode1, /* stopPredicate= */ null, in testFindNodeOrAncestor() 130 assertThat(result).isEqualTo(mNode0); in testFindNodeOrAncestor() 131 Utils.recycleNode(result); in testFindNodeOrAncestor() 134 result = mTreeTraverser.findNodeOrAncestor(mNode2, /* stopPredicate= */ null, in testFindNodeOrAncestor() 136 assertThat(result).isEqualTo(mNode0); in testFindNodeOrAncestor() 137 Utils.recycleNode(result); in testFindNodeOrAncestor() 140 result = mTreeTraverser.findNodeOrAncestor(mNode2, /* stopPredicate= */ null, in testFindNodeOrAncestor() [all …]
|