Searched defs:offsets (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/libs/androidfw/tests/
H A DTypeWrappers_test.cpp33 uint32_t offsets[3]; local
34 t.entriesStart = t.header.headerSize + sizeof(offsets);
37 offsets[0] = 0;
48 offsets[1] = ResTable_type::NO_ENTRY;
50 offsets[2] = sizeof(e1) + sizeof(v1);
65 memcpy(p, offsets, sizeof(offsets));
66 p += sizeof(offsets);
/frameworks/base/core/java/android/hardware/camera2/params/
H A DBlackLevelPattern.java25 * of color channel offsets used for the black level offsets of each color channel.
30 * The number of offsets in this vector.
37 * <p>The given offset array must contain offsets for each color channel in
41 * @param offsets an array containing a 2x2 pattern of offsets.
47 public BlackLevelPattern(int[] offsets) { argument
48 if (offsets == null) {
49 throw new NullPointerException("Null offsets array passed to constructor");
51 if (offsets
[all...]
/frameworks/base/core/java/android/view/textservice/
H A DSentenceSuggestionsInfo.java30 * you to put multiple {@link SuggestionsInfo}s on a sentence with the offsets and the lengths
42 * @param offsets the array of offsets of suggestions
46 SuggestionsInfo[] suggestionsInfos, int[] offsets, int[] lengths) {
47 if (suggestionsInfos == null || offsets == null || lengths == null) {
50 if (suggestionsInfos.length != offsets.length || offsets.length != lengths.length) {
55 mOffsets = Arrays.copyOf(offsets, infoSize);
45 SentenceSuggestionsInfo( SuggestionsInfo[] suggestionsInfos, int[] offsets, int[] lengths) argument
/frameworks/base/graphics/java/android/graphics/
H A DYuvImage.java139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top);
142 rectangle.height(), offsets, mStrides, quality, stream,
183 int[] offsets = null;
185 offsets = new int[] {top * mStrides[0] + left,
188 return offsets;
192 offsets = new int[] {top * mStrides[0] + left / 2 * 4};
193 return offsets;
196 return offsets;
238 int format, int width, int height, int[] offsets, int[] strides,
237 nativeCompressToJpeg(byte[] oriYuv, int format, int width, int height, int[] offsets, int[] strides, int quality, OutputStream stream, byte[] tempStorage) argument
/frameworks/base/core/jni/android/graphics/
H A DYuvToJpegEncoder.cpp25 int height, int* offsets, int jpegQuality) {
43 compress(&cinfo, (uint8_t*) inYuv, offsets);
72 uint8_t* yuv, int* offsets) {
84 uint8_t* yPlanar = yuv + offsets[0];
85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
148 uint8_t* yuv, int* offsets) {
164 uint8_t* yuvOffset = yuv + offsets[0];
220 jint format, jint width, jint height, jintArray offsets,
226 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL);
237 env->ReleaseIntArrayElements(offsets, imgOffset
24 encode(SkWStream* stream, void* inYuv, int width, int height, int* offsets, int jpegQuality) argument
71 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
147 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
219 YuvImage_compressToJpeg(JNIEnv* env, jobject, jbyteArray inYuv, jint format, jint width, jint height, jintArray offsets, jintArray strides, jint jpegQuality, jobject jstream, jbyteArray jstorage) argument
[all...]
/frameworks/av/media/libstagefright/webm/
H A DWebmWriter.cpp489 uint64_t offsets[nElems]; local
498 offsets[i] = ::lseek(mFd, 0, SEEK_CUR);
503 mSegmentOffset = offsets[1];
504 mSegmentDataStart = offsets[2];
505 mInfoOffset = offsets[3];
507 mTracksOffset = offsets[4];
508 mCuesOffset = offsets[5];
/frameworks/rs/driver/
H A DrsdAllocation.cpp315 size_t offsets[Allocation::MAX_LOD]; local
316 memset(offsets, 0, sizeof(offsets));
324 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr;
336 offsets[lod] = o;
348 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod];
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBaseGridView.java512 * Get the x/y offsets to final position from current position if the view
515 * @param view The view to get offsets.
516 * @param offsets offsets[0] holds offset of X, offsets[1] holds offset of
519 public void getViewSelectedOffsets(View view, int[] offsets) { argument
520 mLayoutManager.getViewSelectedOffsets(view, offsets);
H A DGridLayoutManager.java244 * The scroll offsets of the viewport relative to the entire view.
1980 // mScrollOffsetSecondary is -16. fastLayout() put views based on offsets(not padding),
2194 public void getViewSelectedOffsets(View view, int[] offsets) { argument
2196 offsets[0] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2197 offsets[1] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
2199 offsets[1] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2200 offsets[0] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp237 jlong* offsets = (jlong*)env->GetPrimitiveArrayCritical(outOffsets, 0); local
238 if (offsets == NULL) {
243 offsets[0] = startOffset;
244 offsets[1] = length;
246 env->ReleasePrimitiveArrayCritical(outOffsets, offsets, 0);

Completed in 178 milliseconds