Home
last modified time | relevance | path

Searched refs:getSource (Results 1 – 25 of 43) sorted by relevance

12

/cts/tests/location/location_none/src/android/location/cts/none/
DCountryTest.java52 assertEquals(Country.COUNTRY_SOURCE_NETWORK, country1.getSource()); in testGetSourceWithConstructor()
53 assertNotEquals(country1.getSource(), country2.getSource()); in testGetSourceWithConstructor()
54 assertEquals(Country.COUNTRY_SOURCE_NETWORK, country3.getSource()); in testGetSourceWithConstructor()
DCountryDetectorTest.java66 assertNotEquals(-1, countryCallback.getSource()); in testRegisterCountryDetectorCallback()
/cts/tests/tests/car/src/android/car/cts/
DCarMediaManagerTest.java83 private ComponentName getSource(int mode) { in getSource() method in CarMediaManagerTest
114 mSavedPlaybackSource = getSource(MEDIA_SOURCE_MODE_PLAYBACK); in setUp()
115 mSavedBrowseSource = getSource(MEDIA_SOURCE_MODE_BROWSE); in setUp()
163 assertThat(getSource(MEDIA_SOURCE_MODE_BROWSE)).isEqualTo(FAKE_1); in testDependentPlaybackConfig()
164 assertThat(getSource(MEDIA_SOURCE_MODE_PLAYBACK)).isEqualTo(FAKE_1); in testDependentPlaybackConfig()
168 assertThat(getSource(MEDIA_SOURCE_MODE_BROWSE)).isEqualTo(FAKE_2); in testDependentPlaybackConfig()
169 assertThat(getSource(MEDIA_SOURCE_MODE_PLAYBACK)).isEqualTo(FAKE_2); in testDependentPlaybackConfig()
193 assertThat(getSource(MEDIA_SOURCE_MODE_BROWSE)).isEqualTo(FAKE_1); in testIndependentPlaybackConfig()
194 assertThat(getSource(MEDIA_SOURCE_MODE_PLAYBACK)).isEqualTo(FAKE_0); in testIndependentPlaybackConfig()
198 assertThat(getSource(MEDIA_SOURCE_MODE_BROWSE)).isEqualTo(FAKE_1); in testIndependentPlaybackConfig()
[all …]
/cts/tests/tests/view/receivecontent/src/android/view/cts/receivecontent/
DContentInfoTest.java87 assertThat(split.first.getSource()).isEqualTo(SOURCE_CLIPBOARD); in testPartition_multipleItems()
90 assertThat(split.second.getSource()).isEqualTo(SOURCE_CLIPBOARD); in testPartition_multipleItems()
139 assertThat(copy.getSource()).isEqualTo(original.getSource()); in testBuilder_copy()
167 assertThat(copy.getSource()).isEqualTo(SOURCE_APP); in testBuilder_copyAndUpdate()
265 assertThat(fromParcel.getSource()).isEqualTo(SOURCE_AUTOFILL); in testParcel_withMinimalMetadata()
285 assertThat(fromParcel.getSource()).isEqualTo(original.getSource()); in testParcel_withAllMetadata()
/cts/tests/tests/text/src/android/text/style/cts/
DImageSpanTest.java101 assertNull(imageSpan.getSource()); in testGetSource()
105 assertEquals(source, imageSpan.getSource()); in testGetSource()
109 assertEquals(source, imageSpan.getSource()); in testGetSource()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DStubMotionInterceptingAccessibilityService.java83 if (motionEvent.getSource() == canarySource) { in setAndAwaitMotionEventSources()
115 if (motionEvent.getSource() == source) { in injectAndAwaitMotionEvent()
DAccessibilityViewTreeReportingTest.java323 assertTrue(awaitedEvent.getSource().isImportantForAccessibility());
362 if (event.getSource() != null) {
364 event.getSource().getViewIdResourceName(),
DAccessibilityWindowQueryTest.java231 assertNull(event.getSource().getWindow()); in testNoWindowsAccessIfFlagNotSet()
282 AccessibilityWindowInfo window = event.getSource().getWindow(); in testTraverseWindowFromEvent()
315 AccessibilityWindowInfo window = event.getSource().getWindow(); in testInteractWithAppWindow()
520 AccessibilityNodeInfo source = awaitedEvent.getSource(); in testGetEventSource()
/cts/tests/tests/media/audio/jni/
DAudioPlayer.h44 inline AudioSource* getSource() { in getSource() function
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/common/
DHdmiCecLogicalAddressTest.java59 assertThat(CecMessage.getSource(message).getDeviceType()).isEqualTo(deviceType); in cect_RebootLogicalAddress()
/cts/tests/tests/hardware/src/android/hardware/input/cts/tests/
DInputTestCase.java230 assertNotEquals(testCase + " (source)", InputDevice.SOURCE_CLASS_NONE, actual.getSource()); in assertSource()
231 assertTrue(testCase + " (source)", expected.isFromSource(actual.getSource())); in assertSource()
381 event.getSource(), event.getFlags()); in splitBatchedMotionEvent()
392 event.getSource(), event.getFlags()); in splitBatchedMotionEvent()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/audio/
DHdmiCecLogicalAddressTest.java67 assertThat(CecMessage.getSource(message)).isEqualTo(AUDIO_DEVICE); in cect_10_2_5_1_RebootLogicalAddress()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java322 assertEquals(keyEvent.getSource(), verified.getSource()); in compareKeys()
347 assertEquals(motionEvent.getSource(), verified.getSource()); in compareMotions()
DScrollFeedbackProviderTest.java84 runScrollScenarios(deviceId, motionRange.getSource(), motionRange.getAxis()); in testApisDontCrash_allExistingInputSourceAndAxesCombinations()
DViewUnbufferedTest.java160 assertEquals(sentEvent.getSource(), receivedEvent.mSource); in compareEvent()
259 Math.round(event.getX()), Math.round(event.getY()), event.getSource())); in receivedEvent()
DViewConfigurationTest.java173 int source = range.getSource(); in testFlingThresholds_forAllAvailableDevices()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/performance/
DCameraTestInstrumentation.java91 String source = metric.getSource(); in sendStatus()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DAccessibilityEventFilterUtils.java60 (event, expect) -> event.getSource() != null in filterForEventTypeWithResource()
61 && event.getSource().getViewIdResourceName().equals(expect)); in filterForEventTypeWithResource()
/cts/tests/tests/view/src/android/view/cts/input/
DInputDeviceViewBehaviorTest.java69 viewBehavior.shouldSmoothScroll(motionRange.getAxis(), motionRange.getSource()); in testShouldSmoothScroll_onValidAxisSourceCombo_throwsNoException()
DInputDeviceMultiDeviceKeyEventTest.java192 assertEquals("Source: " + log, expectedKeyEvent.getSource(), in assertReceivedKeyEvent()
193 receivedKeyEvent.getSource()); in assertReceivedKeyEvent()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInlineSuggestionInfoTest.java75 assertThat(info.getSource()).isEqualTo(InlineSuggestionInfo.SOURCE_AUTOFILL); in testInlineSuggestionInfoValues()
/cts/hostsidetests/hdmicec/src/android/hdmicec/cts/
DCecMessage.java117 public static LogicalAddress getSource(String message) { in getSource() method in CecMessage
/cts/tests/tests/graphics/src/android/graphics/cts/
DColorSpaceTest.java507 assertSame(ColorSpace.get(ColorSpace.Named.SRGB), connector.getSource()); in testConnect()
515 assertSame(connector.getDestination(), connector.getSource()); in testConnect()
522 assertSame(connector.getSource(), connector.getDestination()); in testConnect()
618 assertSame(connector.getSource(), connector.getDestination()); in testIdentityConnector()
/cts/tests/inputmethod/util/src/android/view/inputmethod/cts/util/
DTestUtils.java610 event.getSource(), event.getFlags()); in splitBatchedMotionEvent()
621 event.getSource(), event.getFlags()); in splitBatchedMotionEvent()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DCtsKeyEventUtil.java260 int source = event.getSource(); in sendKey()

12