Home
last modified time | relevance | path

Searched refs:navController (Results 1 – 25 of 29) sorted by relevance

12

/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/navigation/
DPhotopickerNavGraphTest.kt55 lateinit var navController: TestNavHostController variable in com.android.photopicker.core.navigation.PhotopickerNavGraphTest
86 navController = TestNavHostController(LocalContext.current) in testNavGraph()
87 navController.navigatorProvider.addNavigator(ComposeNavigator()) in testNavGraph()
88 navController.navigatorProvider.addNavigator(DialogNavigator()) in testNavGraph()
94 CompositionLocalProvider(LocalNavController provides navController) { in testNavGraph()
119 val route = navController.currentBackStackEntry?.destination?.route in testVerifyStartDestinationWithNoFeatures()
132 val route = navController.currentBackStackEntry?.destination?.route in testStartDestinationWithPriorities()
145 var route = navController.currentBackStackEntry?.destination?.route in testNavigationGraphIsNavigableToDialogs()
152 route = navController.currentBackStackEntry?.destination?.route in testNavigationGraphIsNavigableToDialogs()
158 route = navController.currentBackStackEntry?.destination?.route in testNavigationGraphIsNavigableToDialogs()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DSettingsActivity.kt68 val navController = findNavController(R.id.nav_host_fragment) in maybeNavigateToAppPermissions() constant
71 navController.navigate( in maybeNavigateToAppPermissions()
80 val navController = findNavController(R.id.nav_host_fragment) in onBackPressed() constant
81 if (!navController.popBackStack()) { in onBackPressed()
87 val navController = Navigation.findNavController(this, R.id.nav_host_fragment) in onNavigateUp() constant
88 if (!navController.popBackStack()) { in onNavigateUp()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/
DPhotopickerFeatureBaseTest.kt57 lateinit var navController: TestNavHostController variable in com.android.photopicker.features.PhotopickerFeatureBaseTest
69 navController = TestNavHostController(getTestableContext()) in createNavController()
70 navController.navigatorProvider.addNavigator(ComposeNavigator()) in createNavController()
71 navController.navigatorProvider.addNavigator(DialogNavigator()) in createNavController()
72 return navController in createNavController()
131 navController: TestNavHostController = createNavController(), in callPhotopickerMain()
137 LocalNavController provides navController, in callPhotopickerMain()
/packages/modules/HealthFitness/testapps/toolbox/src/com/android/healthconnect/testapps/toolbox/
DMainActivity.kt30 val navController = findNavController(R.id.nav_host_fragment) in onBackPressed() constant
31 if (!navController.popBackStack()) { in onBackPressed()
37 val navController = findNavController(R.id.nav_host_fragment) in onNavigateUp() constant
38 if (!navController.popBackStack()) { in onNavigateUp()
/packages/modules/Bluetooth/android/ChannelSoundingTestApp/app/src/main/java/com/android/bluetooth/channelsoundingtestapp/
DMainActivity.java47 NavController navController = in onCreate() local
49 appBarConfiguration = new AppBarConfiguration.Builder(navController.getGraph()).build(); in onCreate()
50 NavigationUI.setupActionBarWithNavController(this, navController, appBarConfiguration); in onCreate()
96 NavController navController = in onSupportNavigateUp() local
98 return NavigationUI.navigateUp(navController, appBarConfiguration) in onSupportNavigateUp()
/packages/apps/Settings/src/com/android/settings/remoteauth/
DRemoteAuthActivity.kt48 val navController = navHostFragment.navController in initializeNavigation() constant
49 val navGraph = navController.navInflater.inflate(R.navigation.remote_auth_navigation) in initializeNavigation()
51 navController.graph = navGraph in initializeNavigation()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/preview/
DPreviewFeatureTest.kt333 navController.navigateToPreviewMedia(TEST_MEDIA_IMAGE) in testNavigateToPreviewImage()
337 .that(navController.currentBackStackEntry?.destination?.route) in testNavigateToPreviewImage()
341 navController.currentBackStackEntry in testNavigateToPreviewImage()
367 navController.navigateToPreviewMedia(TEST_MEDIA_VIDEO) in testNavigateToPreviewVideo()
371 .that(navController.currentBackStackEntry?.destination?.route) in testNavigateToPreviewVideo()
375 navController.currentBackStackEntry in testNavigateToPreviewVideo()
410 navController.navigateToPreviewMedia(TEST_MEDIA_IMAGE) in testPreviewMediaToggleSelection()
462 composeTestRule.runOnUiThread({ navController.navigateToPreviewSelection() }) in testNavigateToPreviewSelection()
465 .that(navController.currentBackStackEntry?.destination?.route) in testNavigateToPreviewSelection()
496 composeTestRule.runOnUiThread({ navController.navigateToPreviewSelection() }) in testPreviewSelectionActions()
[all …]
/packages/modules/Connectivity/thread/demoapp/java/com/android/threadnetwork/demoapp/
DMainActivity.java42 NavController navController = navHostFragment.getNavController(); in onCreate() local
47 new AppBarConfiguration.Builder(navController.getGraph()) in onCreate()
51 NavigationUI.setupWithNavController(topAppBar, navController, appBarConfig); in onCreate()
54 NavigationUI.setupWithNavController(navView, navController); in onCreate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/
DMainActivity.kt71 val navController = findNavController(R.id.nav_host_fragment) in onBackPressed() constant
72 if (!navController.popBackStack()) { in onBackPressed()
78 val navController = findNavController(R.id.nav_host_fragment) in onNavigateUp() constant
79 if (!navController.popBackStack()) { in onNavigateUp()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/albumgrid/
DAlbumGrid.kt66 val navController = LocalNavController.current in <lambda>() constant
88 navController.navigateToPhotoGrid() in <lambda>()
100 navController.navigateToAlbumMediaGrid(album = item.album) in <lambda>()
122 val navController = LocalNavController.current in AlbumGridNavButton() constant
125 onClick = navController::navigateToAlbumGrid, in AlbumGridNavButton()
DAlbumMediaGrid.kt130 val navController = LocalNavController.current in AlbumMediaGridView() constant
141 IconButton(onClick = { navController.navigateToAlbumGrid() }) { in AlbumMediaGridView()
181 navController.navigateToPreviewMedia(item.media) in AlbumMediaGridView()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/test/highpriorityuifeature/
DHighPriorityUiFeature.kt140 val navController = LocalNavController.current in dialog() constant
144 Button(onClick = { navController.navigate(START_ROUTE) }) { in dialog()
158 val navController = LocalNavController.current in start() constant
163 Button(onClick = { navController.navigate(DIALOG_ROUTE) }) { in start()
169 Button(onClick = { navController.navigate(SimpleUiFeature.SIMPLE_ROUTE) }) { in start()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/photogrid/
DPhotoGrid.kt59 val navController = LocalNavController.current in <lambda>() constant
91 navController.navigateToAlbumGrid() in <lambda>()
113 navController.navigateToPreviewMedia(item.media) in <lambda>()
127 val navController = LocalNavController.current in PhotoGridNavButton() constant
130 onClick = navController::navigateToPhotoGrid, in PhotoGridNavButton()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/navigationbar/
DNavigationBar.kt57 val navController = LocalNavController.current in NavigationBar() constant
58 val navBackStackEntry by navController.currentBackStackEntryAsState() in NavigationBar()
96 val navController = LocalNavController.current in NavigationBarButton() constant
97 val navBackStackEntry by navController.currentBackStackEntryAsState() in NavigationBarButton()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/
DDataManagementActivity.kt103 val navController = findNavController(R.id.nav_host_fragment) in <lambda>() constant
104 if (!navController.popBackStack()) { in <lambda>()
110 val navController = findNavController(R.id.nav_host_fragment) in <lambda>() constant
111 if (!navController.popBackStack()) { in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/
DPhotopickerApp.kt73 val navController = rememberNavController() in PhotopickerAppWithBottomSheet() constant
76 CompositionLocalProvider(LocalNavController provides navController) { in PhotopickerAppWithBottomSheet()
148 val navController = rememberNavController() in PhotopickerApp() constant
151 CompositionLocalProvider(LocalNavController provides navController) { PhotopickerMain() } in PhotopickerApp()
/packages/apps/Settings/src/com/android/settings/remoteauth/introduction/
DRemoteAuthEnrollIntroduction.kt37 private val navController by lazy { findNavController(this) } in <lambda>() constant
68 navController.navigate(R.id.action_introduction_to_enrolling) in <lambda>()
72 navController.navigateUp() in <lambda>()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/navigation/
DPhotopickerNavGraph.kt47 val navController = LocalNavController.current in <lambda>() constant
50 navController = navController, in <lambda>()
/packages/apps/Settings/src/com/android/settings/remoteauth/enrolling/
DRemoteAuthEnrollEnrolling.kt45 private val navController by lazy { findNavController(this) } in <lambda>() constant
100 navController.navigateUp() in onSecondaryFooterButtonClick()
119 navController.navigate(R.id.action_enrolling_to_finish) in updateUi()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/migration/
DMigrationActivity.kt252 val navController = findNavController(R.id.nav_host_fragment) in <lambda>() constant
253 if (!navController.popBackStack()) { in <lambda>()
259 val navController = findNavController(R.id.nav_host_fragment) in <lambda>() constant
260 if (!navController.popBackStack()) { in <lambda>()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/preview/ui/
DWallpaperPreviewActivity.kt86 val navController = in <lambda>() constant
89 .navController in <lambda>()
90 val graph = navController.navInflater.inflate(R.navigation.wallpaper_preview_nav_graph) in <lambda>()
101 navController.setGraph(graph, startDestinationArgs) in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnEditPageProvider.kt91 val navController = LocalNavController.current in <lambda>() constant
94 if (!isEnabled) navController.navigateBack() in <lambda>()
115 val navController = LocalNavController.current in ApnPage() constant
128 if (valid == null) navController.navigateBack() in ApnPage()
140 navController.navigateBack() in ApnPage()
/packages/apps/Settings/src/com/android/settings/spa/app/appinfo/
DAppCreateButton.kt49 val navController = LocalNavController.current in createButton() constant
69 navController.navigate(getRoute(app.packageName, cloneBackend.cloneUserId), in createButton()
DPackageInfoPresenter.kt109 val navController = LocalNavController.current in <lambda>() constant
112 navController.navigateBack() in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/model/
DReviewPermissionsViewModel.kt155 val navController: NavController = NavHostFragment.findNavController(fragment) in <lambda>() constant
156 navController.navigateSafe(R.id.app_to_all_perms, args) in <lambda>()

12