/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/ |
D | MessageDialogFragment.java | 30 MessageDialogFragment fragment = new MessageDialogFragment(); in newInstance() local 33 fragment.setArguments(args); in newInstance() 34 return fragment; in newInstance() 38 MessageDialogFragment fragment = new MessageDialogFragment(); in newInstance() local 41 fragment.setArguments(args); in newInstance() 42 return fragment; in newInstance()
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/ |
D | MainActivity.java | 79 Fragment fragment = tab.getFragment(); in onTabSelected() local 80 if (fragment == null) { in onTabSelected() 82 fragment = Fragment.instantiate(mActivity, mClass.getName()); in onTabSelected() 83 tab.setFragment(fragment); in onTabSelected() 84 ft.add(android.R.id.tabcontent, fragment, tab.getTag()); in onTabSelected() 87 ft.attach(fragment); in onTabSelected() 93 Fragment fragment = tab.getFragment(); in onTabUnselected() local 94 if (fragment != null) { in onTabUnselected() 96 ft.detach(fragment); in onTabUnselected()
|
/development/samples/training/TabCompat/src/com/example/android/tabcompat/lib/ |
D | TabHelperHoneycomb.java | 53 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); in addTab() local 54 tab.setFragment(fragment); in addTab() 56 if (fragment != null && !fragment.isDetached()) { in addTab() 58 ft.detach(fragment); in addTab()
|
D | TabHelperEclair.java | 80 Fragment fragment = mActivity.getSupportFragmentManager().findFragmentByTag(tag); in addTab() local 81 tab.setFragment(fragment); in addTab() 83 if (fragment != null && !fragment.isDetached()) { in addTab() 85 ft.detach(fragment); in addTab()
|
D | CompatTabEclair.java | 55 public CompatTab setFragment(Fragment fragment) { in setFragment() argument 56 mFragment = fragment; in setFragment()
|
/development/samples/WiFiDirectDemo/src/com/example/android/wifidirect/ |
D | WiFiDirectActivity.java | 174 final DeviceListFragment fragment = (DeviceListFragment) getFragmentManager() in onOptionsItemSelected() local 176 fragment.onInitiateDiscovery(); in onOptionsItemSelected() 199 DeviceDetailFragment fragment = (DeviceDetailFragment) getFragmentManager() in showDetails() local 201 fragment.showDetails(device); in showDetails() 224 final DeviceDetailFragment fragment = (DeviceDetailFragment) getFragmentManager() in disconnect() local 226 fragment.resetViews(); in disconnect() 237 fragment.getView().setVisibility(View.GONE); in disconnect() 267 final DeviceListFragment fragment = (DeviceListFragment) getFragmentManager() in cancelDisconnect() local 269 if (fragment.getDevice() == null in cancelDisconnect() 270 || fragment.getDevice().status == WifiP2pDevice.CONNECTED) { in cancelDisconnect() [all …]
|
D | WiFiDirectBroadcastReceiver.java | 96 DeviceDetailFragment fragment = (DeviceDetailFragment) activity in onReceive() local 98 manager.requestConnectionInfo(channel, fragment); in onReceive() 104 DeviceListFragment fragment = (DeviceListFragment) activity.getFragmentManager() in onReceive() local 106 fragment.updateThisDevice((WifiP2pDevice) intent.getParcelableExtra( in onReceive()
|
/development/samples/ApiDemos/src/com/example/android/apis/app/ |
D | FragmentTabsFragment.java | 102 private Fragment fragment; field in FragmentTabsFragment.TabManager.TabInfo 164 tab.fragment = mManager.findFragmentByTag(tab.tag); in handleViewStateRestored() 165 if (tab.fragment != null && !tab.fragment.isDetached()) { in handleViewStateRestored() 177 ft.detach(tab.fragment); in handleViewStateRestored() 231 if (mLastTab.fragment != null) { in doTabChanged() 232 ft.detach(mLastTab.fragment); in doTabChanged() 236 if (newTab.fragment == null) { in doTabChanged() 237 newTab.fragment = Fragment.instantiate(mContext, in doTabChanged() 239 ft.add(mContainerId, newTab.fragment, newTab.tag); in doTabChanged() 241 ft.attach(newTab.fragment); in doTabChanged()
|
D | FragmentHideShow.java | 56 void addShowHideListener(int buttonId, final Fragment fragment) { in addShowHideListener() argument 63 if (fragment.isHidden()) { in addShowHideListener() 64 ft.show(fragment); in addShowHideListener() 67 ft.hide(fragment); in addShowHideListener()
|
/development/samples/browseable/BatchStepSensor/src/com.example.android.batchstepsensor/ |
D | MainActivity.java | 48 BatchStepSensorFragment fragment = in onCreate() local 51 if (fragment == null) { in onCreate() 53 fragment = new BatchStepSensorFragment(); in onCreate() 54 transaction.add(fragment, FRAGTAG); in onCreate() 59 if (!(fragment instanceof OnCardClickListener)){ in onCreate()
|
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/ |
D | MessageDialogFragment.java | 35 MessageDialogFragment fragment = new MessageDialogFragment(); in newInstance() local 38 fragment.setArguments(args); in newInstance() 39 return fragment; in newInstance()
|
D | ConfirmationDialogFragment.java | 41 ConfirmationDialogFragment fragment = new ConfirmationDialogFragment(); in newInstance() local 44 fragment.setArguments(args); in newInstance() 45 return fragment; in newInstance()
|
/development/samples/training/AnimationsDemo/src/com/example/android/animationsdemo/ |
D | ScreenSlidePageFragment.java | 48 ScreenSlidePageFragment fragment = new ScreenSlidePageFragment(); in create() local 51 fragment.setArguments(args); in create() 52 return fragment; in create()
|
/development/samples/browseable/FingerprintDialog/src/com.example.android.fingerprintdialog/ |
D | MainActivity.java | 306 FingerprintAuthenticationDialogFragment fragment in onClick() local 308 fragment.setCryptoObject(new FingerprintManager.CryptoObject(mCipher)); in onClick() 313 fragment.setStage( in onClick() 316 fragment.setStage( in onClick() 319 fragment.show(getFragmentManager(), DIALOG_FRAGMENT_TAG); in onClick() 325 FingerprintAuthenticationDialogFragment fragment in onClick() local 327 fragment.setCryptoObject(new FingerprintManager.CryptoObject(mCipher)); in onClick() 328 fragment.setStage( in onClick() 330 fragment.show(getFragmentManager(), DIALOG_FRAGMENT_TAG); in onClick()
|
/development/samples/browseable/JumpingJack/src/com.example.android.wearable.jumpingjack/ |
D | PagerAdapter.java | 48 public void addFragment(Fragment fragment) { in addFragment() argument 49 mFragments.add(fragment); in addFragment()
|
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/ |
D | SchedulerFragment.java | 55 SchedulerFragment fragment = new SchedulerFragment(); in newInstance() local 56 return fragment; in newInstance() 85 TimePickerFragment fragment = TimePickerFragment.newInstance(); in onViewCreated() 86 fragment.setAlarmAddListener(new AlarmAddListenerImpl()); in onViewCreated() 87 fragment.show(getFragmentManager(), FRAGMENT_TIME_PICKER_TAG); in onViewCreated()
|
/development/samples/browseable/SlidingTabsColors/src/com.example.android.slidingtabscolors/ |
D | ContentFragment.java | 47 ContentFragment fragment = new ContentFragment(); in newInstance() local 48 fragment.setArguments(bundle); in newInstance() 50 return fragment; in newInstance()
|
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/ |
D | MainActivity.java | 49 private void showFragment(Fragment fragment) { in showFragment() argument 51 .replace(R.id.container, fragment) in showFragment()
|
/development/samples/browseable/CardView/src/com.example.android.cardview/ |
D | CardViewFragment.java | 58 CardViewFragment fragment = new CardViewFragment(); in newInstance() local 59 fragment.setRetainInstance(true); in newInstance() 60 return fragment; in newInstance()
|
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/ |
D | HeadsUpNotificationFragment.java | 63 HeadsUpNotificationFragment fragment = new HeadsUpNotificationFragment(); in newInstance() local 64 fragment.setRetainInstance(true); in newInstance() 65 return fragment; in newInstance()
|
D | VisibilityMetadataFragment.java | 63 VisibilityMetadataFragment fragment = new VisibilityMetadataFragment(); in newInstance() local 64 fragment.setRetainInstance(true); in newInstance() 65 return fragment; in newInstance()
|
/development/samples/browseable/NavigationDrawer/src/com.example.android.navigationdrawer/ |
D | NavigationDrawerActivity.java | 174 Fragment fragment = PlanetFragment.newInstance(position); in selectItem() local 178 ft.replace(R.id.content_frame, fragment); in selectItem() 222 Fragment fragment = new PlanetFragment(); in newInstance() local 225 fragment.setArguments(args); in newInstance() 226 return fragment; in newInstance()
|
/development/samples/training/EffectiveNavigation/src/com/example/android/effectivenavigation/ |
D | CollectionDemoActivity.java | 112 Fragment fragment = new DemoObjectFragment(); in getItem() local 115 fragment.setArguments(args); in getItem() 116 return fragment; in getItem()
|
/development/samples/IntentPlayground/src/com/example/android/intentplayground/ |
D | IntentDialogFragment.java | 34 import androidx.fragment.app.DialogFragment; 62 IntentDialogFragment fragment = new IntentDialogFragment(); in newInstance() local 67 fragment.setArguments(args); in newInstance() 68 return fragment; in newInstance()
|
/development/samples/browseable/HorizontalPaging/src/com.example.android.horizontalpaging/ |
D | MainActivity.java | 151 Fragment fragment = new DummySectionFragment(); in getItem() local 154 fragment.setArguments(args); in getItem() 155 return fragment; in getItem()
|