Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 22 of 22) 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/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/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.cpp25 int height, int* offsets, int jpegQuality) { in encode() argument
43 compress(&cinfo, (uint8_t*) inYuv, offsets); in encode()
72 uint8_t* yuv, int* offsets) { in compress() argument
84 uint8_t* yPlanar = yuv + offsets[0]; in compress()
85 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress()
148 uint8_t* yuv, int* offsets) { in compress() argument
164 uint8_t* yuvOffset = yuv + offsets[0]; in compress()
220 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument
226 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL); in YuvImage_compressToJpeg()
237 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/av/media/libstagefright/webm/
DWebmWriter.cpp489 uint64_t offsets[nElems]; in start() local
498 offsets[i] = ::lseek(mFd, 0, SEEK_CUR); in start()
503 mSegmentOffset = offsets[1]; in start()
504 mSegmentDataStart = offsets[2]; in start()
505 mInfoOffset = offsets[3]; in start()
507 mTracksOffset = offsets[4]; in start()
508 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/native/libs/binder/
DIPCThreadState.cpp151 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size in printBinderTransactionData()
761 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
769 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
776 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
919 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData()
926 tr.data.ptr.offsets = 0; in writeTransactionData()
1035 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand()
1080 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << endl; in executeCommand()
/frameworks/native/cmds/servicemanager/
Dbinder.c45 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets; in binder_dump_txn()
190 data.txn.data.ptr.offsets = 0; in binder_send_reply()
196 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0; in binder_send_reply()
339 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0; in binder_call()
409 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.java502 public void getViewSelectedOffsets(View view, int[] offsets) { in getViewSelectedOffsets() argument
503 mLayoutManager.getViewSelectedOffsets(view, offsets); in getViewSelectedOffsets()
DGridLayoutManager.java2033 public void getViewSelectedOffsets(View view, int[] offsets) {
2035 offsets[0] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2036 offsets[1] = getSecondarySystemScrollPosition(view) - mScrollOffsetSecondary;
2038 offsets[1] = getPrimarySystemScrollPosition(view) - mScrollOffsetPrimary;
2039 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/base/libs/hwui/
DSpotShadow.h69 static int getEdgeStartIndex(const int* offsets, int rayIndex, int totalRayNumber,
DSpotShadow.cpp1196 inline int SpotShadow::getEdgeStartIndex(const int* offsets, int rayIndex, int totalRayNumber, in getEdgeStartIndex() argument
1198 int tempOffset = offsets[rayIndex]; in getEdgeStartIndex()
/frameworks/rs/driver/
DrsdAllocation.cpp315 size_t offsets[Allocation::MAX_LOD]; in AllocationBuildPointerTable() local
316 memset(offsets, 0, sizeof(offsets)); in AllocationBuildPointerTable()
324 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr; in AllocationBuildPointerTable()
336 offsets[lod] = o; in AllocationBuildPointerTable()
348 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod]; in AllocationBuildPointerTable()
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp236 jlong* offsets = (jlong*)env->GetPrimitiveArrayCritical(outOffsets, 0); in returnParcelFileDescriptor() local
237 if (offsets == NULL) { in returnParcelFileDescriptor()
242 offsets[0] = startOffset; in returnParcelFileDescriptor()
243 offsets[1] = length; in returnParcelFileDescriptor()
245 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