Home
last modified time | relevance | path

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

12345678

/frameworks/base/core/tests/coretests/src/android/view/
DInsetsStateTest.java84 mState.getSource(ITYPE_STATUS_BAR).setFrame(new Rect(0, 0, 100, 100)); in testCalculateInsets()
85 mState.getSource(ITYPE_STATUS_BAR).setVisible(true); in testCalculateInsets()
86 mState.getSource(ITYPE_IME).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets()
87 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets()
102 mState.getSource(ITYPE_NAVIGATION_BAR).setFrame(new Rect(0, 200, 100, 300)); in testCalculateInsets_imeAndNav()
103 mState.getSource(ITYPE_NAVIGATION_BAR).setVisible(true); in testCalculateInsets_imeAndNav()
104 mState.getSource(ITYPE_IME).setFrame(new Rect(0, 100, 100, 300)); in testCalculateInsets_imeAndNav()
105 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets_imeAndNav()
119 mState.getSource(ITYPE_STATUS_BAR).setFrame(new Rect(0, 0, 100, 100)); in testCalculateInsets_navRightStatusTop()
120 mState.getSource(ITYPE_STATUS_BAR).setVisible(true); in testCalculateInsets_navRightStatusTop()
[all …]
DInsetsControllerTest.java155 mController.getState().getSource(ITYPE_STATUS_BAR).setFrame(new Rect(0, 0, 100, 10)); in setup()
156 mController.getState().getSource(ITYPE_NAVIGATION_BAR).setFrame( in setup()
158 mController.getState().getSource(ITYPE_IME).setFrame(new Rect(0, 50, 100, 100)); in setup()
454 assertFalse(mController.getState().getSource(ITYPE_STATUS_BAR).isVisible()); in testRestoreStartsAnimation()
462 assertTrue(mController.getState().getSource(ITYPE_STATUS_BAR).isVisible()); in testRestoreStartsAnimation()
469 assertFalse(mController.getState().getSource(ITYPE_STATUS_BAR).isVisible()); in testRestoreStartsAnimation()
480 assertFalse(mController.getState().getSource(ITYPE_IME).isVisible()); in testStartImeAnimationAfterGettingControl()
491 assertTrue(mController.getState().getSource(ITYPE_IME).isVisible()); in testStartImeAnimationAfterGettingControl()
501 assertFalse(mController.getState().getSource(ITYPE_IME).isVisible()); in testStartImeAnimationAfterGettingControl_imeLater()
512 assertTrue(mController.getState().getSource(ITYPE_IME).isVisible()); in testStartImeAnimationAfterGettingControl_imeLater()
[all …]
DKeyEventTest.java68 assertEquals(SOURCE, keyEvent.getSource()); in testObtain()
95 assertEquals(SOURCE, keyEvent.getSource()); in testObtainWithDisplayId()
182 assertEquals(key1.getSource(), key2.getSource()); in compareKeys()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowContainerInsetsSourceProviderTest.java69 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testPostLayout()
71 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout()
74 mProvider.getSource().calculateVisibleInsets(new Rect(0, 0, 500, 500))); in testPostLayout()
87 assertEquals(new Rect(0, 0, 500, 40), mProvider.getSource().getFrame()); in testPostLayout_givenInsets()
88 assertEquals(new Rect(0, 0, 500, 25), mProvider.getSource().getVisibleFrame()); in testPostLayout_givenInsets()
90 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout_givenInsets()
93 mProvider.getSource().calculateVisibleInsets(new Rect(0, 0, 500, 500))); in testPostLayout_givenInsets()
103 assertEquals(Insets.NONE, mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout_invisible()
118 assertEquals(new Rect(10, 10, 20, 20), mProvider.getSource().getFrame()); in testPostLayout_frameProvider()
238 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testInsetGeometries()
[all …]
DInsetsStateControllerTest.java142 app1.mAboveInsetsState.addSource(getController().getRawInsetsState().getSource(ITYPE_IME)); in testStripForDispatch_independentSources()
145 assertFalse(app2.getInsetsState().getSource(ITYPE_IME) in testStripForDispatch_independentSources()
147 assertTrue(app1.getInsetsState().getSource(ITYPE_IME) in testStripForDispatch_independentSources()
157 app.mAboveInsetsState.getSource(ITYPE_IME).setVisible(true); in testStripForDispatch_belowIme()
158 app.mAboveInsetsState.getSource(ITYPE_IME).setFrame(mImeWindow.getFrame()); in testStripForDispatch_belowIme()
161 assertTrue(app.getInsetsState().getSource(ITYPE_IME).isVisible()); in testStripForDispatch_belowIme()
172 assertFalse(app.getInsetsState().getSource(ITYPE_IME) in testStripForDispatch_aboveIme()
211 assertFalse(app.getInsetsState().getSource(ITYPE_IME) in testStripForDispatch_imeOrderChanged()
221 app.mAboveInsetsState.getSource(ITYPE_IME).setVisible(true); in testStripForDispatch_imeOrderChanged()
222 app.mAboveInsetsState.getSource(ITYPE_IME).setFrame(mImeWindow.getFrame()); in testStripForDispatch_imeOrderChanged()
[all …]
DWindowLayoutTests.java92 mState.getSource(ITYPE_STATUS_BAR).setFrame( in setUp()
94 mState.getSource(ITYPE_NAVIGATION_BAR).setFrame( in setUp()
121 mState.getSource(ITYPE_LEFT_DISPLAY_CUTOUT).setFrame( in addDisplayCutout()
123 mState.getSource(ITYPE_TOP_DISPLAY_CUTOUT).setFrame( in addDisplayCutout()
125 mState.getSource(ITYPE_RIGHT_DISPLAY_CUTOUT).setFrame( in addDisplayCutout()
127 mState.getSource(ITYPE_BOTTOM_DISPLAY_CUTOUT).setFrame( in addDisplayCutout()
270 mState.getSource(ITYPE_STATUS_BAR).setVisible(false); in fitInvisibleInsets()
271 mState.getSource(ITYPE_NAVIGATION_BAR).setVisible(false); in fitInvisibleInsets()
281 mState.getSource(ITYPE_STATUS_BAR).setVisible(false); in fitInvisibleInsetsIgnoringVisibility()
282 mState.getSource(ITYPE_NAVIGATION_BAR).setVisible(false); in fitInvisibleInsetsIgnoringVisibility()
[all …]
DInsetsPolicyTest.java276 .getSource(ITYPE_STATUS_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
278 .getSource(ITYPE_NAVIGATION_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
293 .getSource(ITYPE_STATUS_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
295 .getSource(ITYPE_NAVIGATION_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls()
302 .getControllableInsetProvider().getSource().setVisible(false); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl()
332 .getControllableInsetProvider().getSource(); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
334 .getControllableInsetProvider().getSource(); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
360 assertFalse(clientState.getSource(ITYPE_STATUS_BAR).isVisible()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
361 assertFalse(clientState.getSource(ITYPE_NAVIGATION_BAR).isVisible()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
363 assertTrue(state.getSource(ITYPE_STATUS_BAR).isVisible()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls()
[all …]
DDisplayPolicyLayoutTests.java166 assertEquals(new Rect(0, 0, 500, 100), statusBarProvider.getSource().getFrame()); in addingWindow_withInsetsTypes()
168 statusBarProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in addingWindow_withInsetsTypes()
172 assertEquals(new Rect(0, 0, 500, 100), topGesturesProvider.getSource().getFrame()); in addingWindow_withInsetsTypes()
174 topGesturesProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in addingWindow_withInsetsTypes()
179 assertNotEquals(new Rect(0, 0, 500, 100), navigationBarProvider.getSource().getFrame()); in addingWindow_withInsetsTypes()
199 assertEquals(new Rect(0, 0, 500, 100), provider.getSource().getFrame()); in addingWindow_InWindowTypeWithPredefinedInsets()
273 final Rect frame = mWindow.getInsetsState().getSource(ITYPE_STATUS_BAR).getFrame(); in testFixedRotationInsetsSourceFrame()
275 final Rect rotatedFrame = mWindow.getInsetsState().getSource(ITYPE_STATUS_BAR).getFrame(); in testFixedRotationInsetsSourceFrame()
/frameworks/compile/libbcc/include/bcc/
DScript.h67 return getSource().getCompilerVersion(); in getCompilerVersion()
114 inline Source &getSource() { return *mSource; } in getSource() function
115 inline const Source &getSource() const { return *mSource; } in getSource() function
/frameworks/av/media/libmediaplayerservice/nuplayer/
DStreamingSource.cpp195 sp<AnotherPacketSource> audioTrack = getSource(true /*audio*/); in haveSufficientDataOnAllTracks()
196 sp<AnotherPacketSource> videoTrack = getSource(false /*audio*/); in haveSufficientDataOnAllTracks()
226 sp<AnotherPacketSource> NuPlayer::StreamingSource::getSource(bool audio) { in getSource() function in android::NuPlayer::StreamingSource
231 sp<MediaSource> source = mTSParser->getSource( in getSource()
238 sp<AnotherPacketSource> source = getSource(audio); in getFormat()
260 sp<AnotherPacketSource> source = getSource(audio); in dequeueAccessUnit()
DRTSPSource.cpp166 sp<AnotherPacketSource> source = getSource(audio); in getFormatMeta()
217 sp<AnotherPacketSource> source = getSource(audio); in dequeueAccessUnit()
263 sp<AnotherPacketSource> NuPlayer::RTSPSource::getSource(bool audio) { in getSource() function in android::NuPlayer::RTSPSource
265 sp<MediaSource> source = mTSParser->getSource( in getSource()
429 sp<AnotherPacketSource> source = getSource(audio); in signalSourceEOS()
434 source = getSource(video); in signalSourceEOS()
441 sp<AnotherPacketSource> source = getSource(audio); in sourceReachedEOS()
449 sp<AnotherPacketSource> source = getSource(audio); in sourceNearEOS()
561 sp<AnotherPacketSource> source = getSource(true /* audio */); in onMessageReceived()
567 source = getSource(false /* video */); in onMessageReceived()
/frameworks/base/core/java/android/view/
DVerifiedInputEvent.java107 public int getSource() { in getSource() method in VerifiedInputEvent
171 && getSource() == that.getSource() in equals()
181 _hash = 31 * _hash + getSource(); in hashCode()
DInputEvent.java76 public abstract int getSource(); in getSource() method in InputEvent
95 return (getSource() & source) == source; in isFromSource()
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()
/frameworks/base/services/core/java/com/android/server/hdmi/
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());
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()
DDelayedMessageBuffer.java111 if (message.getSource() != address) { in processMessagesForDevice()
141 && message.getSource() == address) { in processActiveSource()
DHdmiCecNetwork.java541 int sourceAddress = message.getSource(); in handleCecMessage()
583 HdmiDeviceInfo currentDeviceInfo = getCecDeviceInfo(message.getSource()); in handleReportFeatures()
614 HdmiDeviceInfo currentDeviceInfo = getCecDeviceInfo(message.getSource()); in handleFeatureAbort()
633 updateDeviceCecVersion(message.getSource(), version); in handleCecVersion()
639 int logicalAddress = message.getSource(); in handleReportPhysicalAddress()
663 updateDevicePowerStatus(message.getSource(), newStatus); in handleReportPowerStatus()
666 updateDeviceCecVersion(message.getSource(), HdmiControlManager.HDMI_CEC_VERSION_2_0); in handleReportPowerStatus()
692 int logicalAddress = message.getSource(); in handleSetOsdName()
726 int logicalAddress = message.getSource(); in handleDeviceVendorId()
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()
1013 if (!canStartArcUpdateAction(message.getSource(), true)) { in handleInitiateArc()
1030 message.getSource(), true); in handleInitiateArc()
1066 message.getSource(), false); in handleTerminateArc()
1092 message.getSource(), systemAudioStatus, null); in handleSetSystemAudioMode()
1134 if (action.getRecorderAddress() != message.getSource()) { in handleRecordTvScreen()
1136 message.getSource(), in handleRecordTvScreen()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayFrames.java96 state.getSource(ITYPE_LEFT_DISPLAY_CUTOUT).setFrame( in update()
102 state.getSource(ITYPE_TOP_DISPLAY_CUTOUT).setFrame( in update()
108 state.getSource(ITYPE_RIGHT_DISPLAY_CUTOUT).setFrame( in update()
114 state.getSource(ITYPE_BOTTOM_DISPLAY_CUTOUT).setFrame( in update()
/frameworks/compile/libbcc/lib/
DCompiler.cpp283 transformPasses.run(script.getSource().getModule()); in runPasses()
296 codeGenPasses.run(script.getSource().getModule()); in runPasses()
304 llvm::Module &module = script.getSource().getModule(); in compile()
371 llvm::Module &module = script.getSource().getModule(); in addInternalizeSymbolsPass()
466 if (script.getSource().getDebugInfoEnabled()) in addDebugInfoPass()
490 llvm::Module &module = script.getSource().getModule(); in screenGlobalFunctions()
518 pPM.run(script.getSource().getModule()); in translateGEPs()
/frameworks/base/services/core/java/com/android/server/input/
DInputShellCommand.java189 private int getSource(int inputSource, int defaultSource) { in getSource() method in InputShellCommand
289 inputSource = getSource(inputSource, InputDevice.SOURCE_KEYBOARD); in runText()
320 if (source != e.getSource()) { in sendText()
375 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runTap()
388 inputSource = getSource(inputSource, InputDevice.SOURCE_TRACKBALL); in runPress()
393 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runSwipe()
430 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runDragAndDrop()
435 inputSource = getSource(inputSource, InputDevice.SOURCE_TRACKBALL); in runRoll()
470 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runMotionEvent()
/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
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()
/frameworks/base/location/java/android/location/
DCountry.java128 public final int getSource() { in getSource() method in Country
173 return mCountryIso.equals(c.getCountryIso()) && mSource == c.getSource(); in equals()
/frameworks/base/tests/Input/src/com/android/test/input/
DInputDeviceTest.java39 assertEquals(range.getSource(), outRange.getSource()); in assertMotionRangeEquals()

12345678