Searched defs:offsets (Results 1 - 11 of 11) 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.cpp27 int height, int* offsets, int jpegQuality) {
45 compress(&cinfo, (uint8_t*) inYuv, offsets);
74 uint8_t* yuv, int* offsets) {
86 uint8_t* yPlanar = yuv + offsets[0];
87 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
150 uint8_t* yuv, int* offsets) {
166 uint8_t* yuvOffset = yuv + offsets[0];
222 jint format, jint width, jint height, jintArray offsets,
228 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL);
239 env->ReleaseIntArrayElements(offsets, imgOffset
26 encode(SkWStream* stream, void* inYuv, int width, int height, int* offsets, int jpegQuality) argument
73 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
149 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
221 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.cpp497 uint64_t offsets[nElems]; local
506 offsets[i] = ::lseek(mFd, 0, SEEK_CUR);
511 mSegmentOffset = offsets[1];
512 mSegmentDataStart = offsets[2];
513 mInfoOffset = offsets[3];
515 mTracksOffset = offsets[4];
516 mCuesOffset = offsets[5];
/frameworks/rs/driver/
H A DrsdAllocation.cpp317 size_t offsets[Allocation::MAX_LOD]; local
318 memset(offsets, 0, sizeof(offsets));
326 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr;
338 offsets[lod] = o;
350 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod];
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBaseGridView.java683 * Returns the x/y offsets to final position from current position if the view
686 * @param view The view to get offsets.
687 * @param offsets offsets[0] holds offset of X, offsets[1] holds offset of Y.
689 public void getViewSelectedOffsets(View view, int[] offsets) { argument
690 mLayoutManager.getViewSelectedOffsets(view, offsets);
H A DGridLayoutManager.java483 * The scroll offsets of the viewport relative to the entire view.
2188 // mScrollOffsetSecondary is -16. fastRelayout() put views based on offsets(not padding),
2434 public void getViewSelectedOffsets(View view, int[] offsets) { argument
2436 offsets[0] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2437 offsets[1] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
2439 offsets[1] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2440 offsets[0] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
/frameworks/rs/
H A DrsAllocation.cpp127 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { argument
129 mHal.state.originX = offsets[0];
130 mHal.state.originY = offsets[1];
131 mHal.state.originZ = offsets[2];
132 mHal.state.originLOD = offsets[3];
133 mHal.state.originFace = offsets[4];
134 mHal.state.originArray[0] = offsets[5];
135 mHal.state.originArray[1] = offsets[6];
136 mHal.state.originArray[2] = offsets[7];
137 mHal.state.originArray[3] = offsets[
976 rsi_AllocationAdapterOffset(Context *rsc, RsAllocation va, const uint32_t *offsets, size_t len) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp269 jlong* offsets = (jlong*)env->GetPrimitiveArrayCritical(outOffsets, 0); local
270 if (offsets == NULL) {
275 offsets[0] = startOffset;
276 offsets[1] = length;
278 env->ReleasePrimitiveArrayCritical(outOffsets, offsets, 0);

Completed in 3153 milliseconds