Home
last modified time | relevance | path

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

12345

/aosp14/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DInsetsSourceProviderTest.java71 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testPostLayout()
88 assertTrue(mProvider.getSource().getFrame().isEmpty()); in testPostLayout_invisible()
104 assertEquals(new Rect(10, 10, 20, 20), mProvider.getSource().getFrame()); in testPostLayout_frameProvider()
174 assertEquals(statusBar.getFrame(), mProvider.getSource().getFrame()); in testUpdateSourceFrame()
180 assertEquals(statusBar.getFrame(), mProvider.getSource().getFrame()); in testUpdateSourceFrame()
186 assertTrue(mProvider.getSource().getFrame().isEmpty()); in testUpdateSourceFrame()
191 assertEquals(statusBar.getFrame(), mProvider.getSource().getFrame()); in testUpdateSourceFrame()
250 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testInsetGeometries()
254 mProvider.getSource().calculateInsets(new Rect(0, -100, 500, 400), in testInsetGeometries()
260 mProvider.getSource().calculateInsets(new Rect(-100, 0, 400, 500), in testInsetGeometries()
H A DImeInsetsSourceProviderTest.java98 assertTrue(mImeProvider.getSource().isVisible()); in testSetFrozen()
104 assertTrue(mImeProvider.getSource().isVisible()); in testSetFrozen()
109 assertFalse(mImeProvider.getSource().isVisible()); in testSetFrozen()
H A DInsetsPolicyTest.java255 final int statusBarId = statusBarProvider.getSource().getId(); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
260 final int navBarId = statusBarProvider.getSource().getId(); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
295 addStatusBar().getControllableInsetProvider().getSource().setVisible(false); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl()
325 addStatusBar().getControllableInsetProvider().getSource(); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
327 addNavigationBar().getControllableInsetProvider().getSource(); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
375 addStatusBar().getControllableInsetProvider().getSource().setVisible(false); in testShowTransientBars_abortsWhenControlTargetChanges()
376 addNavigationBar().getControllableInsetProvider().getSource().setVisible(false); in testShowTransientBars_abortsWhenControlTargetChanges()
399 final InsetsSource statusBarSource = statusBarProvider.getSource(); in testFakeControlTarget_overrideVisibilityReceivedByWindows()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DInsetsStateController.java155 (types & provider.getSource().getType()) != 0 in setForcedConsumingTypes()
238 types |= provider.getSource().getType(); in getFakeControllingTypes()
269 final @InsetsType int type = provider.getSource().getType(); in onBarControlTargetChanged()
289 ? mIdFakeControlTargetMap.get(provider.getSource().getId()) in onControlTargetChanged()
290 : mIdControlTargetMap.get(provider.getSource().getId()); in onControlTargetChanged()
334 mIdFakeControlTargetMap.remove(provider.getSource().getId()); in removeFromControlMaps()
336 mIdControlTargetMap.remove(provider.getSource().getId()); in removeFromControlMaps()
346 mIdFakeControlTargetMap.put(provider.getSource().getId(), target); in addToControlMaps()
348 mIdControlTargetMap.put(provider.getSource().getId(), target); in addToControlMaps()
430 provider.getSource().getType() == ime() in dumpDebug()
/aosp14/frameworks/base/core/java/android/view/
H A DVerifiedInputEvent.java107 public int getSource() { in getSource() method in VerifiedInputEvent
171 && getSource() == that.getSource() in equals()
181 _hash = 31 * _hash + getSource(); in hashCode()
H A DInputEventConsistencyVerifier.java183 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onInputEvent()
210 final int source = event.getSource(); in onKeyEvent()
271 final int source = event.getSource(); in onTrackballEvent()
347 final int source = event.getSource(); in onTouchEvent()
476 final int source = event.getSource(); in onGenericMotionEvent()
599 final int source = keyEvent.getSource(); in onUnhandledEvent()
609 } else if ((motionEvent.getSource() & InputDevice.SOURCE_CLASS_TRACKBALL) != 0) { in onUnhandledEvent()
H A DInputEvent.java77 public abstract int getSource(); in getSource() method in InputEvent
96 return (getSource() & source) == source; in isFromSource()
/aosp14/frameworks/base/services/core/java/com/android/server/hdmi/
H A DDeviceDiscoveryAction.java334 if (current.mLogicalAddress != cmd.getSource()) { in handleReportPhysicalAddress()
336 cmd.getSource()); in handleReportPhysicalAddress()
366 if (current.mLogicalAddress != cmd.getSource()) {
368 cmd.getSource());
389 if (current.mLogicalAddress != cmd.getSource()) {
391 cmd.getSource());
409 if (current.mLogicalAddress != cmd.getSource()) {
411 + cmd.getSource());
H A DOneTouchRecordAction.java80 if (mState != STATE_WAITING_FOR_RECORD_STATUS || mRecorderAddress != cmd.getSource()) { in processCommand()
93 if (cmd.getSource() != mRecorderAddress) { in handleRecordStatus()
99 Slog.i(TAG, "Got record status:" + recordStatus + " from " + cmd.getSource()); in handleRecordStatus()
H A DHdmiCecNetwork.java545 int sourceAddress = message.getSource(); in handleCecMessage()
587 HdmiDeviceInfo currentDeviceInfo = getCecDeviceInfo(message.getSource()); in handleReportFeatures()
618 HdmiDeviceInfo currentDeviceInfo = getCecDeviceInfo(message.getSource()); in handleFeatureAbort()
637 updateDeviceCecVersion(message.getSource(), version); in handleCecVersion()
643 int logicalAddress = message.getSource(); in handleReportPhysicalAddress()
667 updateDevicePowerStatus(message.getSource(), newStatus); in handleReportPowerStatus()
670 updateDeviceCecVersion(message.getSource(), HdmiControlManager.HDMI_CEC_VERSION_2_0); in handleReportPowerStatus()
696 int logicalAddress = message.getSource(); in handleSetOsdName()
730 int logicalAddress = message.getSource(); in handleDeviceVendorId()
H A DDelayedMessageBuffer.java111 if (message.getSource() != address) { in processMessagesForDevice()
141 && message.getSource() == address) { in processActiveSource()
H A DHdmiCecLocalDeviceTv.java433 int logicalAddress = message.getSource(); in handleActiveSource()
462 if (getActiveSource().logicalAddress != message.getSource()) { in handleInactiveSource()
473 message.getSource()); in handleInactiveSource()
537 int address = message.getSource(); in handleReportPhysicalAddress()
1036 if (!canStartArcUpdateAction(message.getSource(), true)) { in handleInitiateArc()
1052 message.getSource(), true); in handleInitiateArc()
1087 message.getSource(), false); in handleTerminateArc()
1113 message.getSource(), systemAudioStatus, null); in handleSetSystemAudioMode()
1155 if (action.getRecorderAddress() != message.getSource()) { in handleRecordTvScreen()
1157 message.getSource(), in handleRecordTvScreen()
[all …]
H A DHdmiCecLocalDeviceSource.java215 int logicalAddress = message.getSource(); in handleActiveSource()
233 maySendActiveSource(message.getSource()); in handleRequestActiveSource()
367 physicalAddress, getDeviceInfo().getDeviceType(), message.getSource(), caller); in setAndBroadcastActiveSource()
H A DHdmiCecLocalDevice.java456 message.getDestination(), message.getSource(), version); in handleGetCecVersion()
510 buildAndSendSetOsdName(message.getSource()); in handleGiveOsdName()
552 int address = message.getSource(); in handleReportPhysicalAddress()
881 message.getSource(), in handleGiveDevicePowerStatus()
892 message.getSource(), in handleMenuRequest()
906 message.getSource(), in handleVendorCommand()
922 || message.getSource() == Constants.ADDR_UNREGISTERED) { in handleVendorCommandWithId()
925 mDeviceType, message.getSource(), message.getDestination(), params, true)) { in handleVendorCommandWithId()
H A DHdmiCecMessageCache.java90 int source = message.getSource(); in cacheMessage()
H A DHdmiCecMessage.java95 return this.mSource == that.getSource() in equals()
119 public int getSource() { in getSource() method in HdmiCecMessage
H A DHdmiCecLocalDeviceAudioSystem.java340 int logicalAddress = message.getSource(); in handleActiveSource()
404 reportAudioStatus(message.getSource()); in handleGiveAudioStatus()
421 && message.getSource() == Constants.ADDR_TV in handleGiveSystemAudioModeStatus()
428 message.getSource(), in handleGiveSystemAudioModeStatus()
519 getDeviceInfo().getLogicalAddress(), message.getSource(), sadBytes)); in handleRequestShortAudioDescriptor()
799 if (message.getSource() != Constants.ADDR_TV) { in handleSystemAudioModeRequest()
1311 message.getSource(), mService.getPhysicalAddress(), in handleRoutingChangeAndInformationForSwitch()
/aosp14/frameworks/base/services/core/java/com/android/server/input/
H A DInputShellCommand.java190 private int getSource(int inputSource, int defaultSource) { in getSource() method in InputShellCommand
290 inputSource = getSource(inputSource, InputDevice.SOURCE_KEYBOARD); in runText()
321 if (source != e.getSource()) { in sendText()
376 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runTap()
389 inputSource = getSource(inputSource, InputDevice.SOURCE_TRACKBALL); in runPress()
394 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runSwipe()
431 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runDragAndDrop()
436 inputSource = getSource(inputSource, InputDevice.SOURCE_TRACKBALL); in runRoll()
471 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runMotionEvent()
/aosp14/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
H A DScreenshotRequestTest.java60 assertEquals(SCREENSHOT_OTHER, out.getSource()); in testSimpleScreenshot()
88 assertEquals(SCREENSHOT_OTHER, out.getSource()); in testProvidedScreenshot()
125 assertEquals(SCREENSHOT_OTHER, out.getSource()); in testFullScreenshot_withBitmap()
/aosp14/frameworks/base/location/java/android/location/
H A DCountry.java164 public int getSource() { in getSource() method in Country
215 return mCountryIso.equals(c.getCountryIso()) && mSource == c.getSource(); in equals()
/aosp14/frameworks/base/core/java/android/text/style/
H A DImageSpan.java266 public String getSource() { in getSource() method in ImageSpan
274 + ", source='" + getSource() + '\'' in toString()
/aosp14/frameworks/base/tests/Input/src/com/android/test/input/
H A DInputDeviceTest.java39 assertEquals(range.getSource(), outRange.getSource()); in assertMotionRangeEquals()
/aosp14/frameworks/base/tests/testables/src/android/testing/
H A DTestableLooper.java361 throw e.getSource(); in invokeExplosively()
366 throw ((LooperException) re.getCause()).getSource(); in invokeExplosively()
407 public Throwable getSource() { in getSource() method in TestableLooper.LooperFrameworkMethod.LooperException
/aosp14/frameworks/base/services/core/java/com/android/server/location/countrydetector/
H A DComprehensiveCountryDetector.java320 "(source: " + detectedCountry.getSource() in runAfterDetection()
329 || detectedCountry.getSource() > Country.COUNTRY_SOURCE_LOCATION) in runAfterDetection()
341 || detectedCountry.getSource() >= Country.COUNTRY_SOURCE_LOCATION) { in runAfterDetection()
/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityRecord.java189 public @Nullable AccessibilityNodeInfo getSource() { in getSource() method in AccessibilityRecord
190 return getSource(GET_SOURCE_PREFETCH_FLAGS); in getSource()
202 public AccessibilityNodeInfo getSource( in getSource() method in AccessibilityRecord

12345