/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | PhaseOffsetsTest.cpp | 63 auto offsets = mPhaseDurations.getOffsetsForRefreshRate(60.0f); in TEST_F() local 65 EXPECT_EQ(currentOffsets, offsets); in TEST_F() 66 EXPECT_EQ(offsets.late.sf, 6'166'667); in TEST_F() 68 EXPECT_EQ(offsets.late.app, 2'333'334); in TEST_F() 70 EXPECT_EQ(offsets.early.sf, 666'667); in TEST_F() 72 EXPECT_EQ(offsets.early.app, 833'334); in TEST_F() 74 EXPECT_EQ(offsets.earlyGl.sf, 3'166'667); in TEST_F() 76 EXPECT_EQ(offsets.earlyGl.app, 15'500'001); in TEST_F() 82 auto offsets = mPhaseDurations.getOffsetsForRefreshRate(90.0f); in TEST_F() local 84 EXPECT_EQ(currentOffsets, offsets); in TEST_F() [all …]
|
/frameworks/base/graphics/java/android/graphics/ |
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
|
/frameworks/base/libs/androidfw/tests/ |
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()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | VSyncModulator.cpp | 160 const Offsets& offsets = getNextOffsets(); in updateOffsetsLocked() local 162 mPhaseOffsetControl.setPhaseOffset(mSfConnectionHandle, offsets.sf); in updateOffsetsLocked() 163 mPhaseOffsetControl.setPhaseOffset(mAppConnectionHandle, offsets.app); in updateOffsetsLocked() 165 mOffsets = offsets; in updateOffsetsLocked() 171 const bool isEarly = &offsets == &mOffsetsConfig.early; in updateOffsetsLocked() 172 const bool isEarlyGl = &offsets == &mOffsetsConfig.earlyGl; in updateOffsetsLocked() 173 const bool isLate = &offsets == &mOffsetsConfig.late; in updateOffsetsLocked()
|
D | PhaseOffsets.cpp | 107 std::unordered_map<float, Offsets> offsets; in initializeOffsets() local 110 offsets.emplace(refreshRate, in initializeOffsets() 113 return offsets; in initializeOffsets() 276 std::unordered_map<float, Offsets> offsets; in initializeOffsets() local 279 offsets.emplace(fps, constructOffsets(static_cast<nsecs_t>(1e9f / fps))); in initializeOffsets() 281 return offsets; in initializeOffsets()
|
/frameworks/base/core/java/android/view/textservice/ |
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()
|
/frameworks/base/core/java/android/hardware/camera2/params/ |
D | BlackLevelPattern.java | 50 public BlackLevelPattern(int[] offsets) { in BlackLevelPattern() argument 51 if (offsets == null) { in BlackLevelPattern() 54 if (offsets.length < COUNT) { in BlackLevelPattern() 57 mCfaOffsets = Arrays.copyOf(offsets, COUNT); in BlackLevelPattern()
|
/frameworks/base/libs/hwui/jni/ |
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()
|
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);
|
/frameworks/av/media/libnblog/ |
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()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/nitz/ |
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()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/ |
D | TimeZoneLookupHelper.java | 291 int[] offsets = new int[2]; in offsetMatchesAtTime() local 292 timeZone.getOffset(whenMillis, false /* local */, offsets); in offsetMatchesAtTime() 294 if (totalOffsetMillis != (offsets[0] + offsets[1])) { in offsetMatchesAtTime() 298 return isDst == null || isDst == (offsets[1] != 0); in offsetMatchesAtTime()
|
/frameworks/base/tools/protologtool/src/com/android/protolog/tool/ |
D | SourceTransformer.kt | 163 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/ |
D | WebmWriter.cpp | 562 uint64_t offsets[nElems]; in start() local 571 offsets[i] = ::lseek(mFd, 0, SEEK_CUR); in start() 576 mSegmentOffset = offsets[1]; in start() 577 mSegmentDataStart = offsets[2]; in start() 578 mInfoOffset = offsets[3]; in start() 580 mTracksOffset = offsets[4]; in start() 581 mCuesOffset = offsets[5]; in start()
|
/frameworks/rs/ |
D | rsAllocation.cpp | 126 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/service/textservice/ |
D | SpellCheckerService.java | 446 final int[] offsets = new int[querySize]; in reconstructSuggestions() local 460 offsets[i] = item.mStart; in reconstructSuggestions() 467 : "<none>") + ", offset = " + offsets[i] + ", length = " in reconstructSuggestions() 471 return new SentenceSuggestionsInfo(reconstructedSuggestions, offsets, lengths); in reconstructSuggestions()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 356 std::vector<uint32_t> offsets; in FlattenConfig() local 357 offsets.resize(num_total_entries, 0xffffffffu); in FlattenConfig() 362 offsets[flat_entry.entry->id.value()] = values_buffer.size(); in FlattenConfig() 393 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig() 394 CHECK((offsets[i] & 0x03) == 0); in FlattenConfig() 396 indices->offset = util::HostToDevice16(offsets[i] / 4u); in FlattenConfig() 404 indices[i] = util::HostToDevice32(offsets[i]); in FlattenConfig()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | MagnificationControllerTest.java | 220 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale); 225 final MagnificationSpec expectedSpec = getMagnificationSpec(scale, offsets); 254 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale); 255 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets); 326 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale); 327 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets); 372 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, 375 MagnificationController.MAX_SCALE, offsets); 1074 private MagnificationSpec getMagnificationSpec(float scale, PointF offsets) { 1075 return getMagnificationSpec(scale, offsets.x, offsets.y);
|
/frameworks/native/libs/binder/ |
D | IPCThreadState.cpp | 141 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size in printBinderTransactionData() 884 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse() 892 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse() 899 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse() 1048 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData() 1055 tr.data.ptr.offsets = 0; in writeTransactionData() 1173 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand() 1211 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << endl; in executeCommand()
|
/frameworks/base/core/java/android/view/animation/ |
D | AnimationSet.java | 492 final long[] offsets = mStoredOffsets; in restoreChildrenStartOffset() local 493 if (offsets == null) return; in restoreChildrenStartOffset() 499 children.get(i).setStartOffset(offsets[i]); in restoreChildrenStartOffset()
|
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/ |
D | ExifOutputStream.java | 469 long[] offsets = new long[stripCount]; in calculateAllOffset() local 471 offsets[i] = offset; in calculateAllOffset() 475 offsets); in calculateAllOffset()
|
/frameworks/ml/nn/common/operations/ |
D | RoiAlign.cpp | 156 uint32_t offsets[] = {y1 * inWidth * inDepth + x1 * inDepth, in roiAlignNhwc() local 164 interpolation += ws[c] * batchBase[offsets[c] + k]; in roiAlignNhwc() 282 uint32_t offsets[] = {y1 * inWidth * inDepth + x1 * inDepth, in roiAlignQuantNhwc() local 292 wQuant * (static_cast<int32_t>(batchBase[offsets[c] + k]) - in roiAlignQuantNhwc()
|
/frameworks/native/libs/vr/libvrflinger/ |
D | hardware_composer.cpp | 758 VsyncEyeOffsets offsets; in PostThread() local 759 offsets.left_ns = in PostThread() 765 offsets.right_ns = (target_display_->vsync_period_ns - vblank_ns) / 2; in PostThread() 768 offsets.right_ns = in PostThread() 769 property_get_int64(kRightEyeOffsetProperty, offsets.right_ns); in PostThread() 771 return offsets; in PostThread()
|
/frameworks/rs/driver/ |
D | rsdAllocation.cpp | 311 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/ |
D | GraphemeBreakTests.cpp | 307 TEST(GraphemeBreak, offsets) { in TEST() argument
|