Home
last modified time | relevance | path

Searched refs:area (Results 1 – 25 of 49) sorted by relevance

12

/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp279 auto area = sample_area; in sampleArea() local
281 area.top = height - area.top; in sampleArea()
282 area.bottom = height - area.bottom; in sampleArea()
283 std::swap(area.top, area.bottom); in sampleArea()
285 area.left = width - area.left; in sampleArea()
286 area.right = width - area.right; in sampleArea()
287 std::swap(area.left, area.right); in sampleArea()
291 const int32_t majoritySampleNum = area.getWidth() * area.getHeight() / 2; in sampleArea()
293 for (int32_t row = area.top; row < area.bottom; ++row) { in sampleArea()
295 for (int32_t column = area.left; column < area.right; ++column) { in sampleArea()
[all …]
DRegionSamplingThread.h41 uint32_t orientation, const Rect& area);
86 Rect area = Rect::EMPTY_RECT; member
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/
DDarkIconDispatcher.java103 static boolean isInArea(Rect area, View view) { in isInArea() argument
104 if (area.isEmpty()) { in isInArea()
107 sTmpRect.set(area); in isInArea()
111 int intersectStart = Math.max(left, area.left); in isInArea()
112 int intersectEnd = Math.min(left + view.getWidth(), area.right); in isInArea()
115 boolean coversFullStatusBar = area.top <= 0; in isInArea()
126 void onDarkChanged(Rect area, float darkIntensity, int tint); in onDarkChanged() argument
/frameworks/compile/mclinker/unittests/
DMCRegionFragmentTest.cpp44 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite); in TEST_F() local
46 MemoryRegion* region = area->request(0, 4096); in TEST_F()
59 MemoryArea* area = areaFactory->produce(path, MemoryArea::ReadWrite); in TEST_F() local
61 MemoryRegion* region = area->request(0, 4096); in TEST_F()
DFragmentRefTest.cpp46 MemoryArea* area = variable
50 llvm::StringRef region = area->request(0, 4096);
/frameworks/base/core/java/android/service/autofill/augmented/
DFillWindow.java102 public boolean update(@NonNull Area area, @NonNull View rootView, long flags) { in update() argument
104 Log.d(TAG, "Updating " + area + " + with " + rootView); in update()
107 Preconditions.checkNotNull(area); in update()
108 Preconditions.checkNotNull(area.proxy); in update()
113 final PresentationParams smartSuggestion = area.proxy.getSmartSuggestionParams(); in update()
119 final Rect rect = area.getBounds(); in update()
128 mProxy = area.proxy; in update()
151 mBounds = new Rect(area.getBounds()); in update()
/frameworks/base/telephony/java/com/android/internal/telephony/
DSmsCbLocation.java132 public boolean isInLocationArea(SmsCbLocation area) { in isInLocationArea() argument
133 if (mCid != -1 && mCid != area.mCid) { in isInLocationArea()
136 if (mLac != -1 && mLac != area.mLac) { in isInLocationArea()
139 return mPlmn.equals(area.mPlmn); in isInLocationArea()
/frameworks/base/core/java/android/hardware/camera2/utils/
DSizeAreaComparator.java47 long area = width * size.getHeight(); in compare() local
50 if (area == area2) { in compare()
54 return (area > area2) ? 1 : -1; in compare()
/frameworks/base/core/java/android/hardware/camera2/legacy/
DSizeAreaComparator.java48 long area = width * size.height; in compare() local
51 if (area == area2) { in compare()
55 return (area > area2) ? 1 : -1; in compare()
DParameterUtils.java295 public static String stringFromArea(Camera.Area area) { in stringFromArea() argument
296 if (area == null) { in stringFromArea()
300 Rect r = area.rect; in stringFromArea()
308 sb.append(area.weight); in stringFromArea()
327 for (Camera.Area area : areaList) { in stringFromAreaList()
328 if (area == null) { in stringFromAreaList()
331 sb.append(stringFromArea(area)); in stringFromAreaList()
894 Rect activeArray, ZoomData zoomData, Camera.Area area) { in convertCameraAreaToActiveArrayRectangle() argument
895 return convertCameraAreaToActiveArrayRectangle(activeArray, zoomData, area, in convertCameraAreaToActiveArrayRectangle()
957 Rect activeArray, ZoomData zoomData, Camera.Area area, boolean usePreviewCrop) { in convertCameraAreaToActiveArrayRectangle() argument
[all …]
/frameworks/base/libs/hwui/pipeline/skia/
DVectorDrawableAtlas.cpp159 const size_t area = width * height; in requestNewEntry() local
165 mPixelUsedByVDs += area; in requestNewEntry()
166 mPixelAllocated += area; in requestNewEntry()
178 auto freeRectIt = mFreeRects.lower_bound(area); in requestNewEntry()
188 mPixelUsedByVDs += area; in requestNewEntry()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DStatusBarWifiView.java238 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
239 if (!isInArea(area, this)) { in onDarkChanged()
243 mWifiIcon.setImageTintList(ColorStateList.valueOf(getTint(area, this, tint))); in onDarkChanged()
244 mIn.setImageTintList(ColorStateList.valueOf(getTint(area, this, tint))); in onDarkChanged()
245 mOut.setImageTintList(ColorStateList.valueOf(getTint(area, this, tint))); in onDarkChanged()
DOperatorNameView.java90 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
91 setTextColor(DarkIconDispatcher.getTint(area, this, tint)); in onDarkChanged()
DStatusBarMobileView.java210 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
211 if (!isInArea(area, this)) { in onDarkChanged()
216 ColorStateList color = ColorStateList.valueOf(getTint(area, this, tint)); in onDarkChanged()
DHeadsUpStatusBarView.java272 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
273 mTextView.setTextColor(DarkIconDispatcher.getTint(area, this, tint)); in onDarkChanged()
/frameworks/layoutlib/bridge/src/android/view/math/
DMath3DHelper.java61 float area = 0; in centroid2d() local
70 area += a; in centroid2d()
73 float centroidx = sumx / (3 * area); in centroid2d()
74 float centroidy = sumy / (3 * area); in centroid2d()
81 double area = 0; in centroid3d() local
97 area += areaOfTriangle; in centroid3d()
102 ret[0] = (float) (cx / (3 * area)); in centroid3d()
103 ret[1] = (float) (cy / (3 * area)); in centroid3d()
104 ret[2] = (float) (cz / (3 * area)); in centroid3d()
/frameworks/base/core/proto/android/os/
Dpagetypeinfo.proto32 * Each zone has 11 free area. Each free area corresponds to pages of the same order.
33 * Each free area has 6 free list. Each corresponds to one migration type.
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java497 Area area = null; in clip() local
500 area = new Area(shape); in clip()
502 area = Region_Delegate.combineShapes(getClip(), shape, regionOp); in clip()
505 assert area != null; in clip()
508 if (area != null) { in clip()
510 layer.setClip(area); in clip()
517 if (area != null) { in clip()
518 mClip = area; in clip()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDemoStatusIcons.java295 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
296 setColor(DarkIconDispatcher.getTint(area, mStatusIcons, tint)); in onDarkChanged()
299 mWifiView.onDarkChanged(area, darkIntensity, tint); in onDarkChanged()
302 view.onDarkChanged(area, darkIntensity, tint); in onDarkChanged()
DHeadsUpAppearanceController.java399 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
400 mHeadsUpStatusBarView.onDarkChanged(area, darkIntensity, tint); in onDarkChanged()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DMediaNotificationProcessor.java112 int area = width * height; in processNotification() local
113 if (area > RESIZE_BITMAP_AREA) { in processNotification()
114 double factor = Math.sqrt((float) RESIZE_BITMAP_AREA / area); in processNotification()
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java145 void setOverrideFoldedArea(Rect area) { in setOverrideFoldedArea() argument
146 mOverrideFoldedArea.set(area); in setOverrideFoldedArea()
/frameworks/rs/tests/java_api/HealingBrush/src/rs/example/android/com/healingbrush/
DHealing.java113 int area = calcMaskArea(mask); in heal() local
115 int steps = (int) Math.sqrt(area); in heal()
/frameworks/base/core/java/com/android/internal/app/
DSimpleIconFactory.java492 float area = 0; in getScale() local
497 area += mRightBorder[y] - mLeftBorder[y] + 1; in getScale()
502 float hullByRect = area / rectArea; in getScale()
521 float areaScale = area / (width * height); in getScale()
/frameworks/native/opengl/libagl/
Dprimitives.cpp259 const GGLcoord area = (m_area + TRI_HALF) >> TRI_FRACTION_BITS; in initLerp() local
264 if (abs(area) >= minArea) { in initLerp()
270 d = gglRecipQNormalized(area, &q); in initLerp()
704 const GGLcoord area = abs(lerp.area()); in compute_lod() local
711 int log2Area = (32-TRI_FRACTION_BITS*2-1) - gglClz(area); in compute_lod()
830 const GLenum winding = (c->lerp.area() > 0) ? GL_CW : GL_CCW; in cull_triangle()

12