Home
last modified time | relevance | path

Searched refs:currentSize (Results 1 – 25 of 29) sorted by relevance

12

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/view/
DFullPreviewFrameLayout.kt44 val currentSize = currentDisplaySize in onMeasure() constant
47 if (currentSize == null || targetSize == null) { in onMeasure()
52 val maxRect = targetSize.findMaxRectWithRatioIn(currentSize) in onMeasure()
71 fun setCurrentAndTargetDisplaySize(currentSize: Point, targetSize: Point) { in setCurrentAndTargetDisplaySize()
72 currentDisplaySize = currentSize in setCurrentAndTargetDisplaySize()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DLongArray.java127 final int currentSize = mSize; in ensureCapacity() local
128 final int minCapacity = currentSize + count; in ensureCapacity()
130 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity()
131 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
134 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DIntArray.java161 final int currentSize = mSize; in ensureCapacity() local
162 final int minCapacity = currentSize + count; in ensureCapacity()
164 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) in ensureCapacity()
165 ? MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
168 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
DLongArray.java134 final int currentSize = mSize; in ensureCapacity() local
135 final int minCapacity = currentSize + count; in ensureCapacity()
137 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) in ensureCapacity()
138 ? MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
141 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DIntArray.java116 final int currentSize = mSize; in ensureCapacity() local
117 final int minCapacity = currentSize + count; in ensureCapacity()
119 final int targetCap = currentSize + (currentSize < (MIN_CAPACITY_INCREMENT / 2) ? in ensureCapacity()
120 MIN_CAPACITY_INCREMENT : currentSize >> 1); in ensureCapacity()
123 System.arraycopy(mValues, 0, newValues, 0, currentSize); in ensureCapacity()
DDisplayController.java368 public final Point currentSize; field in DisplayController.Info
400 currentSize = displayInfo.size; in Info()
569 pw.println(" currentSize=" + info.currentSize); in dump()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DRecentsOrientedState.java577 Point currentSize = DisplayController.INSTANCE.get(mContext).getInfo().currentSize; in getLauncherDeviceProfile() local
581 width = Math.max(currentSize.x, currentSize.y); in getLauncherDeviceProfile()
582 height = Math.min(currentSize.x, currentSize.y); in getLauncherDeviceProfile()
584 width = Math.min(currentSize.x, currentSize.y); in getLauncherDeviceProfile()
585 height = Math.max(currentSize.x, currentSize.y); in getLauncherDeviceProfile()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/interaction/
DNavBarGestureHandler.java63 Point currentSize = displayInfo.currentSize; in NavBarGestureHandler() local
64 mDisplaySize.set(currentSize.x, currentSize.y); in NavBarGestureHandler()
DEdgeBackGestureHandler.java121 Point currentSize = DisplayController.INSTANCE.get(mContext).getInfo().currentSize; in setViewGroupParent() local
122 mDisplaySize.set(currentSize.x, currentSize.y); in setViewGroupParent()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DShortcutSelectionLogic.java180 int currentSize = serviceTargets.size(); in insertServiceTarget() local
182 for (int i = 0; i < Math.min(currentSize, maxRankedTargets); in insertServiceTarget()
194 if (currentSize < maxRankedTargets) { in insertServiceTarget()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DScanDetailCache.java117 int currentSize = mMap.size(); in trim() local
118 if (currentSize < mTrimSize) { in trim()
138 for (int i = 0; i < currentSize - mTrimSize; i++) { in trim()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/
DSimpleOrientationTouchTransformer.java55 mOrientationRectF = new OrientationRectF(0, 0, info.currentSize.y, info.currentSize.x, in onDisplayInfoChanged()
DOrientationTouchTransformer.java150 mCachedDisplayInfo = new CachedDisplayInfo(info.currentSize, info.rotation); in createOrAddTouchRegion()
214 mCachedDisplayInfo = new CachedDisplayInfo(region.currentSize, region.rotation); in resetSwipeRegions()
237 " displaySize: " + display.currentSize + in createRegionForDisplay()
241 Point size = display.currentSize; in createRegionForDisplay()
DRecentsAnimationDeviceState.java569 && (displayInfo.currentSize.x < displayInfo.currentSize.y)); in canTriggerOneHandedAction()
/packages/apps/Messaging/src/com/android/messaging/util/
DImageUtils.java542 final int currentSize = (encoded == null ? 0 : encoded.length); in resizeStaticImage() local
543 updateRecodeParameters(currentSize); in resizeStaticImage()
758 private void updateRecodeParameters(final int currentSize) { in updateRecodeParameters() argument
761 if (currentSize > 0 && in updateRecodeParameters()
766 Math.min((int) (mQuality * Math.sqrt((1.0 * mByteLimit) / currentSize)), in updateRecodeParameters()
772 } else if (currentSize > 0 && in updateRecodeParameters()
790 } else if (currentSize <= 0 && !mHasReclaimedMemory) { in updateRecodeParameters()
/packages/modules/NeuralNetworks/common/cpu_operations/
DConcatenation.cpp118 const auto currentSize = getNumberOfElements(context->getInputShape(i)); in concatenation() local
119 inputs_uint8[i].resize(currentSize); in concatenation()
120 if (currentSize != 0) { in concatenation()
/packages/apps/Launcher3/src/com/android/launcher3/states/
DRotationHelper.java57 float originalSmallestWidth = dpiFromPx(Math.min(info.currentSize.x, info.currentSize.y), in getAllowRotationDefaultValue()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/binder/
DFullWallpaperPreviewBinder.kt85 val currentSize = displayUtils.getRealSize(checkNotNull(view.context.display)) in <lambda>() constant
87 currentSize, in <lambda>()
98 val isPreviewingFullScreen = displaySize == currentSize in <lambda>()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/unfold/
DLauncherUnfoldTransitionController.kt121 dp.displayInfo.currentSize, in onPrepareUnfoldAnimation()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/inputconsumers/
DOneHandedModeInputConsumer.java72 mDisplaySize = DisplayController.INSTANCE.get(mContext).getInfo().currentSize; in OneHandedModeInputConsumer()
DProgressDelegateInputConsumer.java101 mDisplaySize = DisplayController.INSTANCE.get(context).getInfo().currentSize; in ProgressDelegateInputConsumer()
DNavHandleLongPressInputConsumer.java74 mScreenWidth = DisplayController.INSTANCE.get(context).getInfo().currentSize.x; in NavHandleLongPressInputConsumer()
DDeviceLockedInputConsumer.java125 mDisplaySize = DisplayController.INSTANCE.get(context).getInfo().currentSize; in DeviceLockedInputConsumer()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarDragLayerController.java296 deviceProfile.getDisplayInfo().currentSize.y : in getTaskbarBackgroundHeight()
/packages/apps/Nfc/nci/jni/
DNativeNfcTag.cpp1064 uint32_t currentSize, uint8_t flags) { in nativeNfcTag_doCheckNdefResult() argument
1099 sCheckNdefCurrentSize = currentSize; in nativeNfcTag_doCheckNdefResult()

12