Home
last modified time | relevance | path

Searched refs:range (Results 1 – 25 of 70) sorted by relevance

123

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dencodingstest.cpp288 for (const unsigned* range = kCodepointRanges; *range != 0xFFFFFFFF; range += 2) { in TEST() local
289 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST()
340 for (const unsigned* range = kCodepointRanges; *range != 0xFFFFFFFF; range += 2) { in TEST() local
341 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST()
399 for (const unsigned* range = kCodepointRanges; *range != 0xFFFFFFFF; range += 2) { in TEST() local
400 for (unsigned codepoint = range[0]; codepoint <= range[1]; ++codepoint) { in TEST()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastChannelManager.java223 for (String range : ranges) { in getCellBroadcastChannelRanges()
225 result.add(new CellBroadcastChannelRange(context, range)); in getCellBroadcastChannelRanges()
227 loge("Failed to parse \"" + range + "\". e=" + e); in getCellBroadcastChannelRanges()
268 for (CellBroadcastChannelRange range : ranges) { in checkCellBroadcastChannelRange()
269 if (channel >= range.mStartId && channel <= range.mEndId) { in checkCellBroadcastChannelRange()
270 return checkScope(context, subId, range.mScope); in checkCellBroadcastChannelRange()
328 for (CellBroadcastChannelRange range : ranges) { in getCellBroadcastChannelRangeFromMessage()
329 if (range.mStartId <= message.getServiceCategory() in getCellBroadcastChannelRangeFromMessage()
330 && range.mEndId >= message.getServiceCategory()) { in getCellBroadcastChannelRangeFromMessage()
331 return range; in getCellBroadcastChannelRangeFromMessage()
[all …]
DCellBroadcastAlertService.java257 CellBroadcastChannelRange range = CellBroadcastChannelManager in shouldDisplayMessage() local
259 if (range != null && range.mFilterLanguage) { in shouldDisplayMessage()
458 for (CellBroadcastChannelRange range : ranges) { in isChannelEnabled()
459 if (range.mStartId <= channel && range.mEndId >= channel) { in isChannelEnabled()
462 message.getSubId(), range.mScope)) { in isChannelEnabled()
463 Log.d(TAG, "The range [" + range.mStartId + "-" + range.mEndId in isChannelEnabled()
464 + "] is not within the scope. mScope = " + range.mScope); in isChannelEnabled()
470 if (range.mAlertType == AlertType.AREA) { in isChannelEnabled()
487 } else if (range.mAlertType == AlertType.TEST) { in isChannelEnabled()
603 for (CellBroadcastChannelRange range : ranges) { in openEmergencyAlertNotification()
[all …]
DCellBroadcastConfigService.java246 for (CellBroadcastChannelRange range: ranges) { in setCellBroadcastOnSub()
248 switch (range.mAlertType) { in setCellBroadcastOnSub()
258 setCellBroadcastRange(manager, enableAlerts, new ArrayList<>(Arrays.asList(range))); in setCellBroadcastOnSub()
271 for (CellBroadcastChannelRange range: ranges) { in setCellBroadcastRange()
273 manager.enableCellBroadcastRange(range.mStartId, range.mEndId, range.mRat); in setCellBroadcastRange()
275 manager.disableCellBroadcastRange(range.mStartId, range.mEndId, range.mRat); in setCellBroadcastRange()
DCellBroadcastResources.java328 for (CellBroadcastChannelRange range : ranges) { in getDialogTitleResource()
329 if (serviceCategory >= range.mStartId && serviceCategory <= range.mEndId) { in getDialogTitleResource()
331 switch (range.mAlertType) { in getDialogTitleResource()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DIsoInterface.java99 public final long[] range; field in IsoInterface.Box
104 public Box(int type, long[] range) { in Box() argument
106 this.range = range; in Box()
244 res.add(box.range[0] + 8); in getBoxRanges()
245 res.add(box.range[0] + box.range[1]); in getBoxRanges()
255 res.add(box.range[0] + 8 + 16); in getBoxRanges()
256 res.add(box.range[0] + box.range[1]); in getBoxRanges()
/packages/apps/Car/libs/car-apps-common/src/com/android/car/apps/common/widget/
DCarScrollBar.java346 @IntRange(from = 0) int range, in setParameters()
355 if (mScrollView.getVisibility() == View.GONE || range == 0) { in setParameters()
359 int thumbLength = calculateScrollThumbLength(range, extent); in setParameters()
360 int thumbOffset = calculateScrollThumbOffset(range, offset, thumbLength); in setParameters()
387 void setParametersInLayout(int range, int offset, int extent) { in setParametersInLayout() argument
389 if (mScrollView.getVisibility() == View.GONE || range == 0) { in setParametersInLayout()
393 int thumbLength = calculateScrollThumbLength(range, extent); in setParametersInLayout()
394 int thumbOffset = calculateScrollThumbOffset(range, offset, thumbLength); in setParametersInLayout()
415 private int calculateScrollThumbLength(int range, int extent) { in calculateScrollThumbLength() argument
417 return Math.round(((float) extent / range) * mScrollThumbTrackHeight); in calculateScrollThumbLength()
[all …]
/packages/apps/Launcher3/
Dprint_db.py201 for i in range(0,len(columns)):
212 for i in range(0,len(row)):
234 for i in range(0, HOTSEAT_SIZE):
249 for i in range(0,SCREENS):
251 for j in range(0,ROWS):
253 for k in range(0,COLUMNS):
267 for j in range(cellY, cellY+spanY):
268 for k in range(cellX, cellX+spanX):
Dfill_screens.py61 for s in range(SCREENS):
62 for x in range(ROWS):
63 for y in range(COLUMNS):
70 for z in range(15):
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
DImapUtility.java97 public static String[] getImapRangeValues(String range) { in getImapRangeValues() argument
100 if (range != null) { in getImapRangeValues()
101 int colonPos = range.indexOf(':'); in getImapRangeValues()
103 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues()
104 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapUtility.java101 public static String[] getImapRangeValues(String range) { in getImapRangeValues() argument
104 if (range != null) { in getImapRangeValues()
105 int colonPos = range.indexOf(':'); in getImapRangeValues()
107 int first = Integer.parseInt(range.substring(0, colonPos)); in getImapRangeValues()
108 int second = Integer.parseInt(range.substring(colonPos + 1)); in getImapRangeValues()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/aggregation/util/
DNameDistance.java105 int range = length2 / 2 - 1; in getDistance() local
106 if (range < 0) { in getDistance()
107 range = 0; in getDistance()
114 int from = i - range; in getDistance()
119 int to = i + range + 1; in getDistance()
/packages/apps/Launcher3/src_ui_overrides/com/android/launcher3/uioverrides/
DAllAppsSwipeController.java67 float range = getShiftRange(); in initCurrentAnimation() local
68 long maxAccuracy = (long) (2 * range); in initCurrentAnimation()
71 float startVerticalShift = mFromState.getVerticalProgress(mLauncher) * range; in initCurrentAnimation()
72 float endVerticalShift = mToState.getVerticalProgress(mLauncher) * range; in initCurrentAnimation()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DAlbumSlidingWindow.java203 int range = Math.max( in updateTextureUploadQueue() local
205 for (int i = 0; i < range; ++i) { in updateTextureUploadQueue()
217 int range = Math.max( in requestNonactiveImages() local
219 for (int i = 0 ;i < range; ++i) { in requestNonactiveImages()
240 int range = Math.max( in cancelNonactiveImages() local
242 for (int i = 0 ;i < range; ++i) { in cancelNonactiveImages()
DTileImageView.java222 Rect range = mTileRange; in layoutTiles() local
223 getRange(range, centerX, centerY, mLevel, scale, rotation); in layoutTiles()
224 mOffsetX = Math.round(width / 2f + (range.left - centerX) * scale); in layoutTiles()
225 mOffsetY = Math.round(height / 2f + (range.top - centerY) * scale); in layoutTiles()
237 Rect range[] = mActiveRange; in layoutTiles() local
239 getRange(range[i - fromLevel], centerX, centerY, i, rotation); in layoutTiles()
257 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles()
268 Rect r = range[i - fromLevel]; in layoutTiles()
DAlbumSetSlidingWindow.java193 int range = Math.max( in requestNonactiveImages() local
195 for (int i = 0 ;i < range; ++i) { in requestNonactiveImages()
202 int range = Math.max( in cancelNonactiveImages() local
204 for (int i = 0 ;i < range; ++i) { in cancelNonactiveImages()
330 int range = Math.max( in updateTextureUploadQueue() local
332 for (int i = 0; i < range; ++i) { in updateTextureUploadQueue()
DPaper.java76 int range = 3 * mWidth / 2; in getTransform() local
77 float t = ((range - x) * left - x * right) / range; in getTransform()
/packages/services/Car/service/src/com/android/car/
DSparseArrayStream.java28 return IntStream.range(0, array.size()).map(array::keyAt); in keyStream()
32 return IntStream.range(0, array.size()).mapToObj(array::valueAt); in valueStream()
36 return IntStream.range(0, array.size()).mapToObj( in pairStream()
/packages/apps/WallpaperPicker/src/com/android/photos/views/
DTiledImageRenderer.java276 Rect range = mTileRange; in layoutTiles() local
277 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
291 Rect range[] = mActiveRange; in layoutTiles() local
293 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles()
324 Rect r = range[i - fromLevel]; in layoutTiles()
/packages/apps/Gallery2/src/com/android/photos/views/
DTiledImageRenderer.java276 Rect range = mTileRange; in layoutTiles() local
277 getRange(range, mCenterX, mCenterY, mLevel, mScale, mRotation); in layoutTiles()
278 mOffsetX = Math.round(mViewWidth / 2f + (range.left - mCenterX) * mScale); in layoutTiles()
279 mOffsetY = Math.round(mViewHeight / 2f + (range.top - mCenterY) * mScale); in layoutTiles()
291 Rect range[] = mActiveRange; in layoutTiles() local
293 getRange(range[i - fromLevel], mCenterX, mCenterY, i, mRotation); in layoutTiles()
313 || !range[level - fromLevel].contains(tile.mX, tile.mY)) { in layoutTiles()
324 Rect r = range[i - fromLevel]; in layoutTiles()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DConversationFastScroller.java198 final int range = mRv.computeVerticalScrollRange(); in isEnabled() local
201 if (range == 0 || extent == 0) { in isEnabled()
206 final float pages = (float) range / extent; in isEnabled()
298 final int range = mRv.computeVerticalScrollRange(); in computeScrollRatio() local
302 if (range == 0 || extent == 0) { in computeScrollRatio()
306 final int scrollRange = range - extent; in computeScrollRatio()
/packages/apps/Settings/src/com/android/settings/widget/
DDefaultIndicatorSeekBar.java63 final int range = getMax() - getMin(); in drawTickMarks() local
64 final float scale = range > 0f ? mDefaultProgress / (float) range : 0f; in drawTickMarks()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/widget/
DDefaultIndicatorSeekBar.java63 final int range = getMax() - getMin(); in drawTickMarks() local
64 final float scale = range > 0f ? mDefaultProgress / (float) range : 0f; in drawTickMarks()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/uioverrides/touchcontrollers/
DLandscapeEdgeSwipeController.java60 float range = getShiftRange(); in initCurrentAnimation() local
61 long maxAccuracy = (long) (2 * range); in initCurrentAnimation()
64 return (mLauncher.getDeviceProfile().isSeascape() ? 2 : -2) / range; in initCurrentAnimation()
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DQuickViewIntentBuilder.java123 final Range<Integer> range = computeSiblingsRange(uris, documentLocation); in build() local
128 for (int i = range.getLower(); i <= range.getUpper(); i++) { in build()
146 intent.putExtra(Intent.EXTRA_INDEX, documentLocation - range.getLower()); in build()

123