Home
last modified time | relevance | path

Searched refs:offsets (Results 1 – 25 of 41) 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/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
DSideFpsOverlayInteractorTest.kt81 val offsets by collectLastValue(interactor.overlayOffsets) in testOverlayOffsetUpdates() constant
85 assertThat(offsets?.displayId).isEqualTo("") in testOverlayOffsetUpdates()
86 assertThat(offsets?.sensorLocationX).isEqualTo(540) in testOverlayOffsetUpdates()
87 assertThat(offsets?.sensorLocationY).isEqualTo(1636) in testOverlayOffsetUpdates()
88 assertThat(offsets?.sensorRadius).isEqualTo(130) in testOverlayOffsetUpdates()
93 assertThat(offsets?.displayId).isEqualTo("display_id_1") in testOverlayOffsetUpdates()
94 assertThat(offsets?.sensorLocationX).isEqualTo(100) in testOverlayOffsetUpdates()
95 assertThat(offsets?.sensorLocationY).isEqualTo(300) in testOverlayOffsetUpdates()
96 assertThat(offsets?.sensorRadius).isEqualTo(20) in testOverlayOffsetUpdates()
101 assertThat(offsets?.displayId).isEqualTo(SensorLocationInternal.DEFAULT.displayId) in testOverlayOffsetUpdates()
[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.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()
/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/graphics/java/android/graphics/
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
/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/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()
/frameworks/base/libs/hwui/jni/
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);
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()
/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/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DSideFpsOverlayInteractor.kt51 combine(displayId, fingerprintPropertyRepository.sensorLocations) { displayId, offsets -> in offsets() method
52 offsets[displayId] ?: SensorLocationInternal.DEFAULT in offsets()
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/
DSourceTransformer.kt163 offsets[begin] + range.begin.column - 1, in <lambda>()
165 range.end.column + offsets[range.end.line - 1], newStmt) in <lambda>()
167 offsets[begin + idx] += line.length - processedCode[begin + idx].length in <lambda>()
216 private var offsets: IntArray = IntArray(0) in <lambda>() variable
232 offsets = IntArray(processedCode.size) in <lambda>()
/frameworks/av/media/libstagefright/webm/
DWebmWriter.cpp575 uint64_t offsets[nElems]; in start() local
584 offsets[i] = ::lseek(mFd, 0, SEEK_CUR); in start()
589 mSegmentOffset = offsets[1]; in start()
590 mSegmentDataStart = offsets[2]; in start()
591 mInfoOffset = offsets[3]; in start()
593 mTracksOffset = offsets[4]; in start()
594 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/packages/SystemUI/src/com/android/systemui/biometrics/
DSideFpsController.kt268 val offsets = in <lambda>() constant
275 overlayOffsets = offsets in <lambda>()
280 offsets.isYAligned(), in <lambda>()
285 offsets.isYAligned(), in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
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);
/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.cpp138 << "\toffsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size << " bytes)\n"; in printBinderTransactionData()
1071 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
1078 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
1083 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse()
1249 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData()
1256 tr.data.ptr.offsets = 0; in writeTransactionData()
1375 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand()
1413 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << "\n"; in executeCommand()
/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/native/services/surfaceflinger/fuzzer/
Dsurfaceflinger_scheduler_fuzzer.cpp300 const scheduler::VsyncConfigSet offsets = {early, earlyGpu, late, nanos(HWC_MIN_WORK_DURATION)}; in fuzzVSyncModulator() local
302 sp<FuzzImplVsyncModulator>::make(offsets, scheduler::Now); in fuzzVSyncModulator()
303 (void)vSyncModulator->setVsyncConfigSet(offsets); in fuzzVSyncModulator()

12