Home
last modified time | relevance | path

Searched refs:crops (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/core/java/android/app/
DIWallpaperManager.aidl58 in int[] screenOrientations, in List<Rect> crops, boolean allowBackup, in setWallpaper() argument
104 in int[] screenOrientations, in List<Rect> crops); in getFutureBitmapCrops() argument
111 Rect getBitmapCrop(in Point bitmapSize, in int[] screenOrientations, in List<Rect> crops); in getBitmapCrop() argument
DWallpaperManager.java1643 List<Rect> crops = entries.stream().map(Map.Entry::getValue).toList(); in getBitmapCrops() local
1645 screenOrientations, crops); in getBitmapCrops()
1674 List<Rect> crops = entries.stream().map(Map.Entry::getValue).toList(); in getWallpaperColors() local
1676 Rect crop = sGlobals.mService.getBitmapCrop(bitmapSize, screenOrientations, crops); in getWallpaperColors()
2289 final List<Rect> crops = visibleCropHint == null ? null : List.of(visibleCropHint); in setBitmap() local
2292 mContext.getOpPackageName(), null, crops, allowBackup, result, which, in setBitmap()
2326 SparseArray<Rect> crops = new SparseArray<>(); in setBitmapWithCrops() local
2327 cropHints.forEach((k, v) -> crops.put(getOrientation(k), v)); in setBitmapWithCrops()
2328 return setBitmapWithCrops(fullImage, crops, allowBackup, which, mContext.getUserId()); in setBitmapWithCrops()
2340 List<Rect> crops = new ArrayList<>(size); in setBitmapWithCrops() local
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperCropperTest.java281 List<Rect> crops = List.of( in testGetAdjustedCrop_add() local
293 for (int i = 0; i < crops.size(); i++) { in testGetAdjustedCrop_add()
294 Rect crop = crops.get(i); in testGetAdjustedCrop_add()
314 List<Rect> crops = List.of( in testGetAdjustedCrop_remove() local
320 for (Rect crop: crops) { in testGetAdjustedCrop_remove()
340 List<Rect> crops = List.of( in testGetAdjustedCrop_balance() local
348 for (int i = 0; i < crops.size(); i++) { in testGetAdjustedCrop_balance()
349 Rect crop = crops.get(i); in testGetAdjustedCrop_balance()
/frameworks/base/core/java/android/window/flags/
Dwallpaper_manager.aconfig15 …description: "Support storing different wallpaper crops for different display dimensions. Only eff…
/frameworks/native/libs/gralloc/types/tests/
DGralloc4_test.cpp355 std::vector<Rect> crops; in TEST_F() local
362 crops.push_back(crop1); in TEST_F()
368 crops.push_back(crop2); in TEST_F()
374 crops.push_back(crop3); in TEST_F()
376 …ASSERT_NO_FATAL_FAILURE(testHelperStableAidlType(crops, gralloc4::encodeCrop, gralloc4::decodeCrop… in TEST_F()
/frameworks/base/services/core/java/com/android/server/wallpaper/
DWallpaperManagerService.java2307 int[] screenOrientations, List<Rect> crops) { in getFutureBitmapCrops() argument
2308 SparseArray<Rect> cropMap = getCropMap(screenOrientations, crops); in getFutureBitmapCrops()
2320 public Rect getBitmapCrop(Point bitmapSize, int[] screenOrientations, List<Rect> crops) { in getBitmapCrop() argument
2325 SparseArray<Rect> cropMap = getCropMap(screenOrientations, crops); in getBitmapCrop()
2892 int[] screenOrientations, List<Rect> crops, boolean allowBackup, in setWallpaper() argument
2900 + ", crops = " + crops in setWallpaper()
2918 SparseArray<Rect> cropMap = !multiCrop() ? null : getCropMap(screenOrientations, crops); in setWallpaper()
2919 Rect cropHint = multiCrop() || crops == null || crops.isEmpty() ? new Rect() : crops.get(0); in setWallpaper()
2986 private SparseArray<Rect> getCropMap(int[] screenOrientations, List<Rect> crops) { in getCropMap() argument
2987 if ((crops == null ^ screenOrientations == null) in getCropMap()
[all …]
DWallpaperCropper.java359 public static Rect getTotalCrop(SparseArray<Rect> crops) { in getTotalCrop() argument
362 for (int i = 0; i < crops.size(); i++) { in getTotalCrop()
363 Rect rect = crops.valueAt(i); in getTotalCrop()
/frameworks/native/libs/gui/tests/
DSurfaceTextureGL_test.cpp140 android_native_rect_t crops[] = { in TEST_F() local
149 const android_native_rect_t& crop(crops[i]); in TEST_F()
/frameworks/native/libs/gralloc/types/
DGralloc4.cpp824 status_t encodeCropHelper(const std::vector<Rect>& crops, OutputHidlVec* outOutputHidlVec) { in encodeCropHelper() argument
825 status_t err = encodeInteger<int64_t>(static_cast<int64_t>(crops.size()), outOutputHidlVec); in encodeCropHelper()
830 for (const auto& crop : crops) { in encodeCropHelper()
/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
DWallpaperBackupAgentTest.java930 private void mockRestoredStaticWallpaperFile(Map<Integer, Rect> crops) throws Exception { in mockRestoredStaticWallpaperFile() argument
937 for (Map.Entry<Integer, Rect> entry: crops.entrySet()) { in mockRestoredStaticWallpaperFile()