Searched defs:offset (Results 51 - 75 of 693) sorted by last modified time

1234567891011>>

/frameworks/support/compat/java/android/support/v4/util/
H A DLogWriter.java55 @Override public void write(char[] buf, int offset, int count) { argument
57 char c = buf[offset + i];
H A DMapCollections.java41 ArrayIterator(int offset) { argument
42 mOffset = offset;
487 public Object[] toArrayHelper(int offset) { argument
491 result[i] = colGetEntry(i, offset);
496 public <T> T[] toArrayHelper(T[] array, int offset) { argument
504 array[i] = (T)colGetEntry(i, offset);
552 protected abstract Object colGetEntry(int index, int offset); argument
/frameworks/support/compat/java/android/support/v4/view/
H A DViewCompat.java909 public void offsetLeftAndRight(View view, int offset) { argument
910 view.offsetLeftAndRight(offset);
921 public void offsetTopAndBottom(View view, int offset) { argument
922 view.offsetTopAndBottom(offset);
1393 public void offsetLeftAndRight(View view, int offset) { argument
1407 // Now offset, invoking the API 11+ implementation (which contains its own workarounds)
1408 super.offsetLeftAndRight(view, offset);
1410 // The view has now been offset, so let's intersect the Rect and invalidate where
1419 public void offsetTopAndBottom(View view, int offset) { argument
1433 // Now offset, invokin
1477 offsetLeftAndRight(View view, int offset) argument
1482 offsetTopAndBottom(View view, int offset) argument
3409 offsetTopAndBottom(View view, int offset) argument
3418 offsetLeftAndRight(View view, int offset) argument
[all...]
/frameworks/support/core-ui/java/android/support/v4/app/
H A DActionBarDrawerToggle.java176 /** Fraction of its total width by which to offset the toggle drawable. */
412 * @param slideOffset The new offset of this drawer within its range, from 0-1
503 * Sets the current position along the offset.
517 * Specifies the maximum offset when the position is at 1.
519 * @param offset maximum offset as a fraction of the drawable width,
523 public void setOffset(float offset) { argument
524 mOffset = offset;
/frameworks/support/core-ui/java/android/support/v4/view/
H A DViewPager.java131 float offset; field in class:ViewPager.ItemInfo
284 * @param positionOffset Value from [0, 1) indicating the offset from the page at position.
285 * @param positionOffsetPixels Value in pixels indicating the offset from position.
674 Math.min(curInfo.offset, mLastOffset)));
1300 float offset = oldCurInfo.offset + oldCurInfo.widthFactor + marginOffset;
1310 // ask the adapter for an offset.
1311 offset += mAdapter.getPageWidth(pos) + marginOffset;
1314 ii.offset = offset;
1855 onPageScrolled(int position, float offset, int offsetPixels) argument
1914 dispatchOnPageScrolled(int position, float offset, int offsetPixels) argument
[all...]
/frameworks/support/core-ui/java/android/support/v4/widget/
H A DSwipeRefreshLayout.java101 // Default offset in dips from the top of the view to where the progress spinner should stop
130 // Target is returning to its start offset because it was cancelled or a
243 * @param start The offset in pixels from the top of this view at which the
245 * @param end The offset in pixels from the top of this view at which the
259 * @return The offset in pixels from the top of this view at which the progress spinner should
267 * @return The offset in pixels from the top of this view at which the progress spinner should
283 * @param end The offset in pixels from the top of this view at which the
345 // the absolute offset has to take into account that the circle starts at an offset
826 // 'offset i
1151 setTargetOffsetTopAndBottom(int offset) argument
[all...]
/frameworks/support/design/src/android/support/design/widget/
H A DAppBarLayout.java118 * offset changes.
122 * Called when the {@link AppBarLayout}'s layout offset has been changed. This allows
123 * child views to implement custom behavior based on the offset (for instance pinning a
126 * @param appBarLayout the {@link AppBarLayout} which offset has changed
127 * @param verticalOffset the vertical offset for the parent {@link AppBarLayout}, in px
207 * Add a listener that will be called when the offset of this {@link AppBarLayout} changes.
209 * @param listener The listener that will be called when the offset changes.]
479 void dispatchOffsetUpdates(int offset) { argument
486 listener.onOffsetChanged(this, offset);
834 // Cancel any offset animatio
897 animateOffsetTo(final CoordinatorLayout coordinatorLayout, final AppBarLayout child, final int offset, float velocity) argument
913 animateOffsetWithDuration(final CoordinatorLayout coordinatorLayout, final AppBarLayout child, final int offset, final int duration) argument
942 getChildIndexOnOffset(AppBarLayout abl, final int offset) argument
1161 interpolateOffset(AppBarLayout layout, final int offset) argument
1208 updateAppBarLayoutDrawableState(final CoordinatorLayout parent, final AppBarLayout layout, final int offset, final int direction, final boolean forceJump) argument
1260 getAppBarChildOnOffset(final AppBarLayout layout, final int offset) argument
[all...]
H A DViewOffsetBehavior.java66 public boolean setTopAndBottomOffset(int offset) { argument
68 return mViewOffsetHelper.setTopAndBottomOffset(offset);
70 mTempTopBottomOffset = offset;
75 public boolean setLeftAndRightOffset(int offset) { argument
77 return mViewOffsetHelper.setLeftAndRightOffset(offset);
79 mTempLeftRightOffset = offset;
H A DViewOffsetHelper.java48 // And offset it as needed
58 * Set the top and bottom offset for this {@link ViewOffsetHelper}'s view.
60 * @param offset the offset in px.
61 * @return true if the offset has changed
63 public boolean setTopAndBottomOffset(int offset) { argument
64 if (mOffsetTop != offset) {
65 mOffsetTop = offset;
73 * Set the left and right offset for this {@link ViewOffsetHelper}'s view.
75 * @param offset th
78 setLeftAndRightOffset(int offset) argument
[all...]
/frameworks/support/exifinterface/src/android/support/media/
H A DExifInterface.java1170 // List of tags for pointing to the other image file directory offset.
1180 // Tags for indicating the thumbnail offset and length
1619 getJpegAttributes(inputStream, 0, IFD_TYPE_PRIMARY); // 0 is offset
1649 // Set thumbnail image offset and length
1838 * Returns the offset and length of thumbnail inside the image file, or
1841 * @return two-element array, the offset in the first value, and length in
2134 * @param jpegOffset The offset value in input stream for JPEG data.
2214 // Save offset values for createJpegThumbnailBitmap() function
2326 * This method looks at the first 160 bytes of a RAF file to retrieve the offset and length
2333 // Retrieve offset
3540 readFully(byte[] buffer, int offset, int length) argument
3710 write(byte[] bytes, int offset, int length) argument
[all...]
/frameworks/support/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DBaseLayoutManagerActivity.java114 Integer offset = null;
117 offset = Integer.parseInt(offsetString);
122 if (offset == null) {
125 scrollToPositionWithOffset(smooth, spinner.getSelectedItemPosition(), offset);
166 protected void scrollToPositionWithOffset(boolean smooth, int position, int offset) { argument
H A DGridLayoutManagerActivity.java105 protected void scrollToPositionWithOffset(boolean smooth, int position, int offset) { argument
107 super.scrollToPositionWithOffset(smooth, position, offset);
109 mLayoutManager.scrollToPositionWithOffset(position, offset);
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
H A DBaseLayoutManagerActivity.java114 Integer offset = null;
117 offset = Integer.parseInt(offsetString);
122 if (offset == null) {
125 scrollToPositionWithOffset(smooth, spinner.getSelectedItemPosition(), offset);
166 protected void scrollToPositionWithOffset(boolean smooth, int position, int offset) { argument
H A DGridLayoutManagerActivity.java105 protected void scrollToPositionWithOffset(boolean smooth, int position, int offset) { argument
107 super.scrollToPositionWithOffset(smooth, position, offset);
109 mLayoutManager.scrollToPositionWithOffset(position, offset);
/frameworks/rs/tests/java_api/RsBLAS_Benchmark/src/com/example/android/rs/blasbenchmark/
H A DSGEMMTest.java96 // Transform byte data into float, given a offset.
97 private float[] byteToFloat(byte[] input, int offset) { argument
100 output[i] = (float)(input[i] - offset);
/frameworks/rs/cpp/
H A DScriptIntrinsics.cpp550 void ScriptIntrinsicLUT::setTable(unsigned int offset, unsigned char base, unsigned int length, unsigned char* lutValues) { argument
557 mCache[offset + base + i] = lutValues[i];
/frameworks/rs/driver/
H A DrsdShader.cpp544 uint32_t offset = e->mHal.state.fieldOffsetBytes[field]; local
545 const float *fd = reinterpret_cast<const float *>(&data[offset]);
557 ALOGV("Uniform slot=%i, offset=%i, constant=%i, field=%i, uidx=%i, name=%s",
558 slot, offset, ct, field, uidx, fieldName);
H A DrsdVertexArray.cpp44 offset = 0;
54 bool normalized, size_t offset,
59 this->offset = offset;
69 ALOGV("va %i: slot=%i name=%s buf=%i ptr=%p size=%i type=0x%x stride=0x%x norm=%i offset=0x%p",
78 (void*)mAttribs[idx].offset);
114 mAttribs[ct].ptr + mAttribs[ct].offset);
53 set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, size_t offset, const char *name) argument
H A DrsdVertexArray.h39 size_t offset; member in class:RsdVertexArray::Attrib
48 void set(uint32_t type, uint32_t size, uint32_t stride, bool normalized, size_t offset, const char *name);
/frameworks/rs/
H A DrsFileA3D.cpp328 uint32_t offset = (uint32_t)mWriteIndex[i]->mOffset; local
329 headerStream.addU32(offset);
330 offset = (uint32_t)mWriteIndex[i]->mLength;
331 headerStream.addU32(offset);
H A DrsMesh.cpp230 uint32_t offset = bufferElem->getFieldOffsetBytes(ct); local
234 posPtr = (float*)(bp + offset);
/frameworks/rs/rsov/compiler/
H A DWrapper.cpp284 const uint32_t offset = (uint32_t)SLayout->getElementOffset(i); local
285 decor->addExtraOperand(offset);
/frameworks/rs/script_api/
H A DGenerateDocumentation.cpp680 const char offset[] = " "; local
681 *file << offset << "<li><a href=\"<?cs var:toroot ?>guide/topics/renderscript/reference/"
683 *file << offset << " <span class=\"en\">" << title << "</span>\n";
684 *file << offset << "</a></li>\n"; local
698 const char offset[] = " "; local
699 file << offset << "<li class=\"nav-section\">\n"; local
700 file << offset << " <div class=\"nav-section-header\">\n"; local
701 file << offset << " <a href=\"<?cs var:toroot ?>guide/topics/renderscript/reference/" <<
703 file << offset << " <span class=\"en\">Runtime API Reference</span>\n"; local
704 file << offset << " </ local
705 file << offset << " <ul>\\n"; local
715 file << offset << " </ul>\\n"; local
716 file << offset << "</li>\\n"; local
[all...]
H A DGenerateHeaderFiles.cpp228 const int offset = 4 + permutation.getName().size() + 1; // Size of above local
231 int charsOnLine = offset;
248 *file << "\n" << string(offset, ' ');
249 charsOnLine = offset;
/frameworks/rs/support/jni/
H A Dandroid_renderscript_RenderScript.cpp1172 nAllocationData1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, argument
1177 LOG_API("nAllocation1DData, con(%p), adapter(%p), offset(%i), count(%i), sizeBytes(%i), "
1178 "dataType(%i)", (RsContext)con, (RsAllocation)alloc, offset, count, sizeBytes,
1181 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1307 nAllocationRead1D(JNIEnv *_env, jobject _this, jlong con, jlong _alloc, jint offset, jint lod, argument
1312 LOG_API("nAllocation1DRead, con(%p), adapter(%p), offset(%i), count(%i), sizeBytes(%i), "
1313 "dataType(%i)", (RsContext)con, alloc, offset, count, sizeBytes, dataType);
1315 (RsContext)con, alloc, offset, lod, count, ptr, sizeBytes);
1877 // "length > script.length - offset");

Completed in 424 milliseconds

1234567891011>>