/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | IntRangeManager.java | 112 void insert(ClientRange range) { in insert() argument 117 if (range.mStartId <= nextRange.mStartId) { in insert() 119 if (!range.equals(nextRange)) { in insert() 121 if (range.mStartId == nextRange.mStartId in insert() 122 && range.mEndId > nextRange.mEndId) { in insert() 131 mClients.add(i, range); in insert() 137 mClients.add(insert, range); in insert() 140 mClients.add(range); // append to end of list in insert() 207 IntRange range = mRanges.get(startIndex); in enableRange() local 208 if ((startId) >= range.mStartId && (endId) <= range.mEndId) { in enableRange() [all …]
|
/frameworks/base/core/java/android/util/ |
D | Range.java | 131 public boolean contains(Range<T> range) { in contains() argument 132 checkNotNull(range, "value must not be null"); in contains() 134 boolean gteLower = range.mLower.compareTo(mLower) >= 0; in contains() 135 boolean lteUpper = range.mUpper.compareTo(mUpper) <= 0; in contains() 204 public Range<T> intersect(Range<T> range) { in intersect() argument 205 checkNotNull(range, "range must not be null"); in intersect() 207 int cmpLower = range.mLower.compareTo(mLower); in intersect() 208 int cmpUpper = range.mUpper.compareTo(mUpper); in intersect() 215 return range; in intersect() 218 cmpLower <= 0 ? mLower : range.mLower, in intersect() [all …]
|
/frameworks/base/services/tests/servicestests/jni/ |
D | UidRangeTest.cpp | 28 const UidRange range = unmarshall(env, inParcel); in Java_android_net_UidRangeTest_readAndWriteNative() local 29 return marshall(env, range); in Java_android_net_UidRangeTest_readAndWriteNative() 34 const UidRange range = unmarshall(env, inParcel); in Java_android_net_UidRangeTest_getStart() local 35 return range.getStart(); in Java_android_net_UidRangeTest_getStart() 40 const UidRange range = unmarshall(env, inParcel); in Java_android_net_UidRangeTest_getStop() local 41 return range.getStop(); in Java_android_net_UidRangeTest_getStop() 58 UidRange range; in unmarshall() local 59 range.readFromParcel(&p); in unmarshall() 60 return range; in unmarshall() 70 jbyteArray marshall(JNIEnv* env, const UidRange& range) { in marshall() argument [all …]
|
/frameworks/base/media/java/android/media/ |
D | Utils.java | 62 for (Range<T> range: another) { in intersectSortedDistinctRanges() 64 one[ix].getUpper().compareTo(range.getLower()) < 0) { in intersectSortedDistinctRanges() 68 one[ix].getUpper().compareTo(range.getUpper()) < 0) { in intersectSortedDistinctRanges() 69 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges() 75 if (one[ix].getLower().compareTo(range.getUpper()) <= 0) { in intersectSortedDistinctRanges() 76 result.add(range.intersect(one[ix])); in intersectSortedDistinctRanges() 131 static Range<Integer>factorRange(Range<Integer> range, int factor) { 133 return range; 135 return Range.create(divUp(range.getLower(), factor), range.getUpper() / factor); 142 static Range<Long>factorRange(Range<Long> range, long factor) { [all …]
|
/frameworks/base/services/core/jni/ |
D | com_android_server_PersistentDataBlockService.cpp | 50 uint64_t range[2]; in wipe_block_device() local 54 range[0] = 0; in wipe_block_device() 55 range[1] = len; in wipe_block_device() 57 if (range[1] == 0) in wipe_block_device() 60 ret = ioctl(fd, BLKSECDISCARD, &range); in wipe_block_device() 63 range[0] = 0; in wipe_block_device() 64 range[1] = len; in wipe_block_device() 65 ret = ioctl(fd, BLKDISCARD, &range); in wipe_block_device()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/dec/src/ |
D | deringing_luma.cpp | 34 int thres[4], range[4], max_range_blk, max_thres_blk; in Deringing_Luma() local 66 range[blks] = max_blk - min_blk; in Deringing_Luma() 68 if (range[blks] >= max_range_blk) in Deringing_Luma() 70 max_range_blk = range[blks]; in Deringing_Luma() 86 if (range[blks]<32 && max_range_blk >= 64) in Deringing_Luma() 120 range[blks] = max_blk - min_blk; in Deringing_Luma() 122 if (range[blks] >= max_range_blk) in Deringing_Luma() 124 max_range_blk = range[blks]; in Deringing_Luma() 140 if (range[blks]<32 && max_range_blk >= 64) in Deringing_Luma() 178 range[blks] = max_blk - min_blk; in Deringing_Luma() [all …]
|
/frameworks/base/core/java/android/view/ |
D | InputDevice.java | 686 final MotionRange range = mMotionRanges.get(i); in getMotionRange() local 687 if (range.mAxis == axis) { in getMotionRange() 688 return range; in getMotionRange() 711 final MotionRange range = mMotionRanges.get(i); in getMotionRange() local 712 if (range.mAxis == axis && range.mSource == source) { in getMotionRange() 713 return range; in getMotionRange() 925 MotionRange range = mMotionRanges.get(i); in writeToParcel() local 926 out.writeInt(range.mAxis); in writeToParcel() 927 out.writeInt(range.mSource); in writeToParcel() 928 out.writeFloat(range.mMin); in writeToParcel() [all …]
|
/frameworks/base/core/jni/ |
D | android_view_InputDevice.cpp | 73 const InputDeviceInfo::MotionRange& range = ranges.itemAt(i); in android_view_InputDevice_create() local 74 env->CallVoidMethod(inputDeviceObj.get(), gInputDeviceClassInfo.addMotionRange, range.axis, in android_view_InputDevice_create() 75 range.source, range.min, range.max, range.flat, range.fuzz, range.resolution); in android_view_InputDevice_create()
|
/frameworks/av/media/libstagefright/foundation/ |
D | ColorUtils.cpp | 153 int32_t ColorUtils::wrapColorAspectsIntoColorRange(ColorAspects::Range range) { in wrapColorAspectsIntoColorRange() argument 155 if (sRanges.map(range, &res)) { in wrapColorAspectsIntoColorRange() 157 } else if (!isValid(range)) { in wrapColorAspectsIntoColorRange() 160 CHECK(!isDefined(range)); in wrapColorAspectsIntoColorRange() 162 return kColorRangeVendorStart + range; in wrapColorAspectsIntoColorRange() 168 int32_t range, ColorAspects::Range *aspect) { in unwrapColorAspectsFromColorRange() argument 169 if (sRanges.map((ColorRange)range, aspect)) { in unwrapColorAspectsFromColorRange() 175 if (range >= start && range < start + numRanges) { in unwrapColorAspectsFromColorRange() 176 *aspect = (ColorAspects::Range)(range - start); in unwrapColorAspectsFromColorRange() 231 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects) { in convertPlatformColorAspectsToCodecAspects() argument [all …]
|
/frameworks/native/libs/input/ |
D | InputDevice.cpp | 166 const MotionRange& range = mMotionRanges.itemAt(i); in getMotionRange() local 167 if (range.axis == axis && range.source == source) { in getMotionRange() 168 return ⦥ in getMotionRange() 180 MotionRange range = { axis, source, min, max, flat, fuzz, resolution }; in addMotionRange() local 181 mMotionRanges.add(range); in addMotionRange() 184 void InputDeviceInfo::addMotionRange(const MotionRange& range) { in addMotionRange() argument 185 mMotionRanges.add(range); in addMotionRange()
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | ScrollBarUtils.java | 21 public static int getThumbLength(int size, int thickness, int extent, int range) { in getThumbLength() argument 24 int length = Math.round((float) size * extent / range); in getThumbLength() 31 public static int getThumbOffset(int size, int thumbLength, int extent, int range, int offset) { in getThumbOffset() argument 33 int thumbOffset = Math.round((float) (size - thumbLength) * offset / (range - extent)); in getThumbOffset()
|
/frameworks/av/media/libstagefright/codecs/on2/h264dec/omxdl/reference/vc/m4p2/src/ |
D | omxVCM4P2_DecodePadMV_PVOP.c | 111 OMX_S16 high, low, range; in omxVCM4P2_DecodePadMV_PVOP() local 151 range = ( 64 * scaleFactor); in omxVCM4P2_DecodePadMV_PVOP() 228 pDstMVCurMB[iBlk].dx += range; in omxVCM4P2_DecodePadMV_PVOP() 232 pDstMVCurMB[iBlk].dx -= range; in omxVCM4P2_DecodePadMV_PVOP() 237 pDstMVCurMB[iBlk].dy += range; in omxVCM4P2_DecodePadMV_PVOP() 241 pDstMVCurMB[iBlk].dy -= range; in omxVCM4P2_DecodePadMV_PVOP()
|
/frameworks/minikin/libs/minikin/ |
D | FontCollection.cpp | 119 Range* range = &mRanges.back(); in FontCollection() local 123 range->start = offset; in FontCollection() 136 range->end = offset; in FontCollection() 282 Range range = mRanges[ch >> kLogCharsPerPage]; in getFamilyForChar() local 290 mFamilyVec.begin() + range.start, mFamilyVec.begin() + range.end); in getFamilyForChar() 296 range = { 0, familyVecForVS.size() }; in getFamilyForChar() 300 ALOGD("querying range %zd:%zd\n", range.start, range.end); in getFamilyForChar() 304 for (size_t i = range.start; i < range.end; i++) { in getFamilyForChar()
|
/frameworks/opt/setupwizard/library/full-support/src/com/android/setupwizardlib/util/ |
D | RecyclerViewRequireScrollHelper.java | 64 final int range = mRecyclerView.computeVerticalScrollRange() in canScrollDown() local 66 return range != 0 && offset < range - 1; in canScrollDown()
|
/frameworks/native/vulkan/api/templates/ |
D | asciidoc.tmpl | 15 {{range $e := $.Enums}} 26 {{range $f := (AllCommands $)}} 34 {{range $c := $.Classes}} 53 {{range $i, $e := $.Entries}} 80 {{range $e := $.Entries}} 99 {{range $f := $.Fields}}
|
D | vulkan_h.tmpl | 112 {{range $d := $.Definitions}} 116 {{range $i, $p := $.Pseudonyms}} 125 {{range $e := $.Enums}} 134 {{range $e := $.Enums}} 144 {{range $f := AllCommands $}} 150 {{range $c := $.Classes}} 159 {{range $f := AllCommands $}} 167 {{range $f := AllCommands $}} 194 {{range $b := $.Entries}} 213 {{range $i, $e := $.Entries}}
|
/frameworks/base/core/java/android/widget/ |
D | ScrollBarDrawable.java | 102 public void setParameters(int range, int offset, int extent, boolean vertical) { in setParameters() argument 109 if (mRange != range || mOffset != offset || mExtent != extent) { in setParameters() 110 mRange = range; in setParameters() 122 final int range = mRange; in draw() local 126 if (extent <= 0 || range <= extent) { in draw() 144 ScrollBarUtils.getThumbLength(scrollBarLength, thickness, extent, range); in draw() 146 ScrollBarUtils.getThumbOffset(scrollBarLength, thumbLength, extent, range, in draw()
|
/frameworks/base/core/java/android/hardware/ |
D | ConsumerIrManager.java | 145 CarrierFrequencyRange[] range = new CarrierFrequencyRange[freqs.length / 2]; in getCarrierFrequencies() local 148 range[i / 2] = new CarrierFrequencyRange(freqs[i], freqs[i+1]); in getCarrierFrequencies() 150 return range; in getCarrierFrequencies()
|
/frameworks/av/include/media/stagefright/foundation/ |
D | ColorUtils.h | 115 static int32_t wrapColorAspectsIntoColorRange(ColorAspects::Range range); 120 int32_t range, ColorAspects::Range *aspect); 128 int32_t range, int32_t standard, int32_t transfer, ColorAspects &aspects); 130 const ColorAspects &aspects, int32_t *range, int32_t *standard, int32_t *transfer); 160 const sp<AMessage> &format, int *range, int *standard, int *transfer);
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | ProgressReporterTest.java | 35 final int[] range = r.getSegmentRange(); in assertRange() local 36 assertEquals("start", start, range[0]); in assertRange() 37 assertEquals("len", len, range[1]); in assertRange()
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/ |
D | PdfManipulationService.java | 251 PageRange range = ranges[i]; in removePages() local 254 if (range.getEnd() > lastPageIdx) { in removePages() 255 if (range.getStart() > lastPageIdx) { in removePages() 258 range = new PageRange(range.getStart(), lastPageIdx); in removePages() 261 for (int j = range.getEnd(); j >= range.getStart(); j--) { in removePages()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | CameraSource.java | 319 for (int[] range : supportedFpsRanges) { in findClosestFpsRange() 320 if (range[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] < fps*1000 && in findClosestFpsRange() 321 range[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] > fps*1000 && in findClosestFpsRange() 322 range[Camera.Parameters.PREVIEW_FPS_MIN_INDEX] > in findClosestFpsRange() 324 range[Camera.Parameters.PREVIEW_FPS_MAX_INDEX] < in findClosestFpsRange() 326 closestRange = range; in findClosestFpsRange()
|
/frameworks/av/media/libstagefright/codecs/m4v_h263/enc/src/ |
D | findhalfpel.cpp | 78 Int range = video->encParams->SearchRange; in FindHalfPelMB() local 95 ilow = xpos - range; in FindHalfPelMB() 96 jlow = ypos - range; in FindHalfPelMB() 199 Int range = video->encParams->SearchRange; in FindHalfPelBlk() local 217 ilow = xpos + ((comp & 1) << 3) - range; in FindHalfPelBlk() 218 jlow = ypos + ((comp & 2) << 2) - range; in FindHalfPelBlk()
|
/frameworks/native/vulkan/libvulkan/ |
D | code-generator.tmpl | 49 {{range $f := AllCommands $}} 59 {{range $f := AllCommands $}} 112 {{range $f := AllCommands $}} 127 {{range $f := AllCommands $}} 145 {{range $f := AllCommands $}} 160 {{range $f := AllCommands $}} 166 {{range $f := AllCommands $}} 190 {{range $f := AllCommands $}} 229 {{range $f := AllCommands $}} 239 {{range $f := AllCommands $}} [all …]
|
/frameworks/support/design/src/android/support/design/widget/ |
D | AppBarLayout.java | 339 int range = 0; in getTotalScrollRange() local 348 range += childHeight + lp.topMargin + lp.bottomMargin; in getTotalScrollRange() 354 range -= ViewCompat.getMinimumHeight(child); in getTotalScrollRange() 363 return mTotalScrollRange = Math.max(0, range - getTopInset()); in getTotalScrollRange() 386 int range = 0; in getDownNestedPreScrollRange() local 395 range += lp.topMargin + lp.bottomMargin; in getDownNestedPreScrollRange() 399 range += ViewCompat.getMinimumHeight(child); in getDownNestedPreScrollRange() 402 range += childHeight - ViewCompat.getMinimumHeight(child); in getDownNestedPreScrollRange() 405 range += childHeight; in getDownNestedPreScrollRange() 407 } else if (range > 0) { in getDownNestedPreScrollRange() [all …]
|