Home
last modified time | relevance | path

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

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
H A DSideFpsOverlayInteractorTest.kt81 val offsets by collectLastValue(interactor.overlayOffsets) regex
85 assertThat(offsets?.displayId).isEqualTo("")
86 assertThat(offsets?.sensorLocationX).isEqualTo(540)
87 assertThat(offsets?.sensorLocationY).isEqualTo(1636)
88 assertThat(offsets?.sensorRadius).isEqualTo(130)
93 assertThat(offsets?.displayId).isEqualTo("display_id_1")
94 assertThat(offsets?.sensorLocationX).isEqualTo(100)
95 assertThat(offsets?.sensorLocationY).isEqualTo(300)
96 assertThat(offsets?.sensorRadius).isEqualTo(20)
102 assertThat(offsets?.sensorLocationX)
[all …]
/aosp14/frameworks/base/tools/aapt2/format/binary/
H A DResEntryWriter_test.cpp62 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() local
67 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
74 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() local
79 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
103 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() local
107 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
118 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
137 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
148 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
176 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
[all …]
H A DTableFlattener.cpp182 std::vector<uint32_t> offsets; in FlattenConfig() local
183 offsets.resize(num_total_entries, 0xffffffffu); in FlattenConfig()
193 offsets[flat_entry.entry->id.value()] = res_entry_writer->Write(&flat_entry); in FlattenConfig()
224 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig()
225 CHECK((offsets[i] & 0x03) == 0); in FlattenConfig()
227 indices->offset = android::util::HostToDevice16(offsets[i] / 4u); in FlattenConfig()
238 indices[i] = android::util::HostToDevice16(offsets[i] / 4u); in FlattenConfig()
243 indices[i] = android::util::HostToDevice32(offsets[i]); in FlattenConfig()
/aosp14/frameworks/base/graphics/java/android/graphics/
H A DYuvImage.java239 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg() local
242 rectangle.height(), offsets, mStrides, quality, stream, in compressToJpeg()
353 int[] offsets = null; in calculateOffsets() local
355 offsets = new int[] {top * mStrides[0] + left, in calculateOffsets()
358 return offsets; in calculateOffsets()
362 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; in calculateOffsets()
363 return offsets; in calculateOffsets()
366 return offsets; in calculateOffsets()
414 int format, int width, int height, int[] offsets, int[] strides, in nativeCompressToJpeg() argument
/aosp14/frameworks/base/core/java/android/view/textservice/
H A 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()
/aosp14/frameworks/base/core/java/android/hardware/camera2/params/
H A DBlackLevelPattern.java56 public BlackLevelPattern(@NonNull int[] offsets) { in BlackLevelPattern() argument
57 if (offsets == null) { in BlackLevelPattern()
60 if (offsets.length < COUNT) { in BlackLevelPattern()
63 mCfaOffsets = Arrays.copyOf(offsets, COUNT); in BlackLevelPattern()
/aosp14/frameworks/base/libs/hwui/jni/
H A DYuvToJpegEncoder.h37 int height, int* offsets, int jpegQuality);
48 uint8_t* yuv, int* offsets) = 0;
62 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets);
72 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets);
H A DYuvToJpegEncoder.cpp103 int height, int* offsets, int jpegQuality) { in encode() argument
123 compress(&cinfo, (uint8_t*) inYuv, offsets); in encode()
154 uint8_t* yuv, int* offsets) { in compress() argument
166 uint8_t* yPlanar = yuv + offsets[0]; in compress()
167 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress()
230 uint8_t* yuv, int* offsets) { in compress() argument
246 uint8_t* yuvOffset = yuv + offsets[0]; in compress()
395 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument
401 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL); in YuvImage_compressToJpeg()
412 env->ReleaseIntArrayElements(offsets, imgOffsets, 0); in YuvImage_compressToJpeg()
/aosp14/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
H A DSourceTransformer.kt163 offsets[begin] + range.begin.column - 1,
165 range.end.column + offsets[range.end.line - 1], newStmt)
167 offsets[begin + idx] += line.length - processedCode[begin + idx].length
216 private var offsets: IntArray = IntArray(0)
232 offsets = IntArray(processedCode.size)
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
H A DSideFpsOverlayInteractor.kt51 combine(displayId, fingerprintPropertyRepository.sensorLocations) { displayId, offsets ->
52 offsets[displayId] ?: SensorLocationInternal.DEFAULT
/aosp14/frameworks/base/core/java/android/service/textservice/
H A DSpellCheckerService.java469 final int[] offsets = new int[querySize]; in reconstructSuggestions() local
483 offsets[i] = item.mStart; in reconstructSuggestions()
490 : "<none>") + ", offset = " + offsets[i] + ", length = " in reconstructSuggestions()
494 return new SentenceSuggestionsInfo(reconstructedSuggestions, offsets, lengths); in reconstructSuggestions()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
H A DSideFpsController.kt268 val offsets = regex
275 overlayOffsets = offsets
280 offsets.isYAligned(),
285 offsets.isYAligned(),
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
H A DFullScreenMagnificationControllerTest.java280 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale);
285 final MagnificationSpec expectedSpec = getMagnificationSpec(scale, offsets);
314 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
315 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets);
387 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
388 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets);
460 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter,
463 MagnificationScaleProvider.MAX_SCALE, offsets);
1437 private MagnificationSpec getMagnificationSpec(float scale, PointF offsets) {
1438 return getMagnificationSpec(scale, offsets.x, offsets.y);
/aosp14/frameworks/base/core/java/android/view/animation/
H A DAnimationSet.java512 final long[] offsets = mStoredOffsets; in restoreChildrenStartOffset() local
513 if (offsets == null) return; in restoreChildrenStartOffset()
519 children.get(i).setStartOffset(offsets[i]); in restoreChildrenStartOffset()
/aosp14/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
H A DExifOutputStream.java469 long[] offsets = new long[stripCount]; in calculateAllOffset() local
471 offsets[i] = offset; in calculateAllOffset()
475 offsets); in calculateAllOffset()
/aosp14/frameworks/base/libs/androidfw/
H A DLoadedArsc.cpp252 const auto offsets = type_chunk.offset(dtohs(type_chunk->header.headerSize)); in GetEntryOffset() local
258 auto sparse_indices = offsets.convert<ResTable_sparseTypeEntry>().iterator(); in GetEntryOffset()
296 const auto entry_offset_ptr = offsets.convert<uint16_t>() + entry_index; in GetEntryOffset()
302 const auto entry_offset_ptr = offsets.convert<uint32_t>() + entry_index; in GetEntryOffset()
/aosp14/system/core/fs_mgr/liblp/
H A Dreader.cpp456 std::vector<int64_t> offsets = { in ReadMetadata() local
462 for (const auto& offset : offsets) { in ReadMetadata()
/aosp14/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp261 jlong* offsets = reinterpret_cast<jlong*>(env->GetPrimitiveArrayCritical(out_offsets, 0)); in ReturnParcelFileDescriptor() local
262 if (offsets == nullptr) { in ReturnParcelFileDescriptor()
267 offsets[0] = start_offset; in ReturnParcelFileDescriptor()
268 offsets[1] = length; in ReturnParcelFileDescriptor()
270 env->ReleasePrimitiveArrayCritical(out_offsets, offsets, 0); in ReturnParcelFileDescriptor()
/aosp14/frameworks/base/graphics/java/android/graphics/drawable/
H A DGradientDrawable.java710 public void setColors(@Nullable @ColorInt int[] colors, @Nullable float[] offsets) { in setColors() argument
712 mGradientState.mPositions = offsets; in setColors()
/aosp14/frameworks/base/tools/aapt2/integration-tests/CommandTests/
H A Dandroid-33.jarAndroidManifest.xml META-INF/ META-INF/MANIFEST.MF NOTICES/ NOTICES/libcore ...