/frameworks/base/graphics/java/android/graphics/ |
H A D | YuvImage.java | 139 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 D | TypeWrappers_test.cpp | 33 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 D | BlackLevelPattern.java | 25 * 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 D | YuvToJpegEncoder.h | 29 * @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 D | YuvToJpegEncoder.cpp | 27 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 D | SentenceSuggestionsInfo.java | 30 * 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/tests/src/android/support/v7/testutils/ |
H A D | TestUtils.java | 67 // and visible backgrounds. At each step we're keeping track of the combined offsets 86 // Update the offsets based on the location of current view in its parent's bounds 95 // we are respecting the offsets of our original view in the coordinate system of the 100 Pair<Integer, Integer> offsets = ancestorOffsets.get(i); 102 canvas.translate(offsets.first, offsets.second); 104 canvas.translate(-offsets.first, -offsets.second);
|
/frameworks/av/media/libstagefright/webm/ |
H A D | WebmWriter.cpp | 497 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/base/tools/aapt2/flatten/ |
H A D | TableFlattener.cpp | 327 std::vector<uint32_t> offsets; local 328 offsets.resize(num_total_entries, 0xffffffffu); 333 offsets[flat_entry.entry->id.value()] = values_buffer.size(); 349 // Only sparse encode if the offsets are representable in 2 bytes. 364 if (offsets[i] != ResTable_type::NO_ENTRY) { 365 CHECK((offsets[i] & 0x03) == 0); 367 indices->offset = util::HostToDevice16(offsets[i] / 4u); 375 indices[i] = util::HostToDevice32(offsets[i]);
|
/frameworks/rs/ |
H A D | rsAllocation.cpp | 126 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 D | rsAllocation.h | 189 void adapterOffset(Context *rsc, const uint32_t *offsets, size_t len);
|
H A D | rsHidlAdaptation.h | 105 static void AllocationAdapterOffset(RsContext rsc, RsAllocation alloc, const uint32_t * offsets, size_t offsets_length);
|
/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 446 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 D | MagnificationControllerTest.java | 199 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/libnbaio/ |
H A D | NBLog.cpp | 995 std::vector<NBLog::FormatEntry::iterator> offsets(nLogs); 998 offsets[i] = snapshots[i]->begin(); 1000 // initialize offsets 1006 if (offsets[i] != snapshots[i]->end()) { 1007 timespec ts = FormatEntry(offsets[i]).timestamp(); 1016 offsets[index] = FormatEntry(offsets[index]).copyWithAuthor(mFifoWriter, index); 1019 if (offsets[index] != snapshots[index]->end()) { 1020 timespec ts = FormatEntry(offsets[index]).timestamp();
|
/frameworks/native/libs/binder/ |
H A D | IPCThreadState.cpp | 134 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size 774 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), 782 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), 789 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), 932 tr.data.ptr.offsets = data.ipcObjects(); 939 tr.data.ptr.offsets = 0; 1048 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), 1072 << ", offsets addr=" 1073 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << end [all...] |
/frameworks/native/cmds/servicemanager/ |
H A D | binder.c | 47 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/base/core/java/android/view/animation/ |
H A D | AnimationSet.java | 496 final long[] offsets = mStoredOffsets; 497 if (offsets == null) return; 503 children.get(i).setStartOffset(offsets[i]);
|
/frameworks/rs/rsov/driver/ |
H A D | rsovAllocation.cpp | 96 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 D | ExifOutputStream.java | 469 long[] offsets = new long[stripCount]; 471 offsets[i] = offset; 475 offsets);
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
H A D | BaseGridView.java | 843 * Returns the x/y offsets to final position from current position if the view 846 * @param view The view to get offsets. 847 * @param offsets offsets[0] holds offset of X, offsets[1] holds offset of Y. 849 public void getViewSelectedOffsets(View view, int[] offsets) { argument 850 mLayoutManager.getViewSelectedOffsets(view, offsets);
|
/frameworks/minikin/tests/unittest/ |
H A D | GraphemeBreakTests.cpp | 309 TEST(GraphemeBreak, offsets) {
|
/frameworks/rs/driver/ |
H A D | rsdAllocation.cpp | 308 size_t offsets[Allocation::MAX_LOD]; local 309 memset(offsets, 0, sizeof(offsets)); 317 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr; 329 offsets[lod] = o; 341 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod];
|
/frameworks/base/libs/androidfw/ |
H A D | LoadedArsc.cpp | 223 // Make sure that there is enough room for the entry offsets. 229 LOG(ERROR) << "Entry offsets overlap actual entry data."; 234 LOG(ERROR) << "Entry offsets extend beyond chunk."; 244 const uint32_t* offsets = local 247 uint32_t offset = dtohl(offsets[i]);
|
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 268 jlong* offsets = (jlong*)env->GetPrimitiveArrayCritical(outOffsets, 0); local 269 if (offsets == NULL) { 274 offsets[0] = startOffset; 275 offsets[1] = length; 277 env->ReleasePrimitiveArrayCritical(outOffsets, offsets, 0);
|