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

12

/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.cpp38 int height, int* offsets, int jpegQuality) {
58 compress(&cinfo, (uint8_t*) inYuv, offsets);
89 uint8_t* yuv, int* offsets) {
101 uint8_t* yPlanar = yuv + offsets[0];
102 uint8_t* vuPlanar = yuv + offsets[1]; //width * height;
165 uint8_t* yuv, int* offsets) {
181 uint8_t* yuvOffset = yuv + offsets[0];
237 jint format, jint width, jint height, jintArray offsets,
243 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL);
254 env->ReleaseIntArrayElements(offsets, imgOffset
37 encode(SkWStream* stream, void* inYuv, int width, int height, int* offsets, int jpegQuality) argument
88 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
164 compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets) argument
236 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/support/v7/appcompat/src/androidTest/java/androidx/appcompat/testutils/
H A DTestUtils.java68 // and visible backgrounds. At each step we're keeping track of the combined offsets
87 // Update the offsets based on the location of current view in its parent's bounds
96 // we are respecting the offsets of our original view in the coordinate system of the
101 Pair<Integer, Integer> offsets = ancestorOffsets.get(i);
103 canvas.translate(offsets.first, offsets.second);
105 canvas.translate(-offsets.first, -offsets.second);
/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/
H A DrsAllocation.cpp126 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { argument
128 mHal.state.originX = offsets[0];
129 mHal.state.originY = offsets[1];
130 mHal.state.originZ = offsets[2];
131 mHal.state.originLOD = offsets[3];
132 mHal.state.originFace = offsets[4];
133 mHal.state.originArray[0] = offsets[5];
134 mHal.state.originArray[1] = offsets[6];
135 mHal.state.originArray[2] = offsets[7];
136 mHal.state.originArray[3] = offsets[
936 rsi_AllocationAdapterOffset(Context *rsc, RsAllocation va, const uint32_t *offsets, size_t len) argument
[all...]
H A DrsAllocation.h189 void adapterOffset(Context *rsc, const uint32_t *offsets, size_t len);
/frameworks/base/core/java/android/service/textservice/
H A DSpellCheckerService.java446 final int[] offsets = new int[querySize];
460 offsets[i] = item.mStart;
467 : "<none>") + ", offset = " + offsets[i] + ", length = "
471 return new SentenceSuggestionsInfo(reconstructedSuggestions, offsets, lengths);
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DMagnificationControllerTest.java199 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale);
203 final MagnificationSpec expectedSpec = getMagnificationSpec(scale, offsets);
223 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
224 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets);
279 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
280 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets);
317 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter,
320 MagnificationController.MAX_SCALE, offsets);
779 private MagnificationSpec getMagnificationSpec(float scale, PointF offsets) { argument
780 return getMagnificationSpec(scale, offsets
[all...]
/frameworks/av/media/libnblog/
H A DNBLog.cpp1062 std::vector<NBLog::EntryIterator> offsets(nLogs);
1065 offsets[i] = snapshots[i]->begin();
1067 // initialize offsets
1073 if (offsets[i] != snapshots[i]->end()) {
1074 int64_t ts = AbstractEntry::buildEntry(offsets[i])->timestamp();
1083 offsets[index] = AbstractEntry::buildEntry(offsets[index])->copyWithAuthor(mFifoWriter,
1087 if (offsets[index] != snapshots[index]->end()) {
1088 int64_t ts = AbstractEntry::buildEntry(offsets[index])->timestamp();
/frameworks/native/libs/binder/
H A DIPCThreadState.cpp134 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size
813 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
821 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
828 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
973 tr.data.ptr.offsets = data.ipcObjects();
980 tr.data.ptr.offsets = 0;
1089 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets),
1113 << ", offsets addr="
1114 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << end
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbinder.c47 binder_size_t *offs = (binder_size_t *)(uintptr_t)txn->data.ptr.offsets;
206 data.txn.data.ptr.offsets = 0;
212 data.txn.data.ptr.offsets = (uintptr_t)reply->offs0;
359 writebuf.txn.data.ptr.offsets = (uintptr_t)msg->offs0;
429 bio->offs = bio->offs0 = (binder_size_t *)(intptr_t)txn->data.ptr.offsets;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DNitzStateMachineTest.java651 int[] offsets = new int[2];
652 mZone.getOffset(mActualTimeMillis, false /* local */, offsets);
653 int zoneOffsetMillis = offsets[0] + offsets[1];
655 .createForTests(zoneOffsetMillis, offsets[1], mActualTimeMillis, null);
/frameworks/base/tools/aapt2/format/binary/
H A DTableFlattener.cpp331 std::vector<uint32_t> offsets; local
332 offsets.resize(num_total_entries, 0xffffffffu);
337 offsets[flat_entry.entry->id.value()] = values_buffer.size();
353 // Only sparse encode if the offsets are representable in 2 bytes.
368 if (offsets[i] != ResTable_type::NO_ENTRY) {
369 CHECK((offsets[i] & 0x03) == 0);
371 indices->offset = util::HostToDevice16(offsets[i] / 4u);
379 indices[i] = util::HostToDevice32(offsets[i]);
/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/rs/rsov/compiler/
H A DWrapper.cpp249 // Decorate each member with proper offsets
278 std::vector<uint32_t> offsets; local
288 offsets.push_back(offset);
295 const uint32_t offset = offsets[index];
/frameworks/rs/rsov/driver/
H A DrsovAllocation.cpp96 size_t offsets[Allocation::MAX_LOD]; local
97 memset(offsets, 0, sizeof(offsets));
106 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr;
118 offsets[lod] = o;
130 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod];
/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/native/libs/vr/libvrflinger/
H A Dhardware_composer.cpp728 VsyncEyeOffsets offsets;
729 offsets.left_ns =
735 offsets.right_ns = (target_display_->vsync_period_ns - vblank_ns) / 2;
738 offsets.right_ns =
739 property_get_int64(kRightEyeOffsetProperty, offsets.right_ns);
741 return offsets;
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
H A DBaseGridView.java844 * Returns the x/y offsets to final position from current position if the view
847 * @param view The view to get offsets.
848 * @param offsets offsets[0] holds offset of X, offsets[1] holds offset of Y.
850 public void getViewSelectedOffsets(View view, int[] offsets) { argument
851 mLayoutManager.getViewSelectedOffsets(view, offsets);
/frameworks/minikin/tests/unittest/
H A DGraphemeBreakTests.cpp313 TEST(GraphemeBreak, offsets) {
/frameworks/rs/driver/
H A DrsdAllocation.cpp310 size_t offsets[Allocation::MAX_LOD]; local
311 memset(offsets, 0, sizeof(offsets));
319 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr;
331 offsets[lod] = o;
343 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod];

Completed in 1222 milliseconds

12