/aosp12/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | InsetsStateTest.java | 87 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets() 105 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets_imeAndNav() 150 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets_imeIgnoredWithoutAdjustResize() 164 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateInsets_systemUiFlagLayoutStable() 265 mState.getSource(ITYPE_IME).setVisible(true); in testStripForDispatch() 298 mState.getSource(ITYPE_IME).setVisible(true); in testEquals_visibility() 375 mState.getSource(ITYPE_IME).setVisible(true); in testParcelUnparcel() 389 mState.getSource(ITYPE_IME).setVisible(true); in testCopy() 411 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateVisibleInsets() 426 mState.getSource(ITYPE_IME).setVisible(true); in testCalculateVisibleInsets_adjustNothing() [all …]
|
H A D | InsetsControllerTest.java | 652 copy.getSource(ITYPE_IME).setFrame(0, 1, 2, 3); in testFrameUpdateDuringAnimation() 683 state1.getSource(type).setVisible(true); in doTestResizeAnimation_insetsTypes() 684 state1.getSource(type).setFrame(0, 0, 500, 50); in doTestResizeAnimation_insetsTypes() 686 state2.getSource(type).setFrame(0, 0, 500, 60); in doTestResizeAnimation_insetsTypes() 710 state1.getSource(type).setFrame(0, 0, 500, 50); in testResizeAnimation_displayFrame() 713 state2.getSource(type).setFrame(0, 0, 500, 60); in testResizeAnimation_displayFrame() 732 state1.getSource(type).setVisible(true); in testResizeAnimation_visibility() 733 state1.getSource(type).setFrame(0, 0, 500, 50); in testResizeAnimation_visibility() 735 state2.getSource(type).setVisible(false); in testResizeAnimation_visibility() 736 state2.getSource(type).setFrame(0, 0, 500, 60); in testResizeAnimation_visibility() [all …]
|
H A D | KeyEventTest.java | 68 assertEquals(SOURCE, keyEvent.getSource()); in testObtain() 95 assertEquals(SOURCE, keyEvent.getSource()); in testObtainWithDisplayId() 182 assertEquals(key1.getSource(), key2.getSource()); in compareKeys()
|
/aosp12/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/audio_util/ |
H A D | ImageTest.java | 239 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromMediaMetadataWithArtUri() 253 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromMediaMetadataWithAlbumArtUri() 268 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromMediaMetadataWithDisplayIconUri() 280 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_NONE); in testCreateImageFromMediaMetadataWithoutArtwork() 306 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromMediaDescriptionWithUri() 319 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_NONE); in testCreateImageFromMediaDescriptionWithoutArtwork() 369 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromBundleWithArtUri() 382 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromBundleWithAlbumArtUri() 396 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_URI); in testCreateImageFromBundleWithDisplayIconUri() 408 assertThat(artwork.getSource()).isEqualTo(Image.SOURCE_NONE); in testCreateImageFromBundleWithoutArtwork() [all …]
|
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
H A D | InsetsSourceProviderTest.java | 68 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testPostLayout() 70 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout() 73 mProvider.getSource().calculateVisibleInsets(new Rect(0, 0, 500, 500))); in testPostLayout() 85 assertEquals(new Rect(0, 0, 500, 40), mProvider.getSource().getFrame()); in testPostLayout_givenInsets() 86 assertEquals(new Rect(0, 0, 500, 25), mProvider.getSource().getVisibleFrame()); in testPostLayout_givenInsets() 88 mProvider.getSource().calculateInsets(new Rect(0, 0, 500, 500), in testPostLayout_givenInsets() 91 mProvider.getSource().calculateVisibleInsets(new Rect(0, 0, 500, 500))); in testPostLayout_givenInsets() 114 assertEquals(new Rect(10, 10, 20, 20), mProvider.getSource().getFrame()); in testPostLayout_frameProvider() 233 assertEquals(new Rect(0, 0, 500, 100), mProvider.getSource().getFrame()); in testInsetGeometries() 237 mProvider.getSource().calculateInsets(new Rect(0, -100, 500, 400), in testInsetGeometries() [all …]
|
H A D | InsetsStateControllerTest.java | 134 assertFalse(getController().getInsetsForWindow(app2).getSource(ITYPE_IME) in testStripForDispatch_independentSources() 136 assertTrue(getController().getInsetsForWindow(app1).getSource(ITYPE_IME) in testStripForDispatch_independentSources() 146 app.mAboveInsetsState.getSource(ITYPE_IME).setVisible(true); in testStripForDispatch_belowIme() 147 app.mAboveInsetsState.getSource(ITYPE_IME).setFrame(mImeWindow.getFrame()); in testStripForDispatch_belowIme() 161 assertFalse(getController().getInsetsForWindow(app).getSource(ITYPE_IME) in testStripForDispatch_aboveIme() 199 assertFalse(getController().getInsetsForWindow(app).getSource(ITYPE_IME) in testStripForDispatch_imeOrderChanged() 209 app.mAboveInsetsState.getSource(ITYPE_IME).setVisible(true); in testStripForDispatch_imeOrderChanged() 236 assertFalse(getController().getInsetsForWindow(child).getSource(ITYPE_IME) in testStripForDispatch_childWindow_altFocusable() 257 assertFalse(getController().getInsetsForWindow(child).getSource(ITYPE_IME) in testStripForDispatch_childWindow_splitScreen() 332 assertTrue(rotatedState.getSource(ITYPE_STATUS_BAR).isVisible()); in testTransientVisibilityOfFixedRotationState() [all …]
|
H A D | InsetsPolicyTest.java | 290 .getSource(ITYPE_STATUS_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 292 .getSource(ITYPE_NAVIGATION_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 307 .getSource(ITYPE_STATUS_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 309 .getSource(ITYPE_NAVIGATION_BAR).isVisible()); in testShowTransientBars_bothCanBeTransient_appGetsBothFakeControls() 316 .getControllableInsetProvider().getSource().setVisible(false); in testShowTransientBars_statusBarCanBeTransient_appGetsStatusBarFakeControl() 346 .getControllableInsetProvider().getSource(); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() 348 .getControllableInsetProvider().getSource(); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() 374 assertFalse(clientState.getSource(ITYPE_STATUS_BAR).isVisible()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() 375 assertFalse(clientState.getSource(ITYPE_NAVIGATION_BAR).isVisible()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() 377 assertTrue(state.getSource(ITYPE_STATUS_BAR).isVisible()); in testAbortTransientBars_bothCanBeAborted_appGetsBothRealControls() [all …]
|
H A D | DisplayPolicyLayoutTests.java | 339 state.getSource(InsetsState.ITYPE_STATUS_BAR).setVisible(false); in layoutWindowLw_fitInsetsIgnoringVisibility() 340 state.getSource(InsetsState.ITYPE_NAVIGATION_BAR).setVisible(false); in layoutWindowLw_fitInsetsIgnoringVisibility() 354 state.getSource(InsetsState.ITYPE_STATUS_BAR).setVisible(false); in layoutWindowLw_fitInsetsNotIgnoringVisibility() 369 state.getSource(InsetsState.ITYPE_IME).setVisible(true); in layoutWindowLw_insetParentFrameByIme() 370 state.getSource(InsetsState.ITYPE_IME).setFrame( in layoutWindowLw_insetParentFrameByIme() 481 .getSource(InsetsState.ITYPE_STATUS_BAR).setVisible(false); in layoutWindowLw_withDisplayCutout_fullscreen() 501 .getSource(InsetsState.ITYPE_STATUS_BAR).setVisible(false); in layoutWindowLw_withDisplayCutout_fullscreenInCutout() 685 assertThat(outState.getSource(ITYPE_STATUS_BAR).getFrame(), in layoutHint_appWindow() 687 assertThat(outState.getSource(ITYPE_NAVIGATION_BAR).getFrame(), in layoutHint_appWindow() 744 .getSource(ITYPE_STATUS_BAR).getFrame(); in testFixedRotationInsetsSourceFrame() [all …]
|
/aosp12/frameworks/av/media/libmediaplayerservice/nuplayer/ |
H A D | StreamingSource.cpp | 195 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()
|
H A D | RTSPSource.cpp | 167 sp<AnotherPacketSource> source = getSource(audio); in getFormatMeta() 218 sp<AnotherPacketSource> source = getSource(audio); in dequeueAccessUnit() 264 sp<AnotherPacketSource> NuPlayer::RTSPSource::getSource(bool audio) { in getSource() function in android::NuPlayer::RTSPSource 266 sp<MediaSource> source = mTSParser->getSource( in getSource() 430 sp<AnotherPacketSource> source = getSource(audio); in signalSourceEOS() 435 source = getSource(video); in signalSourceEOS() 442 sp<AnotherPacketSource> source = getSource(audio); in sourceReachedEOS() 450 sp<AnotherPacketSource> source = getSource(audio); in sourceNearEOS() 562 sp<AnotherPacketSource> source = getSource(true /* audio */); in onMessageReceived() 568 source = getSource(false /* video */); in onMessageReceived()
|
/aosp12/frameworks/base/services/core/java/com/android/server/hdmi/ |
H A D | DeviceDiscoveryAction.java | 327 if (current.mLogicalAddress != cmd.getSource()) { in handleReportPhysicalAddress() 329 cmd.getSource()); in handleReportPhysicalAddress() 359 if (current.mLogicalAddress != cmd.getSource()) { 361 cmd.getSource()); 382 if (current.mLogicalAddress != cmd.getSource()) { 384 cmd.getSource()); 402 if (current.mLogicalAddress != cmd.getSource()) { 404 + cmd.getSource());
|
H A D | OneTouchRecordAction.java | 80 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 D | HdmiCecNetwork.java | 509 int sourceAddress = message.getSource(); in handleCecMessage() 545 updateDeviceCecVersion(message.getSource(), version); in handleReportFeatures() 553 updateDeviceCecVersion(message.getSource(), version); in handleCecVersion() 559 int logicalAddress = message.getSource(); in handleReportPhysicalAddress() 583 updateDevicePowerStatus(message.getSource(), newStatus); in handleReportPowerStatus() 586 updateDeviceCecVersion(message.getSource(), HdmiControlManager.HDMI_CEC_VERSION_2_0); in handleReportPowerStatus() 614 int logicalAddress = message.getSource(); in handleSetOsdName() 647 int logicalAddress = message.getSource(); in handleDeviceVendorId()
|
H A D | HdmiCecLocalDeviceTv.java | 418 int logicalAddress = message.getSource(); in handleActiveSource() 447 if (getActiveSource().logicalAddress != message.getSource()) { in handleInactiveSource() 458 message.getSource()); in handleInactiveSource() 520 int address = message.getSource(); in handleReportPhysicalAddress() 1004 if (!canStartArcUpdateAction(message.getSource(), true)) { in handleInitiateArc() 1021 message.getSource(), true); in handleInitiateArc() 1057 message.getSource(), false); in handleTerminateArc() 1083 message.getSource(), systemAudioStatus, null); in handleSetSystemAudioMode() 1125 if (action.getRecorderAddress() != message.getSource()) { in handleRecordTvScreen() 1127 message.getSource(), in handleRecordTvScreen() [all …]
|
H A D | DelayedMessageBuffer.java | 111 if (message.getSource() != address) { in processMessagesForDevice() 141 && message.getSource() == address) { in processActiveSource()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | VerifiedInputEvent.java | 107 public int getSource() { in getSource() method in VerifiedInputEvent 171 && getSource() == that.getSource() in equals() 181 _hash = 31 * _hash + getSource(); in hashCode()
|
H A D | InputEventConsistencyVerifier.java | 183 } 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 D | InputEvent.java | 76 public abstract int getSource(); in getSource() method in InputEvent 95 return (getSource() & source) == source; in isFromSource()
|
H A D | InsetsSourceConsumer.java | 145 final InsetsSource source = mState.getSource(mType); in setControl() 159 final boolean needAnimation = requestedVisible != mState.getSource(mType).isVisible(); in setControl() 284 mState.getSource(mType).setVisible(mRequestedVisible); in applyLocalVisibilityOverride() 356 InsetsSource source = mState.getSource(mType); in notifyAnimationFinished()
|
/aosp12/frameworks/compile/libbcc/include/bcc/ |
H A D | Script.h | 67 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
|
/aosp12/frameworks/compile/libbcc/lib/ |
H A D | Compiler.cpp | 283 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()
|
/aosp12/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | DisplayFrames.java | 114 state.getSource(ITYPE_LEFT_DISPLAY_CUTOUT).setFrame( in onDisplayInfoUpdated() 116 state.getSource(ITYPE_TOP_DISPLAY_CUTOUT).setFrame( in onDisplayInfoUpdated() 118 state.getSource(ITYPE_RIGHT_DISPLAY_CUTOUT).setFrame( in onDisplayInfoUpdated() 120 state.getSource(ITYPE_BOTTOM_DISPLAY_CUTOUT).setFrame( in onDisplayInfoUpdated()
|
/aosp12/frameworks/base/services/core/java/com/android/server/input/ |
H A D | InputShellCommand.java | 146 private int getSource(int inputSource, int defaultSource) { in getSource() method in InputShellCommand 246 inputSource = getSource(inputSource, InputDevice.SOURCE_KEYBOARD); in runText() 277 if (source != e.getSource()) { in sendText() 335 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runTap() 348 inputSource = getSource(inputSource, InputDevice.SOURCE_TRACKBALL); in runPress() 353 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runSwipe() 394 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runDragAndDrop() 399 inputSource = getSource(inputSource, InputDevice.SOURCE_TRACKBALL); in runRoll() 434 inputSource = getSource(inputSource, InputDevice.SOURCE_TOUCHSCREEN); in runMotionEvent()
|
/aosp12/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
H A D | Suggestions.java | 64 public Source getSource() { in getSource() method in Suggestions 96 result.getSource().getName() + " results:" + result.getCount()); in addResults()
|
/aosp12/frameworks/base/location/java/android/location/ |
H A D | Country.java | 128 public final int getSource() { in getSource() method in Country 173 return mCountryIso.equals(c.getCountryIso()) && mSource == c.getSource(); in equals()
|