Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/android/service/wallpaper/
DEngineWindowPage.java40 public void addArea(RectF area) { in addArea() argument
41 mCallbackAreas.add(area); in addArea()
45 public void addWallpaperColors(RectF area, WallpaperColors colors) { in addWallpaperColors() argument
46 mCallbackAreas.add(area); in addWallpaperColors()
47 mRectFColors.put(area, colors); in addWallpaperColors()
57 public void removeArea(RectF area) { in removeArea() argument
58 mCallbackAreas.remove(area); in removeArea()
59 mRectFColors.remove(area); in removeArea()
DWallpaperService.java777 RectF area = regions.get(i); in notifyLocalColorsChanged() local
778 if (color == null || area == null) { in notifyLocalColorsChanged()
781 + color + " area " + area); in notifyLocalColorsChanged()
787 area, in notifyLocalColorsChanged()
1509 for (RectF area: mLocalColorAreas) { in initWindowPages()
1510 if (!isValid(area)) { in initWindowPages()
1511 mLocalColorAreas.remove(area); in initWindowPages()
1514 int pageNum = getRectFPage(area, step); in initWindowPages()
1515 windowPages[pageNum].addArea(area); in initWindowPages()
1580 for (RectF area: page.getAreas()) { in updatePageColors()
[all …]
DIWallpaperConnection.aidl32 void onLocalWallpaperColorsChanged(in RectF area, in WallpaperColors colors, int displayId); in onLocalWallpaperColorsChanged() argument
/frameworks/native/services/surfaceflinger/
DRegionSamplingThread.cpp209 auto area = sample_area; in sampleArea() local
211 area.top = height - area.top; in sampleArea()
212 area.bottom = height - area.bottom; in sampleArea()
213 std::swap(area.top, area.bottom); in sampleArea()
215 area.left = width - area.left; in sampleArea()
216 area.right = width - area.right; in sampleArea()
217 std::swap(area.left, area.right); in sampleArea()
220 const uint32_t pixelCount = (area.bottom - area.top) * (area.right - area.left); in sampleArea()
224 for (int32_t row = area.top; row < area.bottom; ++row) { in sampleArea()
226 for (int32_t column = area.left; column < area.right; ++column) { in sampleArea()
[all …]
DRegionSamplingThread.h43 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/packages/SystemUI/src/com/android/systemui/
DImageWallpaper.java270 private RectF pageToImgRect(RectF area) { in pageToImgRect() argument
273 float leftPosOnPage = (area.left % virtualPageWidth) / virtualPageWidth; in pageToImgRect()
274 float rightPosOnPage = (area.right % virtualPageWidth) / virtualPageWidth; in pageToImgRect()
275 int currentPage = (int) Math.floor(area.centerX() / virtualPageWidth); in pageToImgRect()
278 imgArea.bottom = area.bottom; in pageToImgRect()
279 imgArea.top = area.top; in pageToImgRect()
298 RectF area = pageToImgRect(areas.get(i)); in getLocalWallpaperColors() local
299 if (area == null || !LOCAL_COLOR_BOUNDS.contains(area)) { in getLocalWallpaperColors()
304 (int) Math.floor(area.left * b.getWidth()), in getLocalWallpaperColors()
305 (int) Math.floor(area.top * b.getHeight()), in getLocalWallpaperColors()
[all …]
DDarkReceiverImpl.kt38 override fun onDarkChanged(area: Rect?, darkIntensity: Float, tint: Int) { in onDarkChanged()
39 val intensity = if (DarkIconDispatcher.isInArea(area, this)) darkIntensity else 0f in onDarkChanged()
/frameworks/base/core/java/android/service/autofill/augmented/
DFillWindow.java101 public boolean update(@NonNull Area area, @NonNull View rootView, long flags) { in update() argument
103 Log.d(TAG, "Updating " + area + " + with " + rootView); in update()
106 Preconditions.checkNotNull(area); in update()
107 Preconditions.checkNotNull(area.proxy); in update()
112 final PresentationParams smartSuggestion = area.proxy.getSmartSuggestionParams(); in update()
118 final Rect rect = area.getBounds(); in update()
127 mProxy = area.proxy; in update()
150 mBounds = new Rect(area.getBounds()); in update()
/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/telephony/java/android/telephony/
DSmsCbLocation.java145 public boolean isInLocationArea(@NonNull SmsCbLocation area) { in isInLocationArea() argument
146 if (mCid != -1 && mCid != area.mCid) { in isInLocationArea()
149 if (mLac != -1 && mLac != area.mLac) { in isInLocationArea()
152 return mPlmn.equals(area.mPlmn); in isInLocationArea()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/
DGraphicsUtils.java82 int area = 0; in getArea() local
85 area += tempRect.width() * tempRect.height(); in getArea()
87 return area; in getArea()
DIconNormalizer.java323 float area = 0; in getScale() local
328 area += mRightBorder[y] - mLeftBorder[y] + 1; in getScale()
347 return getScale(area, rectArea, width * height); in getScale()
408 float area = size * size * MAX_CIRCLE_AREA_FACTOR; in getNormalizedCircleSize() local
409 return (int) Math.round(Math.sqrt((4 * area) / Math.PI)); in getNormalizedCircleSize()
/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/base/core/java/android/view/
DScrollCaptureSearchResults.java216 int scrollAreaA = area(a.getScrollBounds());
217 int scrollAreaB = area(b.getScrollBounds());
221 private static int area(Rect r) { in area() method in ScrollCaptureSearchResults
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaTest.java446 final DisplayArea.Tokens area = new DisplayArea.Tokens(mWm, ABOVE_TASKS, "test"); in testGetOrientation() local
456 area.addChild(token); in testGetOrientation()
462 area.getOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR)); in testGetOrientation()
468 area.getOrientation(ActivityInfo.SCREEN_ORIENTATION_NOSENSOR)); in testGetOrientation()
473 final DisplayArea.Tokens area = new DisplayArea.Tokens(mWm, ABOVE_TASKS, "test"); in testSetIgnoreOrientationRequest() local
483 area.addChild(token); in testSetIgnoreOrientationRequest()
486 assertEquals(ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE, area.getOrientation()); in testSetIgnoreOrientationRequest()
488 area.setIgnoreOrientationRequest(true /* ignoreOrientationRequest */); in testSetIgnoreOrientationRequest()
490 assertEquals(ActivityInfo.SCREEN_ORIENTATION_UNSET, area.getOrientation()); in testSetIgnoreOrientationRequest()
/frameworks/base/core/java/android/app/
DILocalWallpaperColorConsumer.aidl26 void onColorsChanged(in RectF area, in WallpaperColors colors); in onColorsChanged() argument
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaPolicyBuilder.java752 DisplayArea.Tokens area = findAreaForToken(token); in addWindow() local
753 area.addChild(token); in addWindow()
844 final DisplayArea area = child.createArea(parent, areaForLayer); in instantiateChildren() local
845 if (area == null) { in instantiateChildren()
850 parent.addChild(area, WindowContainer.POSITION_TOP); in instantiateChildren()
852 areas.get(child.mFeature).add(area); in instantiateChildren()
854 child.instantiateChildren(area, areaForLayer, level + 1, areas); in instantiateChildren()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDemoStatusIcons.java316 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
317 setColor(DarkIconDispatcher.getTint(area, mStatusIcons, tint)); in onDarkChanged()
320 mWifiView.onDarkChanged(area, darkIntensity, tint); in onDarkChanged()
323 view.onDarkChanged(area, darkIntensity, tint); in onDarkChanged()
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
DGcSnapshot.java503 Area area = null; in clip() local
506 area = new Area(shape); in clip()
508 area = Region_Delegate.combineShapes(getClip(), shape, regionOp); in clip()
512 if (area != null) { in clip()
514 layer.setClip(area); in clip()
521 if (area != null) { in clip()
522 mClip = area; in clip()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DOperatorNameView.java90 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
91 setTextColor(DarkIconDispatcher.getTint(area, this, tint)); in onDarkChanged()
DHeadsUpStatusBarView.java164 public void onDarkChanged(Rect area, float darkIntensity, int tint) { in onDarkChanged() argument
165 mTextView.setTextColor(DarkIconDispatcher.getTint(area, this, tint)); in onDarkChanged()
/frameworks/base/services/core/java/com/android/server/policy/
DDisplayFoldController.java170 void setOverrideFoldedArea(Rect area) { in setOverrideFoldedArea() argument
171 mOverrideFoldedArea.set(area); in setOverrideFoldedArea()

123