/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/ |
H A D | VsyncConfigurationTest.cpp | 63 EXPECT_EQ(currentOffsets, offsets); in TEST_F() 64 EXPECT_EQ(offsets.late.sfOffset, 6'166'667); in TEST_F() 65 EXPECT_EQ(offsets.late.appOffset, 2'333'334); in TEST_F() 70 EXPECT_EQ(offsets.early.sfOffset, 666'667); in TEST_F() 71 EXPECT_EQ(offsets.early.appOffset, 833'334); in TEST_F() 88 EXPECT_EQ(currentOffsets, offsets); in TEST_F() 89 EXPECT_EQ(offsets.late.sfOffset, 611'111); in TEST_F() 90 EXPECT_EQ(offsets.late.appOffset, 2'333'333); in TEST_F() 96 EXPECT_EQ(offsets.early.appOffset, 833'333); in TEST_F() 137 EXPECT_EQ(currentOffsets, offsets); in TEST_F() [all …]
|
/aosp12/art/libdexfile/dex/ |
H A D | compact_offset_table_test.cc | 27 std::vector<uint32_t> offsets = { in TEST() local 34 for (uint32_t& offset : offsets) { in TEST() 43 CompactOffsetTable::Build(offsets, /*out*/ &data, /*out*/ &min_offset, /*out*/ &table_offset); in TEST() 47 const size_t before_size = offsets.size() * sizeof(offsets.front()); in TEST() 58 for (size_t i = 0; i < offsets.size(); ++i) { in TEST() 59 EXPECT_EQ(offsets[i], accessor.GetOffset(i)); in TEST() 64 std::sort(offsets.begin(), offsets.end()); in TEST() 66 CompactOffsetTable::Build(offsets, in TEST() 81 CompactOffsetTable::Build(offsets, /*out*/ &data2); in TEST() 83 for (size_t i = 0; i < offsets.size(); ++i) { in TEST() [all …]
|
H A D | compact_offset_table.cc | 63 void CompactOffsetTable::Build(const std::vector<uint32_t>& offsets, in Build() argument 67 CompactOffsetTable::Build(offsets, out_data, &out_offsets[0], &out_offsets[1]); in Build() 74 void CompactOffsetTable::Build(const std::vector<uint32_t>& offsets, in Build() argument 82 for (const uint32_t offset : offsets) { in Build() 93 while (block_start < offsets.size()) { in Build() 98 const size_t block_size = std::min(offsets.size() - block_start, kElementsPerIndex); in Build() 103 if (offsets[block_start + i] != 0u) { in Build() 114 const uint32_t offset = offsets[block_start + i]; in Build()
|
H A D | compact_offset_table.h | 55 static void Build(const std::vector<uint32_t>& offsets, std::vector<uint8_t>* out_data); 58 static void Build(const std::vector<uint32_t>& offsets,
|
/aosp12/frameworks/base/graphics/java/android/graphics/ |
H A D | YuvImage.java | 139 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
|
/aosp12/art/test/814-large-field-offsets/ |
H A D | Android.bp | 3 // Build rules for ART run-test `814-large-field-offsets`. 16 name: "art-run-test-814-large-field-offsets", 21 ":art-run-test-814-large-field-offsets-expected-stdout", 22 ":art-run-test-814-large-field-offsets-expected-stderr", 28 name: "art-run-test-814-large-field-offsets-expected-stdout", 29 out: ["art-run-test-814-large-field-offsets-expected-stdout.txt"], 36 name: "art-run-test-814-large-field-offsets-expected-stderr", 37 out: ["art-run-test-814-large-field-offsets-expected-stderr.txt"],
|
/aosp12/hardware/invensense/6515/libsensors_iio/software/simple_apps/self_test/ |
H A D | inv_self_test.c | 541 int offsets[3] = {0}; in main() local 546 offsets[0] = -accel_bias[0].l / 1000 / 2 / scale_ratio; in main() 550 offsets[1] = -accel_bias[1].l / 1000 / 2 / scale_ratio; in main() 554 offsets[2] = -accel_bias[2].l / 1000 / 2 / scale_ratio; in main() 559 offsets[0], offsets[1], offsets[2]); in main() 567 int offsets[3] = {0}; in main() local 570 offsets[0] = -gyro_bias[0].l / 1000 / scale_ratio; in main() 571 if (write_sysfs_int(mpu.gyro_x_offset, offsets[0]) < 0) { in main() 574 offsets[1] = -gyro_bias[1].l / 1000 / scale_ratio; in main() 578 offsets[2] = -gyro_bias[2].l / 1000 / scale_ratio; in main() [all …]
|
/aosp12/frameworks/base/libs/androidfw/tests/ |
H A D | TypeWrappers_test.cpp | 33 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()
|
/aosp12/hardware/google/gchips/gralloc4/src/core/ |
H A D | align_structs.py | 112 for offsets in offsets_list: 114 if offsets == None: 116 if len(offsets) != len(offsets_list[reference_index]): 121 for offsets in offsets_list: 122 if offsets == None: 125 max_offsets = offsets 128 if max_offsets[index] < offsets[index]: 129 max_offsets[index] = offsets[index]
|
/aosp12/frameworks/base/libs/hwui/jni/ |
H A D | YuvToJpegEncoder.cpp | 36 int height, int* offsets, int jpegQuality) { in encode() argument 56 compress(&cinfo, (uint8_t*) inYuv, offsets); in encode() 87 uint8_t* yuv, int* offsets) { in compress() argument 99 uint8_t* yPlanar = yuv + offsets[0]; in compress() 100 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress() 163 uint8_t* yuv, int* offsets) { in compress() argument 179 uint8_t* yuvOffset = yuv + offsets[0]; in compress() 235 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument 241 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL); in YuvImage_compressToJpeg() 252 env->ReleaseIntArrayElements(offsets, imgOffsets, 0); in YuvImage_compressToJpeg()
|
H A D | YuvToJpegEncoder.h | 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);
|
/aosp12/frameworks/av/media/libnblog/ |
H A D | Merger.cpp | 83 std::vector<EntryIterator> offsets; in merge() local 84 offsets.reserve(nLogs); in merge() 87 offsets.push_back(snapshots[i]->begin()); in merge() 95 if (offsets[i] != snapshots[i]->end()) { in merge() 96 std::unique_ptr<AbstractEntry> abstractEntry = AbstractEntry::buildEntry(offsets[i]); in merge() 107 offsets[index] = AbstractEntry::buildEntry(offsets[index])-> in merge() 111 if (offsets[index] != snapshots[index]->end()) { in merge() 112 int64_t ts = AbstractEntry::buildEntry(offsets[index])->timestamp(); in merge()
|
/aosp12/system/timezone/input_tools/android/tzlookup_generator/src/main/java/com/android/libcore/timezone/tzlookup/zonetree/ |
H A D | ZoneOffsetPeriod.java | 79 int[] offsets = new int[2]; in create() local 80 timeZone.getOffset(startMillis, false /* local */, offsets); in create() 81 return new ZoneOffsetPeriod(minTime, end, offsets[0], offsets[1], longName); in create() 206 int[] offsets = new int[2]; in getNameAtTime() local 207 timeZone.getOffset(startMillis, false /* local */, offsets); in getNameAtTime() 209 TimeZoneNames.NameType longNameType = offsets[1] == 0 in getNameAtTime()
|
/aosp12/frameworks/native/services/surfaceflinger/Scheduler/ |
H A D | VsyncModulator.cpp | 156 const VsyncConfig& offsets = getNextVsyncConfig(); in updateVsyncConfigLocked() local 157 mVsyncConfig = offsets; in updateVsyncConfigLocked() 160 const bool isEarly = &offsets == &mVsyncConfigSet.early; in updateVsyncConfigLocked() 161 const bool isEarlyGpu = &offsets == &mVsyncConfigSet.earlyGpu; in updateVsyncConfigLocked() 162 const bool isLate = &offsets == &mVsyncConfigSet.late; in updateVsyncConfigLocked() 169 return offsets; in updateVsyncConfigLocked()
|
/aosp12/frameworks/base/core/java/android/view/textservice/ |
H A D | SentenceSuggestionsInfo.java | 46 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()
|
/aosp12/hardware/broadcom/wlan/bcmdhd/dhdutil/ |
H A D | ucode_download.c | 124 actual_data_len = ROUNDUP(trx->offsets[0], 4) + ROUNDUP(trx->offsets[1], 4); in check_ucode_file() 157 fw_size = main_trx_hdr.offsets[0]; in proc_ucode_download() 158 second_offset = main_trx_hdr.offsets[2]; in proc_ucode_download() 196 ucode_len = ucode_trx_hdr->offsets[0]; in proc_ucode_download() 198 ROUNDUP(ucode_trx_hdr->offsets[0], 4); in proc_ucode_download() 199 initvals_len = ucode_trx_hdr->offsets[1]; in proc_ucode_download()
|
/aosp12/system/extras/boottime_tools/io_analysis/ |
H A D | check_file_read.py | 62 offsets = container.get(process_name) 63 if not offsets: 64 offsets = [] 65 container[process_name] = offsets 66 offsets.append(offset) 81 def add_merged_access(self, time, offsets, lens, process_names): argument 83 for i in range(len(offsets)): 88 total_read_offsets.add(offsets[i] + j) 151 self.read.add_merged_access(time, offsets, lens, process_names) 153 self.write.add_merged_access(time, offsets, lens, process_names) [all …]
|
/aosp12/frameworks/base/core/java/android/hardware/camera2/params/ |
H A D | BlackLevelPattern.java | 52 public BlackLevelPattern(int[] offsets) { in BlackLevelPattern() argument 53 if (offsets == null) { in BlackLevelPattern() 56 if (offsets.length < COUNT) { in BlackLevelPattern() 59 mCfaOffsets = Arrays.copyOf(offsets, COUNT); in BlackLevelPattern()
|
/aosp12/hardware/ti/am57x/libhwcomposer/ |
H A D | drmfb.cpp | 29 bo(), pitches(), offsets() in DRMFramebuffer() 47 this->offsets[0] = 0; in DRMFramebuffer() 58 this->offsets[1] = this->pitches[0] * img_hnd->iHeight; in DRMFramebuffer() 72 this->pitches, this->offsets, in DRMFramebuffer()
|
/aosp12/system/timezone/input_tools/android/zone_compactor/main/java/ |
H A D | ZoneCompactor.java | 49 private Map<String,Integer> offsets = new HashMap<>(); field in ZoneCompactor 96 offsets.put(zoneId, offset); in ZoneCompactor() 110 offsets.put(from, offsets.get(to)); in ZoneCompactor() 145 sortedOlsonIds.addAll(offsets.keySet()); in ZoneCompactor() 159 f.writeInt(offsets.get(actualZoneName)); in ZoneCompactor()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
H A D | NitzStateMachineTestSupport.java | 130 int[] offsets = new int[2]; in createNitzData() local 131 mZone.getOffset(mActualTimeMillis, false /* local */, offsets); in createNitzData() 132 int zoneOffsetMillis = offsets[0] + offsets[1]; in createNitzData() 134 zoneOffsetMillis, offsets[1], mActualTimeMillis, in createNitzData()
|
/aosp12/system/timezone/apex/tests/src/java/android/tzdata/mts/ |
H A D | TimeZoneRulesTest.java | 273 int[] offsets = new int[2]; in dstMeansSummer() local 274 timeZone.getOffset(winterTimeMillis, false /* local */, offsets); in dstMeansSummer() 275 assertEquals(winterOffsetRawMillis, offsets[0]); in dstMeansSummer() 276 assertEquals(winterOffsetDstMillis, offsets[1]); in dstMeansSummer() 278 timeZone.getOffset(summerTimeMillis, false /* local */, offsets); in dstMeansSummer() 279 assertEquals(summerOffsetRawMillis, offsets[0]); in dstMeansSummer() 280 assertEquals(summerOffsetDstMillis, offsets[1]); in dstMeansSummer()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
H A D | TimeZoneLookupHelper.java | 295 int[] offsets = new int[2]; in offsetMatchesAtTime() local 296 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime() 298 if (totalOffsetMillis != (offsets[0] + offsets[1])) { in offsetMatchesAtTime() 302 return isDst == null || isDst == (offsets[1] != 0); in offsetMatchesAtTime()
|
/aosp12/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
H A D | SourceTransformer.kt | 163 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)
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ |
H A D | SidefpsController.kt | 182 val offsets = sensorProps.getLocation(display.uniqueId).let { location -> regex 193 Pair(offsets.sensorLocationY, 0) 195 Pair(displayHeight - offsets.sensorLocationY - bounds.width(), displayWidth) 197 Pair(0, displayHeight - offsets.sensorLocationY - bounds.height()) 199 Pair(displayWidth, offsets.sensorLocationY)
|