Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 24 of 24) sorted by relevance

/frameworks/base/graphics/java/android/graphics/
DYuvImage.java139 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg() local
142 rectangle.height(), offsets, mStrides, quality, stream, in compressToJpeg()
183 int[] offsets = null; in calculateOffsets() local
185 offsets = new int[] {top * mStrides[0] + left, in calculateOffsets()
188 return offsets; in calculateOffsets()
192 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; in calculateOffsets()
193 return offsets; in calculateOffsets()
196 return offsets; in calculateOffsets()
238 int format, int width, int height, int[] offsets, int[] strides, in nativeCompressToJpeg() argument
/frameworks/base/libs/androidfw/tests/
DTypeWrappers_test.cpp33 uint32_t offsets[3]; in createTypeData() local
34 t.entriesStart = t.header.headerSize + sizeof(offsets); in createTypeData()
37 offsets[0] = 0; in createTypeData()
48 offsets[1] = ResTable_type::NO_ENTRY; in createTypeData()
50 offsets[2] = sizeof(e1) + sizeof(v1); in createTypeData()
65 memcpy(p, offsets, sizeof(offsets)); in createTypeData()
66 p += sizeof(offsets); in createTypeData()
/frameworks/base/core/java/android/view/textservice/
DSentenceSuggestionsInfo.java46 SuggestionsInfo[] suggestionsInfos, int[] offsets, int[] lengths) { in SentenceSuggestionsInfo() argument
47 if (suggestionsInfos == null || offsets == null || lengths == null) { in SentenceSuggestionsInfo()
50 if (suggestionsInfos.length != offsets.length || offsets.length != lengths.length) { in SentenceSuggestionsInfo()
55 mOffsets = Arrays.copyOf(offsets, infoSize); in SentenceSuggestionsInfo()
/frameworks/base/core/jni/android/graphics/
DYuvToJpegEncoder.cpp27 int height, int* offsets, int jpegQuality) { in encode() argument
45 compress(&cinfo, (uint8_t*) inYuv, offsets); in encode()
74 uint8_t* yuv, int* offsets) { in compress() argument
86 uint8_t* yPlanar = yuv + offsets[0]; in compress()
87 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress()
150 uint8_t* yuv, int* offsets) { in compress() argument
166 uint8_t* yuvOffset = yuv + offsets[0]; in compress()
222 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument
228 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL); in YuvImage_compressToJpeg()
239 env->ReleaseIntArrayElements(offsets, imgOffsets, 0); in YuvImage_compressToJpeg()
DYuvToJpegEncoder.h34 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);
/frameworks/base/core/java/android/hardware/camera2/params/
DBlackLevelPattern.java47 public BlackLevelPattern(int[] offsets) { in BlackLevelPattern() argument
48 if (offsets == null) { in BlackLevelPattern()
51 if (offsets.length < COUNT) { in BlackLevelPattern()
54 mCfaOffsets = Arrays.copyOf(offsets, COUNT); in BlackLevelPattern()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp456 uint64_t offsets[nElems]; in start() local
465 offsets[i] = ::lseek(mFd, 0, SEEK_CUR); in start()
470 mSegmentOffset = offsets[1]; in start()
471 mSegmentDataStart = offsets[2]; in start()
472 mInfoOffset = offsets[3]; in start()
474 mTracksOffset = offsets[4]; in start()
475 mCuesOffset = offsets[5]; in start()
/frameworks/base/core/java/android/service/textservice/
DSpellCheckerService.java422 final int[] offsets = new int[querySize]; in reconstructSuggestions() local
436 offsets[i] = item.mStart; in reconstructSuggestions()
443 : "<none>") + ", offset = " + offsets[i] + ", length = " in reconstructSuggestions()
447 return new SentenceSuggestionsInfo(reconstructedSuggestions, offsets, lengths); in reconstructSuggestions()
/frameworks/rs/
DrsAllocation.cpp117 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { in adapterOffset() argument
119 mHal.state.originX = offsets[0]; in adapterOffset()
120 mHal.state.originY = offsets[1]; in adapterOffset()
121 mHal.state.originZ = offsets[2]; in adapterOffset()
122 mHal.state.originLOD = offsets[3]; in adapterOffset()
123 mHal.state.originFace = offsets[4]; in adapterOffset()
124 mHal.state.originArray[0] = offsets[5]; in adapterOffset()
125 mHal.state.originArray[1] = offsets[6]; in adapterOffset()
126 mHal.state.originArray[2] = offsets[7]; in adapterOffset()
127 mHal.state.originArray[3] = offsets[8]; in adapterOffset()
[all …]
DrsAllocation.h183 void adapterOffset(Context *rsc, const uint32_t *offsets, size_t len);
Drs.spec104 param const uint32_t *offsets
/frameworks/native/libs/binder/
DIPCThreadState.cpp134 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size in printBinderTransactionData()
764 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
772 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
779 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
922 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData()
929 tr.data.ptr.offsets = 0; in writeTransactionData()
1038 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand()
1083 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << endl; in executeCommand()
/frameworks/native/cmds/servicemanager/
Dbinder.c46 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets; in binder_dump_txn()
193 data.txn.data.ptr.offsets = 0; in binder_send_reply()
199 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0; in binder_send_reply()
342 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0; in binder_call()
412 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets; in bio_init_from_txn()
/frameworks/base/core/java/android/view/animation/
DAnimationSet.java496 final long[] offsets = mStoredOffsets; in restoreChildrenStartOffset() local
497 if (offsets == null) return; in restoreChildrenStartOffset()
503 children.get(i).setStartOffset(offsets[i]); in restoreChildrenStartOffset()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DBaseGridView.java611 public void getViewSelectedOffsets(View view, int[] offsets) { in getViewSelectedOffsets() argument
612 mLayoutManager.getViewSelectedOffsets(view, offsets); in getViewSelectedOffsets()
DGridLayoutManager.java2282 public void getViewSelectedOffsets(View view, int[] offsets) {
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/
DExifOutputStream.java469 long[] offsets = new long[stripCount]; in calculateAllOffset() local
471 offsets[i] = offset; in calculateAllOffset()
475 offsets); in calculateAllOffset()
/frameworks/rs/driver/
DrsdAllocation.cpp318 size_t offsets[Allocation::MAX_LOD]; in AllocationBuildPointerTable() local
319 memset(offsets, 0, sizeof(offsets)); in AllocationBuildPointerTable()
327 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr; in AllocationBuildPointerTable()
339 offsets[lod] = o; in AllocationBuildPointerTable()
351 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod]; in AllocationBuildPointerTable()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp238 jlong* offsets = (jlong*)env->GetPrimitiveArrayCritical(outOffsets, 0); in returnParcelFileDescriptor() local
239 if (offsets == NULL) { in returnParcelFileDescriptor()
244 offsets[0] = startOffset; in returnParcelFileDescriptor()
245 offsets[1] = length; in returnParcelFileDescriptor()
247 env->ReleasePrimitiveArrayCritical(outOffsets, offsets, 0); in returnParcelFileDescriptor()
/frameworks/base/docs/html/training/gestures/
Dscroll.jd78 actually draw anything. Scrollers track scroll offsets for you over time, but
139 visible in the screen. Because pixel offsets are generally treated as integers,
/frameworks/base/docs/html/training/custom-views/
Dmaking-interactive.jd215 … technique requires that you compute scroll offsets in {@link android.view.View#onDraw onDraw()}
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_motion.jd473 the device on a table, and then read the offsets for all three axes. You can then subtract that
/frameworks/base/docs/html/training/articles/
Dperf-jni.jd133 * field offsets. This native function looks up and caches interesting
/frameworks/base/docs/html/ndk/reference/
Dgroup___input.jd2261 <p>The motion event contains relative vertical and/or horizontal scroll offsets. Use getAxisValue t…