Searched refs:offsets (Results 1 - 19 of 19) sorted by relevance

/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/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/jni/android/graphics/
H A DYuvToJpegEncoder.h29 * @param offsets The offsets in each image plane with respect to inYuv.
34 int height, int* offsets, int jpegQuality);
45 uint8_t* yuv, int* offsets) = 0;
59 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets);
69 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets);
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/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/av/media/libstagefright/webm/
H A DWebmWriter.cpp456 uint64_t offsets[nElems]; local
465 offsets[i] = ::lseek(mFd, 0, SEEK_CUR);
470 mSegmentOffset = offsets[1];
471 mSegmentDataStart = offsets[2];
472 mInfoOffset = offsets[3];
474 mTracksOffset = offsets[4];
475 mCuesOffset = offsets[5];
/frameworks/base/core/java/android/service/textservice/
H A DSpellCheckerService.java422 final int[] offsets = new int[querySize];
436 offsets[i] = item.mStart;
443 : "<none>") + ", offset = " + offsets[i] + ", length = "
447 return new SentenceSuggestionsInfo(reconstructedSuggestions, offsets, lengths);
/frameworks/rs/
H A DrsAllocation.cpp117 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { argument
119 mHal.state.originX = offsets[0];
120 mHal.state.originY = offsets[1];
121 mHal.state.originZ = offsets[2];
122 mHal.state.originLOD = offsets[3];
123 mHal.state.originFace = offsets[4];
124 mHal.state.originArray[0] = offsets[5];
125 mHal.state.originArray[1] = offsets[6];
126 mHal.state.originArray[2] = offsets[7];
127 mHal.state.originArray[3] = offsets[
892 rsi_AllocationAdapterOffset(Context *rsc, RsAllocation va, const uint32_t *offsets, size_t len) argument
[all...]
H A DrsAllocation.h183 void adapterOffset(Context *rsc, const uint32_t *offsets, size_t len);
H A Drs.spec104 param const uint32_t *offsets
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp134 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size
764 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
772 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
779 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
922 tr.data.ptr.offsets = data.ipcObjects();
929 tr.data.ptr.offsets = 0;
1038 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
1082 << ", offsets addr="
1083 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << end
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbinder.c46 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets;
193 data.txn.data.ptr.offsets = 0;
199 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0;
342 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0;
412 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets;
/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java496 final long[] offsets = mStoredOffsets;
497 if (offsets == null) return;
503 children.get(i).setStartOffset(offsets[i]);
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
H A DBaseGridView.java605 * Returns the x/y offsets to final position from current position if the view
608 * @param view The view to get offsets.
609 * @param offsets offsets[0] holds offset of X, offsets[1] holds offset of Y.
611 public void getViewSelectedOffsets(View view, int[] offsets) { argument
612 mLayoutManager.getViewSelectedOffsets(view, offsets);
H A DGridLayoutManager.java458 * The scroll offsets of the viewport relative to the entire view.
2043 // mScrollOffsetSecondary is -16. fastRelayout() put views based on offsets(not padding),
2282 public void getViewSelectedOffsets(View view, int[] offsets) { argument
2284 offsets[0] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2285 offsets[1] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
2287 offsets[1] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2288 offsets[0] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifOutputStream.java469 long[] offsets = new long[stripCount];
471 offsets[i] = offset;
475 offsets);
/frameworks/rs/driver/
H A DrsdAllocation.cpp318 size_t offsets[Allocation::MAX_LOD]; local
319 memset(offsets, 0, sizeof(offsets));
327 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr;
339 offsets[lod] = o;
351 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod];
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp238 jlong* offsets = (jlong*)env->GetPrimitiveArrayCritical(outOffsets, 0); local
239 if (offsets == NULL) {
244 offsets[0] = startOffset;
245 offsets[1] = length;
247 env->ReleasePrimitiveArrayCritical(outOffsets, offsets, 0);

Completed in 664 milliseconds