Home
last modified time | relevance | path

Searched refs:inv (Results 1 – 25 of 37) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/
DDeviceProfile.java40 public final InvariantDeviceProfile inv; field in DeviceProfile
143 DeviceProfile(Context context, InvariantDeviceProfile inv, DefaultDisplay.Info info, in DeviceProfile() argument
148 this.inv = inv; in DeviceProfile()
220 hotseatBarSizePx = ResourceUtils.pxFromDp(inv.iconSize, mInfo.metrics) in DeviceProfile()
255 return new Builder(context, inv, mInfo) in toBuilder()
304 return isLandscape ? inv.landscapeProfile : inv.portraitProfile; in getFullScreenProfile()
332 float usedHeight = (cellHeightPx * inv.numRows); in updateAvailableDimensions()
349 float invIconSizeDp = isVerticalLayout ? inv.landscapeIconSize : inv.iconSize; in updateIconSize()
352 iconTextSizePx = (int) (Utilities.pxFromSp(inv.iconTextSize, mInfo.metrics) * scale); in updateIconSize()
370 allAppsIconSizePx = ResourceUtils.pxFromDp(inv.allAppsIconSize, mInfo.metrics); in updateIconSize()
[all …]
DPartner.java110 … public void applyInvariantDeviceProfileOverrides(InvariantDeviceProfile inv, DisplayMetrics dm) { in applyInvariantDeviceProfileOverrides() argument
140 inv.numRows = numRows; in applyInvariantDeviceProfileOverrides()
141 inv.numColumns = numColumns; in applyInvariantDeviceProfileOverrides()
145 inv.iconSize = iconSize; in applyInvariantDeviceProfileOverrides()
DDropTargetBar.java103 - (grid.inv.numColumns * grid.cellWidthPx)) in setInsets()
104 / (2 * (grid.inv.numColumns + 1))) in setInsets()
107 gap = grid.desiredWorkspaceLeftRightMarginPx - grid.inv.defaultWidgetPadding.right; in setInsets()
DAppWidgetResizeFrame.java41 InvariantDeviceProfile inv = LauncherAppState.getIDP(c);
42 return new Point[] {inv.landscapeProfile.getCellSize(),
43 inv.portraitProfile.getCellSize()};
DHotseat.java73 InvariantDeviceProfile idp = mActivity.getDeviceProfile().inv; in resetLayout()
DLauncher.java523 onIdpChanged(mDeviceProfile.inv); in onConfigurationChanged()
629 if (new FolderGridOrganizer(getDeviceProfile().inv) in invalidateParent()
2449 mDeviceProfile.inv.numFolderColumns * mDeviceProfile.inv.numFolderRows); in finishBindingItems()
/packages/apps/ThemePicker/robolectric_tests/src/com/android/customization/testutils/
DOverlayManagerMocks.java101 (Answer<String>) inv -> in setUpMock()
104 mockOverlay.targetPackage.equals(inv.getArgument(0)) in setUpMock()
105 && mockOverlay.category.equals(inv.getArgument(1))) in setUpMock()
123 (Answer<Map<String, String>>) inv -> in setUpMock()
126 Arrays.asList(inv.getArguments()) in setUpMock()
/packages/apps/Settings/tests/unit/src/com/android/settings/display/
DThemePreferenceControllerTest.java76 when(mMockPackageManager.getApplicationInfo(any(), anyInt())).thenAnswer(inv -> { in testUpdateState()
78 if ("com.android.Theme1".equals(inv.getArguments()[0])) { in testUpdateState()
112 when(mMockPackageManager.getApplicationInfo(any(), anyInt())).thenAnswer(inv -> { in testUpdateState_withStaticOverlay()
114 if ("com.android.Theme1".equals(inv.getArguments()[0])) { in testUpdateState_withStaticOverlay()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/hybridhotseat/
DHotseatEduController.java100 for (int i = 0; i < mLauncher.getDeviceProfile().inv.numHotseatIcons; i++) { in migrateToFolder()
137 InvariantDeviceProfile idp = mLauncher.getDeviceProfile().inv; in placeFoldersInWorkspace()
188 toRow = mLauncher.getDeviceProfile().inv.numRows - 1; in migrateHotseatWhole()
199 for (int i = 0; i < mLauncher.getDeviceProfile().inv.numHotseatIcons; i++) { in migrateHotseatWhole()
235 < mLauncher.getDeviceProfile().inv.numHotseatIcons) { in showDimissTip()
DHotseatEduDialog.java92 mSampleHotseat.setGridSize(grid.inv.numHotseatIcons, 1); in onFinishInflate()
192 for (int i = 0; i < mLauncher.getDeviceProfile().inv.numHotseatIcons; i++) { in populatePreview()
208 || predictions.size() < mLauncher.getDeviceProfile().inv.numHotseatIcons in show()
DHotseatRestoreHelper.java48 InvariantDeviceProfile idp = mLauncher.getDeviceProfile().inv; in createBackup()
73 InvariantDeviceProfile idp = mLauncher.getDeviceProfile().inv; in restoreBackup()
DHotseatPredictionController.java146 mHotSeatItemsCount = mLauncher.getDeviceProfile().inv.numHotseatIcons; in HotseatPredictionController()
147 launcher.getDeviceProfile().inv.addOnChangeListener(this); in HotseatPredictionController()
290 mLauncher.getDeviceProfile().inv.removeOnChangeListener(this); in destroy()
/packages/modules/NetworkStack/tests/unit/src/android/net/ip/
DIpReachabilityMonitorTest.kt167 doAnswer { inv -> in setUp() method
168 val handler = inv.getArgument<Handler>(0) in setUp()
169 val log = inv.getArgument<SharedLog>(1) in setUp()
170 val cb = inv.getArgument<IpNeighborMonitor.NeighborEventConsumer>(2) in setUp()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DStaggeredWorkspaceAnim.java103 int totalRows = grid.inv.numRows + (grid.isVerticalBarLayout() ? 0 : 2); in StaggeredWorkspaceAnim()
123 addStaggeredAnimationForView(child, grid.inv.numRows + 1, totalRows); in StaggeredWorkspaceAnim()
129 grid.inv.numRows + 2, totalRows); in StaggeredWorkspaceAnim()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java235 .thenAnswer(inv -> { in mockBindService()
244 doAnswer(inv -> { in mockUnbindService()
256 .thenAnswer(inv -> { in mockKeySettings()
DCarUserManagerUnitTest.java441 doAnswer((inv) -> { in testSetUserIdentificationAssociation_ok() argument
444 (AndroidFuture<UserIdentificationAssociationResponse>) inv.getArguments()[3]; in testSetUserIdentificationAssociation_ok()
/packages/apps/Launcher3/src/com/android/launcher3/secondarydisplay/
DSecondaryDragLayer.java81 mWorkspace.setNumColumns(mActivity.getDeviceProfile().inv.numColumns); in onFinishInflate()
112 InvariantDeviceProfile idp = grid.inv; in onMeasure()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DInputHalServiceTest.java152 doAnswer(inv -> { in dispatchesInputEvent_multiple_toListener()
153 KeyEvent event = inv.getArgument(0); in dispatchesInputEvent_multiple_toListener()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DPhotoView.java1008 Matrix inv = new Matrix(); in onSingleTapUp() local
1009 m.invert(inv); in onSingleTapUp()
1011 inv.mapPoints(pts); in onSingleTapUp()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/
DAppsSearchContainerLayout.java110 int cellWidth = DeviceProfile.calculateCellWidth(rowWidth, dp.inv.numHotseatIcons); in onMeasure()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DAlphabeticalAppsList.java147 mNumAppsPerRow = mLauncher.getDeviceProfile().inv.numColumns; in AlphabeticalAppsList()
DAllAppsGridAdapter.java204 setAppsPerRow(mLauncher.getDeviceProfile().inv.numAllAppsColumns); in AllAppsGridAdapter()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/launcher3/appprediction/
DPredictionRowView.java235 mNumPredictedAppsPerRow = dp.inv.numAllAppsColumns; in onDeviceProfileChanged()
/packages/apps/Launcher3/src/com/android/launcher3/folder/
DFolderAnimationManager.java96 mPreviewVerifier = new FolderGridOrganizer(mLauncher.getDeviceProfile().inv); in FolderAnimationManager()
DFolder.java989 mLauncher.getDeviceProfile().inv).setFolderInfo(mInfo); in updateItemLocationsInDatabaseBatch()
1359 mLauncher.getDeviceProfile().inv).setFolderInfo(mInfo); in onAdd()

12