commit | 0415a35168554cf58507ab5a464e8a58309b947e | [log] [tgz] |
---|---|---|
author | Charlie Anderson <charlander@google.com> | Tue Jul 23 16:59:24 2024 -0400 |
committer | Charlie Anderson <charlander@google.com> | Mon Dec 30 09:57:08 2024 -0800 |
tree | da15019ab40e3272e788fe3748c966ad96e12352 | |
parent | bf5e7e867ff422efbd6dc1c28b0878edc700dea7 [diff] |
Add new utility method for setting ImageTest workspace icon Component Bug: 350758155 Test: ArchivedAppImageTest Flag: TEST_ONLY Change-Id: I3f88c64528abeab68d03ba81ebb8e34b5d0e5dad
diff --git a/tests/multivalentTests/src/com/android/launcher3/celllayout/board/TestWorkspaceBuilder.kt b/tests/multivalentTests/src/com/android/launcher3/celllayout/board/TestWorkspaceBuilder.kt index 8952b85..2e556e8 100644 --- a/tests/multivalentTests/src/com/android/launcher3/celllayout/board/TestWorkspaceBuilder.kt +++ b/tests/multivalentTests/src/com/android/launcher3/celllayout/board/TestWorkspaceBuilder.kt
@@ -80,6 +80,15 @@ ) } + /** + * Sets the test app for app icons to the specified Component + * + * @param testAppComponent ComponentName to use for app icons + */ + fun setTestAppComponent(testAppComponent: ComponentName) { + appComponentName = testAppComponent + } + private fun addCorrespondingWidgetRect( widgetRect: WidgetRect, transaction: FavoriteItemsTransaction,