Searched refs:position (Results 601 - 625 of 821) sorted by relevance

<<21222324252627282930>>

/frameworks/support/samples/SupportDesignDemos/src/com/example/android/support/design/
H A DSupportDesignDemos.java145 protected void onListItemClick(ListView l, View v, int position, long id) { argument
146 Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position);
/frameworks/support/samples/SupportPercentDemos/src/com/example/android/support/percent/
H A DSupportPercentDemos.java145 protected void onListItemClick(ListView l, View v, int position, long id) { argument
146 Map<String, Object> map = (Map<String, Object>)l.getItemAtPosition(position);
/frameworks/support/samples/SupportVectorDrawableDemos/src/com/example/android/support/vectordrawable/app/
H A DSupportVectorDrawableDemos.java149 protected void onListItemClick(ListView l, View v, int position, long id) { argument
150 Map<String, Object> map = (Map<String, Object>) l.getItemAtPosition(position);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
H A DHeadersFragment.java112 int position, int subposition) {
114 if (viewHolder != null && position >= 0) {
111 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, int position, int subposition) argument
H A DHeadersSupportFragment.java115 int position, int subposition) {
117 if (viewHolder != null && position >= 0) {
114 onRowSelected(RecyclerView parent, RecyclerView.ViewHolder viewHolder, int position, int subposition) argument
H A DDetailsSupportFragment.java352 int position = mRowsSupportFragment.getVerticalGridView().getSelectedPosition();
354 if (DEBUG) Log.v(TAG, "row selected position " + position
356 onRowSelected(position, subposition);
501 // align the top edge of item to a fixed position
570 * Sets the selected row position with smooth animation.
572 public void setSelectedPosition(int position) { argument
573 setSelectedPosition(position, true);
577 * Sets the selected row position.
579 public void setSelectedPosition(int position, boolea argument
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DGridLayoutManagerBaseConfigSetTest.java122 int position = mGlm.getPosition(view);
123 assertTrue("child position should be in last page", expectedPositions.get(position));
136 + " global pos must match when scrolling in reverse for position ";
/frameworks/base/core/java/com/android/internal/view/menu/
H A DCascadingMenuPopup.java134 // Find the position of the hovered menu within the added menus.
291 * Determines the proper initial menu position for the current LTR/RTL configuration.
292 * @return The initial position.
306 * @return The position to display it.
636 mLastPosition = mShowingMenus.get(count - 1).position;
733 public final int position; field in class:CascadingMenuPopup.CascadingMenuInfo
736 int position) {
739 this.position = position;
735 CascadingMenuInfo(@onNull MenuPopupWindow window, @NonNull MenuBuilder menu, int position) argument
/frameworks/base/core/jni/
H A Dandroid_opengl_GLES10Ext.cpp96 positionID = _env->GetFieldID(bufferClass, "position", "I");
105 jint position; local
110 position = _env->GetIntField(buffer, positionID);
113 *remaining = (limit - position) << elementSizeShift;
250 jint position = _env->GetIntField(buffer, positionID); local
252 buf += position << elementSizeShift;
/frameworks/base/tests/OneMedia/src/com/android/onemedia/playback/
H A DLocalRenderer.java84 * can store a seek position to set later.
92 * The states where it is valid to get the current play position and the
532 * Seek to a given position in the media. If the seek succeeded or will be
533 * performed when loading is complete returns true. If the position is not
536 * @param position The position to seek to in milliseconds
540 public boolean onSeekTo(int position) { argument
543 if (position < 0 || position >= getDuration()) {
551 player.seekTo(position);
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/view/menu/
H A DCascadingMenuPopup.java150 // Find the position of the hovered menu within the added menus.
307 * Determines the proper initial menu position for the current LTR/RTL configuration.
308 * @return The initial position.
322 * @return The position to display it.
419 // The following computation is only accurate for the initial submenu position.
421 // the framework will compute the new submenu position using the anchor's height,
431 // If used as horizontal/vertical offsets, these values would position the submenu
432 // at the exact same position as the parent item.
679 mLastPosition = mShowingMenus.get(count - 1).position;
785 public final int position; field in class:CascadingMenuPopup.CascadingMenuInfo
787 CascadingMenuInfo(@onNull MenuPopupWindow window, @NonNull MenuBuilder menu, int position) argument
[all...]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
H A DLinearLayoutCompat.java330 final int position;
332 position = child.getRight() + lp.rightMargin;
334 position = child.getLeft() - lp.leftMargin - mDividerWidth;
336 drawVerticalDivider(canvas, position);
343 int position;
346 position = getPaddingLeft();
348 position = getWidth() - getPaddingRight() - mDividerWidth;
353 position = child.getLeft() - lp.leftMargin - mDividerWidth;
355 position = child.getRight() + lp.rightMargin;
358 drawVerticalDivider(canvas, position);
[all...]
/frameworks/av/media/libaudioclient/
H A DAudioTrack.cpp594 // reset current position as seen by client to 0
697 // clear buffer position and loop count.
698 mStaticProxy->setBufferPositionAndLoop(0 /* position */,
768 // To fix this, cache the playback position on a pause() and return
778 ALOGV("AudioTrack::pause for offload, cache current position %u", mPausedPosition);
1004 // See setPosition() regarding setting parameters such as loop points or position while active
1027 // The only purpose of setting marker position is to get a callback
1060 // The only purpose of setting position update period is to get a callback
1091 status_t AudioTrack::setPosition(uint32_t position) argument
1096 if (position > mFrameCoun
1118 getPosition(uint32_t *position) argument
1160 getBufferPosition(uint32_t *position) argument
[all...]
/frameworks/base/core/java/android/widget/
H A DGallery.java82 * position, measured in milliseconds.
109 * The position of the item that received the user's down touch.
180 * If true, mFirstPosition is the position of the rightmost child, and
187 * Used to reset position correctly during layout.
275 * changes position. Only relevant if animation is turned on.
325 // Current scroll position is the same as the selected position
587 // Common case where the current selected position is correct
628 * @param delta Change in the selected position. +1 means the selection is
650 // Update to the new selected position
854 makeAndAddView(int position, int offset, int x, boolean fromLeft) argument
1205 dispatchLongPress(View view, int position, long id, float x, float y, boolean useOffsets) argument
1317 setSelectedPositionInt(int position) argument
[all...]
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
H A DGridWidgetTest.java146 * Change selected position.
148 private void setSelectedPosition(final int position, final int scrollExtra) throws Throwable { argument
153 mGridView.setSelectedPosition(position, scrollExtra);
159 private void setSelectedPosition(final int position) throws Throwable { argument
160 setSelectedPosition(position, 0);
163 private void setSelectedPositionSmooth(final int position) throws Throwable { argument
167 mGridView.setSelectedPositionSmooth(position);
240 * Group and sort children by their position on each row (HORIZONTAL) or column(VERTICAL).
2583 // scroll to position with delta
2588 // scroll to same position withou
3274 getViewType(int position) argument
3285 getViewType(int position) argument
3297 getViewType(int position) argument
3303 setViewType(int position, int type) argument
3326 getItemAlignmentFacet(int position) argument
3395 getItemAlignmentFacet(int position) argument
4540 getViewType(int position) argument
4858 ItemAt(int scrollPosition, int position, ItemLocation loc) argument
4864 ItemAt(int position, ItemLocation loc) argument
4874 itemAt(int position, ItemLocation location) argument
4881 itemAt(int scrollPosition, int position, ItemLocation location) argument
[all...]
/frameworks/av/include/media/
H A DAudioTrack.h62 EVENT_MARKER = 3, // Playback head is at the specified marker position
64 EVENT_NEW_POS = 4, // Playback head is at a new position
73 // in the mapping from frame position to presentation time.
122 * - EVENT_MARKER: pointer to const uint32_t containing the marker position in frames.
123 * - EVENT_NEW_POS: pointer to const uint32_t containing the new position in frames.
186 * and inform of marker, position updates, etc.
481 /* Sets marker position. When playback reaches the number of frames specified, a callback with
483 * notification callback. To set a marker at a position which would compute as 0,
484 * a workaround is to set the marker at a nearby position such as ~0 or 1.
490 * marker: marker position expresse
[all...]
/frameworks/av/include/private/media/
H A DAudioTrackShared.h48 #define CBLK_BUFFER_END 0x80 // set by server when the position reaches end of buffer if not looping
78 // The state has a sequence counter to indicate whether changes are made to loop or position.
79 // The sequence counter also currently indicates whether loop or position is first depending
87 uint32_t mPositionSequence; // a sequence counter to indicate changes to position
111 // client requests to the server for loop or position changes.
114 // position info updated asynchronously by server and read by client,
416 // static buffer position and looping parameters. These commands are not
419 // getters will read a cached version of the position and loop variables
429 void setBufferPosition(size_t position);
430 void setBufferPositionAndLoop(size_t position, size_
[all...]
/frameworks/av/media/libaudioclient/include/media/
H A DAudioTrack.h62 EVENT_MARKER = 3, // Playback head is at the specified marker position
64 EVENT_NEW_POS = 4, // Playback head is at a new position
73 // in the mapping from frame position to presentation time.
122 * - EVENT_MARKER: pointer to const uint32_t containing the marker position in frames.
123 * - EVENT_NEW_POS: pointer to const uint32_t containing the new position in frames.
186 * and inform of marker, position updates, etc.
481 /* Sets marker position. When playback reaches the number of frames specified, a callback with
483 * notification callback. To set a marker at a position which would compute as 0,
484 * a workaround is to set the marker at a nearby position such as ~0 or 1.
490 * marker: marker position expresse
[all...]
/frameworks/av/media/libstagefright/
H A DAudioSource.cpp300 int64_t timeUs, position, timeNs; local
306 ts.getBestTimestamp(&position, &timeNs, ExtendedTimestamp::TIMEBASE_MONOTONIC,
310 (position - mNumFramesSkipped -
/frameworks/base/core/java/android/hardware/camera2/
H A DDngCreator.java582 yBuf.position(yRowStride * i);
584 uBuf.position(uRowStride * halfH);
586 vBuf.position(vRowStride * halfH);
/frameworks/base/libs/hwui/renderstate/
H A DRenderState.cpp318 meshState().bindPositionVertexPointer(vertices.position, vertices.stride);
358 // NOTE: alpha vertex position is computed assuming no VBO
359 const void* alphaCoords = ((const GLbyte*) vertices.position) + kVertexAlphaOffset;
420 const GLbyte* vertexData = static_cast<const GLbyte*>(vertices.position);
/frameworks/base/services/core/java/com/android/server/wm/
H A DStackWindowController.java122 public void positionChildAt(TaskWindowContainerController child, int position, Rect bounds, argument
126 + " at " + position);
137 child.mContainer.positionAt(position, bounds, overrideConfig);
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/
H A DGLTextureViewActivity.java153 "attribute vec4 position;\n" +
158 " gl_Position = position;\n" +
186 triangleVertices.put(mTriangleVerticesData).position(0);
191 int attribPosition = glGetAttribLocation(program, "position");
216 triangleVertices.position(TRIANGLE_VERTICES_DATA_POS_OFFSET);
221 triangleVertices.position(TRIANGLE_VERTICES_DATA_UV_OFFSET);
/frameworks/base/tests/UiBench/src/com/android/test/uibench/opengl/
H A DImageFlipRenderThread.java106 "attribute vec4 position;\n" +
111 " gl_Position = position;\n" +
139 triangleVertices.put(mTriangleVerticesData).position(0);
144 int attribPosition = glGetAttribLocation(program, "position");
169 triangleVertices.position(TRIANGLE_VERTICES_DATA_POS_OFFSET);
174 triangleVertices.position(TRIANGLE_VERTICES_DATA_UV_OFFSET);
/frameworks/native/opengl/tests/gl2_cameraeye/src/com/android/gl2cameraeye/
H A DGL2CameraEye.java144 mTriangleVertices.put(mTriangleVerticesData).position(0);
207 mTriangleVertices.position(TRIANGLE_VERTICES_DATA_POS_OFFSET);
214 mTriangleVertices.position(TRIANGLE_VERTICES_DATA_UV_OFFSET);

Completed in 681 milliseconds

<<21222324252627282930>>