Home
last modified time | relevance | path

Searched refs:getWindow (Results 1 – 25 of 143) sorted by relevance

123456

/external/exoplayer/tree/library/core/src/test/java/com/google/android/exoplayer2/source/
DClippingMediaSourceTest.java78 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in noClipping()
135 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingStart()
152 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingEnd()
168 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingStartAndEndInitial()
187 assertThat(clippedTimeline.getWindow(/* windowIndex= */ 0, window).getDurationUs()) in clippingToEndOfSourceWithDurationSetsDuration()
204 assertThat(clippedTimeline.getWindow(/* windowIndex= */ 0, window).getDurationUs()) in clippingToEndOfSourceWithUnsetDurationDoesNotSetDuration()
220 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()) in clippingStartAndEnd()
241 assertThat(clippedTimeline.getWindow(0, window).getDurationUs()).isEqualTo(TEST_CLIP_AMOUNT_US); in clippingFromDefaultPosition()
242 assertThat(clippedTimeline.getWindow(0, window).getDefaultPositionUs()).isEqualTo(0); in clippingFromDefaultPosition()
243 assertThat(clippedTimeline.getWindow(0, window).getPositionInFirstPeriodUs()) in clippingFromDefaultPosition()
[all …]
/external/angle/samples/post_sub_buffer/
DPostSubBuffer.cpp87 60.0f, float(getWindow()->getWidth()) / getWindow()->getHeight(), 1.0f, 20.0f); in step()
103 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
128 EGLint windowWidth = static_cast<EGLint>(getWindow()->getWidth()); in swap()
129 EGLint windowHeight = static_cast<EGLint>(getWindow()->getHeight()); in swap()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/
DBasePlayer.java165 return timeline.isEmpty() ? null : timeline.getWindow(getCurrentWindowIndex(), window).tag; in getCurrentTag()
172 return timeline.isEmpty() ? null : timeline.getWindow(getCurrentWindowIndex(), window).manifest; in getCurrentManifest()
187 return !timeline.isEmpty() && timeline.getWindow(getCurrentWindowIndex(), window).isDynamic; in isCurrentWindowDynamic()
193 return !timeline.isEmpty() && timeline.getWindow(getCurrentWindowIndex(), window).isLive; in isCurrentWindowLive()
202 long windowStartTimeMs = timeline.getWindow(getCurrentWindowIndex(), window).windowStartTimeMs; in getCurrentLiveOffset()
212 return !timeline.isEmpty() && timeline.getWindow(getCurrentWindowIndex(), window).isSeekable; in isCurrentWindowSeekable()
220 : timeline.getWindow(getCurrentWindowIndex(), window).getDurationMs(); in getContentDuration()
DTimeline.java656 public Window getWindow(int windowIndex, Window window, long defaultPositionProjectionUs) {
774 public final Window getWindow(int windowIndex, Window window) { in getWindow() method in Timeline
775 return getWindow(windowIndex, window, /* defaultPositionProjectionUs= */ 0); in getWindow()
780 public final Window getWindow(int windowIndex, Window window, boolean setTag) { in getWindow() method in Timeline
781 return getWindow(windowIndex, window, /* defaultPositionProjectionUs= */ 0); in getWindow()
793 public abstract Window getWindow( in getWindow() method in Timeline
815 if (getWindow(windowIndex, window).lastPeriodIndex == periodIndex) { in getNextPeriodIndex()
820 return getWindow(nextWindowIndex, window).firstPeriodIndex; in getNextPeriodIndex()
875 getWindow(windowIndex, window, defaultPositionProjectionUs); in getPeriodPosition()
962 if (!getWindow(i, window).equals(other.getWindow(i, otherWindow))) { in equals()
[all …]
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowWindowTest.java29 Window window = activity.getWindow(); in getFlag_shouldReturnWindowFlags()
41 Window window = activity.getWindow(); in getTitle_shouldReturnWindowTitle()
49 Window window = activity.getWindow(); in getBackgroundDrawable_returnsSetDrawable()
61 Window window = activity.getWindow(); in getSoftInputMode_returnsSoftInputMode()
73 ProgressBar progress = shadowOf(activity.getWindow()).getProgressBar(); in getProgressBar_returnsTheProgressBar()
89 ProgressBar indeterminate = shadowOf(activity.getWindow()).getIndeterminateProgressBar(); in getIndeterminateProgressBar_returnsTheIndeterminateProgressBar()
119 getWindow().requestFeature(requestFeature); in onCreate()
/external/angle/samples/torus_lighting/
DTorusLightingES1.cpp44 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
47 float ratio = (float)getWindow()->getWidth() / (float)getWindow()->getHeight(); in draw()
DTorusLightingES2.cpp76 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
81 float ratio = (float)getWindow()->getWidth() / (float)getWindow()->getHeight(); in draw()
/external/angle/samples/gles1/
DDrawTexture.cpp48 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in initialize()
59 GLint windowWidth = getWindow()->getWidth(); in draw()
60 GLint windowHeight = getWindow()->getHeight(); in draw()
DHelloTriangle.cpp39 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
DSimpleTexture2D.cpp57 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
/external/angle/samples/simple_vertex_shader/
DSimpleVertexShader.cpp84 60.0f, float(getWindow()->getWidth()) / getWindow()->getHeight(), 1.0f, 20.0f); in step()
100 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
/external/angle/samples/multiview/
DMultiview.cpp79 int viewWidth = getWindow()->getWidth() / 2; in initialize()
80 int viewHeight = getWindow()->getHeight(); in initialize()
260 const int viewWidth = getWindow()->getWidth() / 2; in draw()
261 const int viewHeight = getWindow()->getHeight(); in draw()
339 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
/external/angle/samples/multiple_draw_buffers/
DMultipleDrawBuffers.cpp92 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, getWindow()->getWidth(), in initialize()
93 getWindow()->getHeight(), 0, GL_RGBA, GL_UNSIGNED_BYTE, nullptr); in initialize()
141 GLint width = static_cast<GLint>(getWindow()->getWidth()); in draw()
142 GLint height = static_cast<GLint>(getWindow()->getHeight()); in draw()
/external/angle/src/tests/perf_tests/
DInterleavedAttributeData.cpp118 (static_cast<float>(rand() % getWindow()->getWidth()) / getWindow()->getWidth()) * in initializeBenchmark()
122 (static_cast<float>(rand() % getWindow()->getHeight()) / getWindow()->getHeight()) * in initializeBenchmark()
DDrawElementsPerf.cpp149 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in initializeBenchmark()
153 CreateColorFBO(getWindow()->getWidth(), getWindow()->getHeight(), &mTexture, &mFBO); in initializeBenchmark()
DInstancingPerf.cpp238 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in initializeBenchmark()
250 static_cast<float>(getWindow()->getWidth()) / static_cast<float>(getWindow()->getHeight()); in initializeBenchmark()
254 getWindow()->setVisible(true); in initializeBenchmark()
DDrawCallPerf.cpp229 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in initializeBenchmark()
233 CreateColorFBO(getWindow()->getWidth(), getWindow()->getHeight(), &mFBOTexture, &mFBO); in initializeBenchmark()
515 ChangeScissorThenDraw(params.iterationsPerStep, numElements, getWindow()->getWidth(), in drawBenchmark()
516 getWindow()->getHeight()); in drawBenchmark()
/external/setupdesign/main/src/com/google/android/setupdesign/transition/
DTransitionHelper.java236 Window window = activity.getWindow(); in applyForwardTransition()
339 Window window = activity.getWindow(); in applyBackwardTransition()
400 if (activity.getWindow() != null in startActivityWithTransition()
401 && !activity.getWindow().hasFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)) { in startActivityWithTransition()
490 if (activity.getWindow() != null in startActivityForResultWithTransition()
491 && !activity.getWindow().hasFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)) { in startActivityForResultWithTransition()
650 if (activity.getWindow() != null in makeActivityOptions()
651 && !activity.getWindow().hasFeature(Window.FEATURE_ACTIVITY_TRANSITIONS)) { in makeActivityOptions()
/external/setupcompat/main/java/com/google/android/setupcompat/
DPartnerCustomizationLayout.java118 StatusBarMixin.class, new StatusBarMixin(this, activity.getWindow(), attrs, defStyleAttr)); in init()
119 registerMixin(SystemNavBarMixin.class, new SystemNavBarMixin(this, activity.getWindow())); in init()
128 activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS); in init()
129 activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_STATUS); in init()
130 activity.getWindow().clearFlags(WindowManager.LayoutParams.FLAG_TRANSLUCENT_NAVIGATION); in init()
/external/skqp/platform_tools/android/apps/skar_java/src/main/java/com/google/skar/examples/helloskar/helpers/
DFullScreenHelper.java39 .getWindow() in setFullScreenOnWindowFocusChanged()
48 activity.getWindow().addFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON); in setFullScreenOnWindowFocusChanged()
/external/exoplayer/tree/testutils/src/main/java/com/google/android/exoplayer2/testutil/
DNoUidTimeline.java37 public Window getWindow(int windowIndex, Window window, long defaultPositionProjectionUs) { in getWindow() method in NoUidTimeline
38 timeline.getWindow(windowIndex, window, defaultPositionProjectionUs); in getWindow()
/external/angle/samples/hello_triangle/
DHelloTriangle.cpp61 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
/external/angle/samples/simple_texture_2d/
DSimpleTexture2D.cpp88 glViewport(0, 0, getWindow()->getWidth(), getWindow()->getHeight()); in draw()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/ads/
DSinglePeriodAdTimeline.java58 public Window getWindow(int windowIndex, Window window, long defaultPositionProjectionUs) { in getWindow() method in SinglePeriodAdTimeline
59 window = super.getWindow(windowIndex, window, defaultPositionProjectionUs); in getWindow()
/external/exoplayer/tree/library/core/src/main/java/com/google/android/exoplayer2/source/
DForwardingTimeline.java60 public Window getWindow(int windowIndex, Window window, long defaultPositionProjectionUs) { in getWindow() method in ForwardingTimeline
61 return timeline.getWindow(windowIndex, window, defaultPositionProjectionUs); in getWindow()

123456