Home
last modified time | relevance | path

Searched refs:mBounds (Results 1 – 20 of 20) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/filters/
DImageFilterColorBorder.java30 RectF mBounds = new RectF(); field in ImageFilterColorBorder
62 mBounds.set(0, 0, w, h); in applyHelper()
66 float bs = size / 100.f * mBounds.width(); in applyHelper()
67 float r = radius / 100.f * mBounds.width(); in applyHelper()
69 mInsideBounds.set(mBounds.left + bs, in applyHelper()
70 mBounds.top + bs, mBounds.right - bs, in applyHelper()
71 mBounds.bottom - bs); in applyHelper()
73 mBorderPath.moveTo(mBounds.left, mBounds.top); in applyHelper()
74 mBorderPath.lineTo(mBounds.right, mBounds.top); in applyHelper()
75 mBorderPath.lineTo(mBounds.right, mBounds.bottom); in applyHelper()
[all …]
DRedEyeCandidate.java23 RectF mBounds = new RectF(); field in RedEyeCandidate
27 mBounds.set(candidate.mBounds); in RedEyeCandidate()
32 mBounds.set(bounds); in RedEyeCandidate()
37 && candidate.mBounds.equals(mBounds)) { in equals()
DFilterRedEyeRepresentation.java61 bounds.union(r.mBounds); in addRect()
/packages/modules/ExtServices/java/tests/src/android/ext/services/displayhash/
DHmacKeyManagerTest.java34 private final Rect mBounds = new Rect(0, 0, 100, 200); field in HmacKeyManagerTest
50 assertTrue(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testGenerateAndVerifyHmac()
59 mHmacKeyManager.verifyHmac("fake salt".getBytes(), mTimestamp, mBounds, in testVerifyHmac_differentSalt()
67 assertFalse(mHmacKeyManager.verifyHmac(mSalt, 2000 /* timestamp */, mBounds, in testVerifyHmac_differentTimestamp()
84 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_differentHashAlgorithm()
92 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_differentImageHash()
98 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_differentHmac()
104 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_invalidHmac()
107 assertFalse(mHmacKeyManager.verifyHmac(mSalt, mTimestamp, mBounds, in testVerifyHmac_invalidHmac()
112 byte[] hmac = mHmacKeyManager.generateHmac(mSalt, mTimestamp, mBounds, mHashAlgorithm, in generateHmac()
DDisplayHashingServiceImplTest.java49 private final Rect mBounds = new Rect(0, 0, 10, 10); field in DisplayHashingServiceImplTest
62 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnGenerateAndOnVerifyDisplayHash()
79 mService.onGenerateDisplayHash(null, mBuffer, mBounds, mHashAlgorithm, in testOnGenerateDisplayHash_nullSalt()
87 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, null /* hashAlgorithm */, in testOnGenerateDisplayHash_invalidHashAlgorithm()
93 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, "fake hash", in testOnGenerateDisplayHash_invalidHashAlgorithm()
101 mService.onGenerateDisplayHash(mSalt, null /* buffer */, mBounds, mHashAlgorithm, in testOnGenerateDisplayHash_nullBuffer()
109 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnVerifyDisplayHash_nullSalt()
121 mService.onGenerateDisplayHash(mSalt, mBuffer, mBounds, mHashAlgorithm, in testOnVerifyDisplayHash_nullDisplayHash()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DTransformingTouchDelegate.java34 private final RectF mBounds; field in TransformingTouchDelegate
47 mBounds = new RectF(); in TransformingTouchDelegate()
52 mBounds.set(left, top, right, bottom); in setBounds()
62 mTouchCheckBounds.set(mBounds); in updateTouchBounds()
83 mWasTouchOutsideBounds = !mBounds.contains(event.getX(), event.getY()); in onTouchEvent()
101 event.setLocation(mBounds.centerX(), mBounds.centerY()); in onTouchEvent()
103 event.offsetLocation(-mBounds.left, -mBounds.top); in onTouchEvent()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DGLView.java59 protected final Rect mBounds = new Rect(); field in GLView
188 return mBounds; in bounds()
192 return mBounds.right - mBounds.left; in getWidth()
196 return mBounds.bottom - mBounds.top; in getHeight()
271 int xoffset = component.mBounds.left - mScrollX; in renderChild()
272 int yoffset = component.mBounds.top - mScrollY; in renderChild()
297 Rect rect = component.mBounds; in dispatchTouchEvent()
359 boolean sizeChanged = (right - left) != (mBounds.right - mBounds.left) in setBounds()
360 || (bottom - top) != (mBounds.bottom - mBounds.top); in setBounds()
361 mBounds.set(left, top, right, bottom); in setBounds()
[all …]
DEdgeEffect.java412 private Rect mBounds = new Rect(); field in EdgeEffect.Drawable
428 mBounds.set(left, top, right, bottom); in setBounds()
438 Rect b = mBounds; in draw()
/packages/apps/Settings/src/com/android/settings/biometrics/face/
DAnimationParticle.java51 private final Rect mBounds; // bounds for the canvas field in AnimationParticle
78 mBounds = bounds; in AnimationParticle()
219 final float w = mBounds.right - mBounds.exactCenterX() - mBorderWidth; in drawDot()
220 final float h = mBounds.bottom - mBounds.exactCenterY() - mBorderWidth; in drawDot()
222 mBounds.exactCenterX() + w * (float) Math.cos(mCurrentAngle), in drawDot()
223 mBounds.exactCenterY() + h * (float) Math.sin(mCurrentAngle), in drawDot()
231 mBounds.width() - mBorderWidth, mBounds.height() - mBorderWidth); in drawRing()
DFaceEnrollAnimationDrawable.java45 private Rect mBounds; field in FaceEnrollAnimationDrawable
95 mBounds = bounds; in onBoundsChange()
111 if (mBounds == null) { in draw()
117 canvas.drawRect(0, 0, mBounds.width(), mBounds.height(), mSquarePaint); in draw()
120 canvas.drawCircle(mBounds.exactCenterX(), mBounds.exactCenterY(), in draw()
121 mBounds.height() / 2 - BORDER_BOUNDS, mCircleCutoutPaint); in draw()
/packages/apps/Gallery2/src/com/android/photos/drawables/
DAutoThumbnailDrawable.java57 private Rect mBounds = new Rect(); field in AutoThumbnailDrawable
97 mBounds.set(bounds); in onBoundsChange()
98 if (mBounds.isEmpty()) { in onBoundsChange()
112 canvas.clipRect(mBounds); in draw()
122 if (mBitmap == null || mBounds.isEmpty()) { in updateDrawMatrixLocked()
132 int vwidth = mBounds.width(); in updateDrawMatrixLocked()
133 int vheight = mBounds.height(); in updateDrawMatrixLocked()
156 int vwidth = mBounds.width(); in calculateSampleSizeLocked()
157 int vheight = mBounds.height(); in calculateSampleSizeLocked()
170 if (mBounds.isEmpty() || mImageWidth == 0 || mImageHeight == 0) { in refreshSampleSizeLocked()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DClusterHalServiceTest.java77 Rect mBounds = null; field in ClusterHalServiceTest
87 mBounds = bounds;
218 assertThat(mBounds.left).isEqualTo(BOUNDS_LEFT); in testOnDisplayState()
219 assertThat(mBounds.top).isEqualTo(BOUNDS_TOP); in testOnDisplayState()
220 assertThat(mBounds.right).isEqualTo(BOUNDS_RIGHT); in testOnDisplayState()
221 assertThat(mBounds.bottom).isEqualTo(BOUNDS_BOTTOM); in testOnDisplayState()
235 assertThat(mBounds).isNull(); in testOnDisplayState_DontAcceptPartialDontCare_Bounds()
249 assertThat(mBounds.left).isEqualTo(BOUNDS_LEFT); in testOnDisplayState_DontAcceptPartialDontCare_Inset()
250 assertThat(mBounds.top).isEqualTo(BOUNDS_TOP); in testOnDisplayState_DontAcceptPartialDontCare_Inset()
251 assertThat(mBounds.right).isEqualTo(BOUNDS_RIGHT); in testOnDisplayState_DontAcceptPartialDontCare_Inset()
[all …]
/packages/services/Car/service/src/com/android/car/cluster/
DClusterHomeService.java83 private Rect mBounds = new Rect(); field in ClusterHomeService
142 if (mBounds.right == 0 && mBounds.bottom == 0 && mBounds.left == 0 && mBounds.top == 0) { in initClusterDisplay()
147 mBounds.right = size.x; in initClusterDisplay()
148 mBounds.bottom = size.y; in initClusterDisplay()
149 Slogf.d(TAG, "Found cluster displayId=%d, bounds=%s", clusterDisplayId, mBounds); in initClusterDisplay()
203 if (bounds != null && !mBounds.equals(bounds)) { in onDisplayState()
204 mBounds = bounds; in onDisplayState()
279 mClusterHalService.reportState(mOnOff, mBounds, mInsets, in reportState()
356 state.bounds = mBounds; in createClusterState()
/packages/apps/EmergencyInfo/EmergencyGestureAction/src/com/android/emergency/widgets/countdown/
DCountDownRenderer.java45 private RectF mBounds = null; field in CountDownRenderer
88 if (!mIsRevealed || mBounds == null || mCountDownLeft == null) { in draw()
109 mBounds.left + (mBounds.width() - finalTextBounds.width()) * 0.5f, in draw()
110 mBounds.bottom - (mBounds.height() - finalTextBounds.height())); in draw()
127 this.mBounds = in updateBounds()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSplitScreenBounds.java47 private WindowBounds mBounds; field in SplitScreenBounds
53 if (!bounds.equals(mBounds)) { in setSecondaryWindowBounds()
54 mBounds = bounds; in setSecondaryWindowBounds()
62 if (mBounds == null) { in getSecondaryWindowBounds()
63 mBounds = createDefaultWindowBounds(context); in getSecondaryWindowBounds()
65 return mBounds; in getSecondaryWindowBounds()
/packages/apps/Car/Cluster/ClusterOsDouble/src/com/android/car/cluster/osdouble/
DClusterOsDoubleActivity.java90 private Rect mBounds; field in ClusterOsDoubleActivity
169 mBounds = new Rect(/* left= */ 0, /* top= */ 0,
172 mBounds.inset(/* dx= */ 12, /* dy= */ 12);
310 if (mBounds == null || mInsets == null) return; in sendDisplayState()
314 mBounds.left, mBounds.top, mBounds.right, mBounds.bottom, in sendDisplayState()
/packages/modules/ExtServices/java/src/android/ext/services/displayhash/
DHmacKeyManager.java71 private final Rect mBounds; field in HmacKeyManager.VerificationObject
77 mBounds = bounds; in VerificationObject()
85 parcel.writeParcelable(mBounds, 0); in convertToBytes()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/pipeline/
DRenderingRequest.java36 private Rect mBounds = null; field in RenderingRequest
167 return mBounds; in getBounds()
171 mBounds = bounds; in setBounds()
/packages/apps/WallpaperPicker/src/com/android/wallpaperpicker/
DWallpaperCropActivity.java446 private final Point mBounds;
455 mBounds = bounds;
461 setBoundsAndFinish(mBounds, cropSucceeded && mShouldFadeOutOnFinish);
/packages/apps/Contacts/src/com/android/contacts/list/
DPinnedHeaderListView.java101 private RectF mBounds = new RectF(); field in PinnedHeaderListView
574 mBounds.set(0, 0, view.getWidth(), view.getHeight()); in drawHeader()
575 canvas.saveLayerAlpha(mBounds, header.alpha); in drawHeader()