Home
last modified time | relevance | path

Searched refs:minSize (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipTaskOrganizerTest.java134 final Size minSize = new Size(400, 320); in startSwipePipToHome_updatesOverrideMinSize() local
136 mSpiedPipTaskOrganizer.startSwipePipToHome(mComponent1, createActivityInfo(minSize), in startSwipePipToHome_updatesOverrideMinSize()
139 assertEquals(minSize, mPipBoundsState.getOverrideMinSize()); in startSwipePipToHome_updatesOverrideMinSize()
162 final Size minSize = new Size(400, 320); in onTaskAppeared_updatesOverrideMinSize() local
165 createTaskInfo(mComponent1, createPipParams(null), minSize), in onTaskAppeared_updatesOverrideMinSize()
168 assertEquals(minSize, mPipBoundsState.getOverrideMinSize()); in onTaskAppeared_updatesOverrideMinSize()
220 final Size minSize = new Size(400, 320); in onTaskInfoChanged_inPip_updatesOverrideMinSize() local
222 createPipParams(null), minSize)); in onTaskInfoChanged_inPip_updatesOverrideMinSize()
224 assertEquals(minSize, mPipBoundsState.getOverrideMinSize()); in onTaskInfoChanged_inPip_updatesOverrideMinSize()
252 ComponentName componentName, PictureInPictureParams params, Size minSize) { in createTaskInfo() argument
[all …]
DPipBoundsAlgorithmTest.java325 final Size minSize = new Size(currentBounds.width() / 2, currentBounds.height() / 2); in getAdjustedDestinationBounds_ignoreMinBounds() local
328 mPipBoundsState.setOverrideMinSize(minSize); in getAdjustedDestinationBounds_ignoreMinBounds()
333 destinationBounds.width() > minSize.getWidth() in getAdjustedDestinationBounds_ignoreMinBounds()
334 && destinationBounds.height() > minSize.getHeight()); in getAdjustedDestinationBounds_ignoreMinBounds()
/frameworks/av/media/codecs/amrnb/fuzzer/
Damrnb_dec_fuzzer.cpp70 int32_t minSize = std::min((int32_t)size, frameSize); in decodeFrames() local
71 memcpy(inputBuf, data, minSize); in decodeFrames()
77 data += minSize; in decodeFrames()
78 size -= minSize; in decodeFrames()
/frameworks/av/media/codecs/amrnb/enc/fuzzer/
Damrnb_enc_fuzzer.cpp80 int32_t minSize = std::min(size, sizeof(inputBuf)); in encodeFrames() local
83 memcpy(inputBuf, data, minSize); in encodeFrames()
87 data += minSize; in encodeFrames()
88 size -= minSize; in encodeFrames()
/frameworks/av/media/codecs/amrwb/dec/fuzzer/
Damrwb_dec_fuzzer.cpp81 int32_t minSize = std::min((int32_t)size, frameSize); in decodeFrames() local
82 memcpy(inputBuf, data, minSize); in decodeFrames()
91 data += minSize; in decodeFrames()
92 size -= minSize; in decodeFrames()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/phone/
DPipPinchResizingAlgorithm.java42 PointF lastPoint, PointF lastSecondPoint, Point minSize, Point maxSize, in calculateBoundsAndAngle() argument
48 float minScale = getMinScale(initialBounds, minSize); in calculateBoundsAndAngle()
75 private float getMinScale(Rect bounds, Point minSize) { in getMinScale() argument
76 return Math.max((float) minSize.x / bounds.width(), (float) minSize.y / bounds.height()); in getMinScale()
/frameworks/base/core/java/android/widget/inline/
DInlinePresentationSpec.java98 @NonNull Size minSize, in InlinePresentationSpec()
101 this.mMinSize = minSize; in InlinePresentationSpec()
213 Size minSize = (Size) in.readSize(); in InlinePresentationSpec() local
217 this.mMinSize = minSize; in InlinePresentationSpec()
266 @NonNull Size minSize, in Builder()
268 mMinSize = minSize; in Builder()
/frameworks/native/libs/ui/
DHdrCapabilities.cpp53 size_t minSize = sizeof(mMaxLuminance) + in unflatten() local
58 if (size < minSize) { in unflatten()
66 if (size < minSize + itemCount * sizeof(int32_t)) { in unflatten()
/frameworks/av/media/codecs/amrwb/enc/fuzzer/
Damrwb_enc_fuzzer.cpp111 int32_t minSize = std::min((int32_t)size, kInputBufferSize); in encodeFrames() local
117 inData.Length = minSize; in encodeFrames()
121 data += minSize; in encodeFrames()
122 size -= minSize; in encodeFrames()
/frameworks/av/services/camera/libcameraservice/api2/
DHeicEncoderInfoManager.cpp185 std::pair<int32_t, int32_t>* minSize, in getCodecSizeRange() argument
188 if (codecName == nullptr || minSize == nullptr || maxSize == nullptr || in getCodecSizeRange()
204 minSize->first = stoi(match[1]); in getCodecSizeRange()
205 minSize->second = stoi(match[2]); in getCodecSizeRange()
208 if (minSize->first > maxSize->first || in getCodecSizeRange()
209 minSize->second > maxSize->second) { in getCodecSizeRange()
DHeicEncoderInfoManager.h60 std::pair<int32_t, int32_t>* minSize, std::pair<int32_t, int32_t>* maxSize,
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPipBoundsAlgorithm.java408 final int minSize = (int) Math.max(minEdgeSize, smallestDisplaySize * mDefaultSizePercent); in getSizeForAspectRatio() local
416 width = minSize; in getSizeForAspectRatio()
420 height = minSize; in getSizeForAspectRatio()
426 final float widthAtMaxAspectRatioForMinSize = mMaxAspectRatioForMinSize * minSize; in getSizeForAspectRatio()
427 final float radius = PointF.length(widthAtMaxAspectRatioForMinSize, minSize); in getSizeForAspectRatio()
441 final int minSize = (int) Math.max(minEdgeSize, smallestSize); in getSizeForAspectRatio() local
447 width = minSize; in getSizeForAspectRatio()
451 height = minSize; in getSizeForAspectRatio()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/
DLightSourceDrawable.kt53 var minSize: Float, variable in com.android.systemui.media.RippleData
129 val radius = lerp(rippleData.minSize, rippleData.maxSize, rippleData.progress) in draw()
159 rippleData.minSize = a.getDimension(R.styleable.IlluminationDrawable_rippleMinSize, 0f) in updateStateFromTypedArray()
253 val radius = lerp(rippleData.minSize, rippleData.maxSize, rippleData.progress) in getDirtyBounds()
/frameworks/av/media/libstagefright/
DMediaCodecListOverrides.cpp55 AString minSize; in getMeasureSize() local
57 if (!splitString(sizeRange, "-", &minSize, &maxSize)) { in getMeasureSize()
62 if (!splitString(minSize, "x", &sWidth, &sHeight)) { in getMeasureSize()
63 if (!splitString(minSize, "*", &sWidth, &sHeight)) { in getMeasureSize()
DMediaCodecList.cpp444 AString minSize,maxSize; in codecHandlesFormat() local
448 || !splitString(sizeRange, "-", &minSize, &maxSize)) { in codecHandlesFormat()
452 if (!splitString(minSize, "x", &minWidth, &minHeight)) { in codecHandlesFormat()
453 if (!splitString(minSize, "*", &minWidth, &minHeight)) { in codecHandlesFormat()
/frameworks/base/core/java/android/service/autofill/
DInlineSuggestionRenderService.java106 private Size measuredSize(@NonNull View view, int width, int height, @NonNull Size minSize, in measuredSize() argument
127 return new Size(Math.max(view.getMeasuredWidth(), minSize.getWidth()), in measuredSize()
128 Math.max(view.getMeasuredHeight(), minSize.getHeight())); in measuredSize()
/frameworks/base/core/java/android/view/inputmethod/
DInlineSuggestion.java143 final Size minSize = mInfo.getInlinePresentationSpec().getMinSize(); in inflate() local
145 if (!isValid(size.getWidth(), minSize.getWidth(), maxSize.getWidth()) in inflate()
146 || !isValid(size.getHeight(), minSize.getHeight(), maxSize.getHeight())) { in inflate()
148 "size is neither between min:" + minSize + " and max:" + maxSize in inflate()
/frameworks/base/native/graphics/jni/
Dimagedecoder.cpp399 size_t minSize = info.computeByteSize(stride); in AImageDecoder_decodeImage() local
400 if (SkImageInfo::ByteSizeOverflowed(minSize) || size < minSize || !info.validRowBytes(stride)) { in AImageDecoder_decodeImage()
/frameworks/native/services/sensorservice/
Dvec.h51 const size_t minSize = min(SIZE, S); in doAssign() local
53 for (size_t i=0 ; i<minSize ; i++) in doAssign()
55 for (size_t i=minSize ; i<maxSize ; i++) in doAssign()
/frameworks/av/media/codec2/sfplugin/
DCCodecBuffers.cpp506 size_t minSize, in initialize() argument
518 ALOGV("[%s] converted %zu buffers to array mode of %zu", mName, mBuffers.size(), minSize); in initialize()
519 for (size_t i = impl.mBuffers.size(); i < minSize; ++i) { in initialize()
652 size_t minSize, in initialize() argument
655 mImpl.initialize(impl, minSize, allocate); in initialize()
1053 size_t minSize, in initialize() argument
1056 mImpl.initialize(impl, minSize, allocate); in initialize()
DCCodecBuffers.h626 size_t minSize,
743 size_t minSize,
994 size_t minSize,
/frameworks/base/core/jni/
Dandroid_view_MotionEvent.cpp237 static jfloatArray obtainPackedAxisValuesArray(JNIEnv* env, uint32_t minSize, in obtainPackedAxisValuesArray() argument
243 if (minSize <= size) { in obtainPackedAxisValuesArray()
249 while (size < minSize) { in obtainPackedAxisValuesArray()
/frameworks/base/core/jni/android/opengl/
Dutil.cpp235 ArrayHelper(JNIEnv* env, JArray ref, jint offset, jint minSize) { in ArrayHelper() argument
239 mMinSize = minSize; in ArrayHelper()
/frameworks/base/core/java/android/widget/
DNumberPicker.java1798 int minSize, int measuredSize, int measureSpec) { in resolveSizeAndStateRespectingMinSize() argument
1799 if (minSize != SIZE_UNSPECIFIED) { in resolveSizeAndStateRespectingMinSize()
1800 final int desiredWidth = Math.max(minSize, measuredSize); in resolveSizeAndStateRespectingMinSize()
/frameworks/base/core/java/android/content/res/
DConfiguration.java2068 final int minSize = Math.min(this.mLocaleList.size(), that.mLocaleList.size()); in compareTo() local
2069 for (int i = 0; i < minSize; ++i) { in compareTo()

12