Home
last modified time | relevance | path

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

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DVsyncConfigurationTest.cpp61 auto offsets = mWorkDuration.getConfigsForRefreshRate(60_Hz); in TEST_F() local
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()
67 EXPECT_EQ(offsets.late.sfWorkDuration, 10'500'000ns); in TEST_F()
68 EXPECT_EQ(offsets.late.appWorkDuration, 20'500'000ns); 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()
73 EXPECT_EQ(offsets.early.sfWorkDuration, 16'000'000ns); in TEST_F()
74 EXPECT_EQ(offsets.early.appWorkDuration, 16'500'000ns); in TEST_F()
[all …]
/frameworks/base/tools/aapt2/format/binary/
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()
114 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() local
118 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
133 auto offsets = WriteAllEntries(table->GetPartitionedView(), writer); in TEST_F() local
137 EXPECT_EQ(offsets, expected_offsets); in TEST_F()
[all …]
DTableFlattener.cpp180 std::vector<uint32_t> offsets; in FlattenConfig() local
181 offsets.resize(num_total_entries, 0xffffffffu); in FlattenConfig()
191 offsets[flat_entry.entry->id.value()] = res_entry_writer->Write(&flat_entry); in FlattenConfig()
222 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig()
223 CHECK((offsets[i] & 0x03) == 0); in FlattenConfig()
225 indices->offset = android::util::HostToDevice16(offsets[i] / 4u); in FlattenConfig()
236 indices[i] = android::util::HostToDevice16(offsets[i] / 4u); in FlattenConfig()
241 indices[i] = android::util::HostToDevice32(offsets[i]); in FlattenConfig()
/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/java/android/hardware/camera2/params/
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()
/frameworks/base/graphics/java/android/graphics/
DYuvImage.java242 int[] offsets = calculateOffsets(rectangle.left, rectangle.top); in compressToJpeg() local
245 rectangle.height(), offsets, mStrides, quality, stream, in compressToJpeg()
389 int[] offsets = null; in calculateOffsets() local
391 offsets = new int[] {top * mStrides[0] + left, in calculateOffsets()
394 return offsets; in calculateOffsets()
398 offsets = new int[] {top * mStrides[0] + left / 2 * 4}; in calculateOffsets()
399 return offsets; in calculateOffsets()
402 return offsets; in calculateOffsets()
450 int format, int width, int height, int[] offsets, int[] strides, in nativeCompressToJpeg() argument
/frameworks/av/media/libnblog/
DMerger.cpp83 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()
/frameworks/native/services/surfaceflinger/Scheduler/
DVsyncModulator.cpp167 const VsyncConfig& offsets = getNextVsyncConfig(); in updateVsyncConfigLocked() local
168 mVsyncConfig = offsets; in updateVsyncConfigLocked()
171 const bool isEarly = &offsets == &mVsyncConfigSet.early; in updateVsyncConfigLocked()
172 const bool isEarlyGpu = &offsets == &mVsyncConfigSet.earlyGpu; in updateVsyncConfigLocked()
173 const bool isLate = &offsets == &mVsyncConfigSet.late; in updateVsyncConfigLocked()
180 return offsets; in updateVsyncConfigLocked()
DVsyncConfiguration.cpp51 if (const auto offsets = mOffsetsCache.get(fps)) { in getConfigsForRefreshRateLocked() local
52 return offsets->get(); in getConfigsForRefreshRateLocked()
/frameworks/base/libs/hwui/jni/
DYuvToJpegEncoder.h38 int height, int* offsets, int jpegQuality);
49 uint8_t* yuv, int* offsets) = 0;
63 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets);
73 void compress(jpeg_compress_struct* cinfo, uint8_t* yuv, int* offsets);
DYuvToJpegEncoder.cpp101 int height, int* offsets, int jpegQuality) { in encode() argument
121 compress(&cinfo, (uint8_t*) inYuv, offsets); in encode()
152 uint8_t* yuv, int* offsets) { in compress() argument
164 uint8_t* yPlanar = yuv + offsets[0]; in compress()
165 uint8_t* vuPlanar = yuv + offsets[1]; //width * height; in compress()
228 uint8_t* yuv, int* offsets) { in compress() argument
244 uint8_t* yuvOffset = yuv + offsets[0]; in compress()
420 jint format, jint width, jint height, jintArray offsets, in YuvImage_compressToJpeg() argument
426 jint* imgOffsets = env->GetIntArrayElements(offsets, NULL); in YuvImage_compressToJpeg()
437 env->ReleaseIntArrayElements(offsets, imgOffsets, 0); in YuvImage_compressToJpeg()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DSourceTransformer.kt73 offsets = IntArray(processedCode.size) in <lambda>()
83 private var offsets: IntArray = IntArray(0) in <lambda>() variable
207 offsets[begin] + range.begin.column - 1, in <lambda>()
209 range.end.column + offsets[range.end.line - 1], newStmt) in <lambda>()
211 offsets[begin + idx] += line.length - processedCode[begin + idx].length in <lambda>()
226 offsets[begin] + range.begin.column - 1, in <lambda>()
228 range.end.column + offsets[range.end.line - 1], newCall.toString()) in <lambda>()
230 offsets[begin + idx] += line.length - processedCode[begin + idx].length in <lambda>()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/
DNitzStateMachineTestSupport.java135 int[] offsets = new int[2]; in createNitzData() local
136 mZone.getOffset(mActualTimeMillis, false /* local */, offsets); in createNitzData()
137 int zoneOffsetMillis = offsets[0] + offsets[1]; in createNitzData()
139 zoneOffsetMillis, offsets[1], mActualTimeMillis, in createNitzData()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DTimeZoneLookupHelper.java295 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()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp594 uint64_t offsets[nElems]; in start() local
603 offsets[i] = ::lseek(mFd, 0, SEEK_CUR); in start()
608 mSegmentOffset = offsets[1]; in start()
609 mSegmentDataStart = offsets[2]; in start()
610 mInfoOffset = offsets[3]; in start()
612 mTracksOffset = offsets[4]; in start()
613 mCuesOffset = offsets[5]; in start()
/frameworks/av/media/codec2/sfplugin/tests/
DCCodecBuffers_test.cpp441 std::vector<size_t> offsets) in TestGraphicAllocation() argument
445 mOffsets(offsets) { in TestGraphicAllocation()
632 std::vector<size_t> offsets) { in CreateGraphicBlock() argument
638 offsets); in CreateGraphicBlock()
739 std::vector<size_t> offsets(3); in CreateAndFillBufferFromParam() local
749 offsets[planeOrder[0]] = 0; in CreateAndFillBufferFromParam()
752 offsets[planeOrder[i]] = offsets[planeOrder[i - 1]] + planeSize; in CreateAndFillBufferFromParam()
754 offsets[planeOrder[i]] += kGapLength; in CreateAndFillBufferFromParam()
760 offsets[planeOrder[i]] = offsets[planeOrder[i - 1]] + 1; in CreateAndFillBufferFromParam()
770 offsets); in CreateAndFillBufferFromParam()
/frameworks/base/core/java/android/service/textservice/
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()
/frameworks/rs/
DrsAllocation.cpp126 void Allocation::adapterOffset(Context *rsc, const uint32_t *offsets, size_t len) { in adapterOffset() argument
128 mHal.state.originX = offsets[0]; in adapterOffset()
129 mHal.state.originY = offsets[1]; in adapterOffset()
130 mHal.state.originZ = offsets[2]; in adapterOffset()
131 mHal.state.originLOD = offsets[3]; in adapterOffset()
132 mHal.state.originFace = offsets[4]; in adapterOffset()
133 mHal.state.originArray[0] = offsets[5]; in adapterOffset()
134 mHal.state.originArray[1] = offsets[6]; in adapterOffset()
135 mHal.state.originArray[2] = offsets[7]; in adapterOffset()
136 mHal.state.originArray[3] = offsets[8]; in adapterOffset()
[all …]
/frameworks/base/core/java/android/view/animation/
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()
/frameworks/native/libs/binder/
DIPCThreadState.cpp137 << "\toffsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size << " bytes)\n"; in printBinderTransactionData()
1055 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
1062 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
1067 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
1233 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData()
1240 tr.data.ptr.offsets = 0; in writeTransactionData()
1359 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand()
1397 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << "\n"; in executeCommand()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DFullScreenMagnificationControllerTest.java325 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale);
330 final MagnificationSpec expectedSpec = getMagnificationSpec(scale, offsets);
359 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
360 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets);
432 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale);
433 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets);
505 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter,
508 MagnificationScaleProvider.MAX_SCALE, offsets);
1569 private MagnificationSpec getMagnificationSpec(float scale, PointF offsets) {
1570 return getMagnificationSpec(scale, offsets.x, offsets.y);
/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/androidfw/
DLoadedArsc.cpp256 const auto offsets = type_chunk.offset(dtohs(type_chunk->header.headerSize)); in GetEntryOffset() local
262 auto sparse_indices = offsets.convert<ResTable_sparseTypeEntry>().iterator(); in GetEntryOffset()
300 const auto entry_offset_ptr = offsets.convert<uint16_t>() + entry_index; in GetEntryOffset()
306 const auto entry_offset_ptr = offsets.convert<uint32_t>() + entry_index; in GetEntryOffset()
/frameworks/rs/driver/
DrsdAllocation.cpp311 size_t offsets[Allocation::MAX_LOD]; in AllocationBuildPointerTable() local
312 memset(offsets, 0, sizeof(offsets)); in AllocationBuildPointerTable()
320 offsets[ct] = (size_t)alloc->mHal.drvState.lod[ct].mallocPtr; in AllocationBuildPointerTable()
332 offsets[lod] = o; in AllocationBuildPointerTable()
344 alloc->mHal.drvState.lod[lod].mallocPtr = ptr + offsets[lod]; in AllocationBuildPointerTable()
/frameworks/minikin/tests/unittest/
DGraphemeBreakTests.cpp307 TEST(GraphemeBreak, offsets) { in TEST() argument

12