/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | VsyncConfigurationTest.cpp | 61 auto offsets = mWorkDuration.getConfigsForRefreshRate(Fps(60.0f)); 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/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/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 | 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()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
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()
|
/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 | 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()
|
/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/av/media/codec2/sfplugin/tests/ |
D | CCodecBuffers_test.cpp | 441 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/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 | 469 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/base/services/core/java/com/android/server/am/ |
D | ProcessErrorStateRecord.java | 385 final long[] offsets = new long[2]; in appNotResponding() local 388 nativePids, tracesFileException, offsets, annotation); in appNotResponding() 404 } else if (offsets[1] > 0) { in appNotResponding() 407 pid, mApp.uid, mApp.getPackageList(), tracesFile, offsets[0], offsets[1]); in appNotResponding()
|
/frameworks/base/tools/aapt2/format/binary/ |
D | TableFlattener.cpp | 353 std::vector<uint32_t> offsets; in FlattenConfig() local 354 offsets.resize(num_total_entries, 0xffffffffu); in FlattenConfig() 359 offsets[flat_entry.entry->id.value()] = values_buffer.size(); in FlattenConfig() 390 if (offsets[i] != ResTable_type::NO_ENTRY) { in FlattenConfig() 391 CHECK((offsets[i] & 0x03) == 0); in FlattenConfig() 393 indices->offset = util::HostToDevice16(offsets[i] / 4u); in FlattenConfig() 401 indices[i] = util::HostToDevice32(offsets[i]); in FlattenConfig()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | FullScreenMagnificationControllerTest.java | 232 final PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, center, scale); 237 final MagnificationSpec expectedSpec = getMagnificationSpec(scale, offsets); 266 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale); 267 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets); 338 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, scale); 339 MagnificationSpec endSpec = getMagnificationSpec(scale, offsets); 410 PointF offsets = computeOffsets(INITIAL_MAGNIFICATION_BOUNDS, newCenter, 413 FullScreenMagnificationController.MAX_SCALE, offsets); 1230 private MagnificationSpec getMagnificationSpec(float scale, PointF offsets) { 1231 return getMagnificationSpec(scale, offsets.x, offsets.y);
|
/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/native/libs/binder/ |
D | IPCThreadState.cpp | 142 << "offsets=" << btd->data.ptr.offsets << " (" << (void*)btd->offsets_size in printBinderTransactionData() 936 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse() 944 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse() 951 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in waitForResponse() 1100 tr.data.ptr.offsets = data.ipcObjects(); in writeTransactionData() 1107 tr.data.ptr.offsets = 0; in writeTransactionData() 1225 reinterpret_cast<const binder_size_t*>(tr.data.ptr.offsets), in executeCommand() 1263 << reinterpret_cast<const size_t*>(tr.data.ptr.offsets) << endl; in executeCommand()
|
/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/native/libs/vr/libvrflinger/ |
D | hardware_composer.cpp | 747 VsyncEyeOffsets offsets; in PostThread() local 748 offsets.left_ns = in PostThread() 754 offsets.right_ns = (target_display_->vsync_period_ns - vblank_ns) / 2; in PostThread() 757 offsets.right_ns = in PostThread() 758 property_get_int64(kRightEyeOffsetProperty, offsets.right_ns); in PostThread() 760 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
|