Home
last modified time | relevance | path

Searched refs:newInstance (Results 1 – 25 of 73) sorted by relevance

123

/development/samples/browseable/MediaBrowserService/src/com.example.android.mediabrowserservice/
DMusicPlayerActivity.java34 .add(R.id.container, BrowseFragment.newInstance(null)) in onCreate()
43 QueueFragment queueFragment = QueueFragment.newInstance(); in onMediaItemSelected()
50 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId())) in onMediaItemSelected()
/development/samples/browseable/LNotifications/src/com.example.android.lnotifications/
DLNotificationActivity.java59 return HeadsUpNotificationFragment.newInstance(); in getItem()
61 return VisibilityMetadataFragment.newInstance(); in getItem()
63 return OtherMetadataFragment.newInstance(); in getItem()
/development/samples/ApiDemos/src/com/example/android/apis/app/
DFragmentDialogOrActivity.java43 DialogFragment newFragment = MyDialogFragment.newInstance(); in onCreate()
61 DialogFragment newFragment = MyDialogFragment.newInstance(); in showDialog()
68 static MyDialogFragment newInstance() { in newInstance() method in FragmentDialogOrActivity.MyDialogFragment
DFragmentArgumentsFragment.java39 Fragment newFragment = FragmentArguments.MyFragment.newInstance("From Arguments 1"); in onCreate()
41 newFragment = FragmentArguments.MyFragment.newInstance("From Arguments 2"); in onCreate()
DFragmentStack.java56 Fragment newFragment = CountingFragment.newInstance(mStackLevel); in onCreate()
75 Fragment newFragment = CountingFragment.newInstance(mStackLevel); in addFragmentToStack()
95 static CountingFragment newInstance(int num) { in newInstance() method in FragmentStack.CountingFragment
DFragmentCustomAnimations.java54 Fragment newFragment = CountingFragment.newInstance(mStackLevel); in onCreate()
73 Fragment newFragment = CountingFragment.newInstance(mStackLevel); in addFragmentToStack()
96 static CountingFragment newInstance(int num) { in newInstance() method in FragmentCustomAnimations.CountingFragment
DFragmentStackFragment.java39 Fragment newFragment = FragmentStack.CountingFragment.newInstance(mStackLevel); in onCreate()
79 Fragment newFragment = FragmentStack.CountingFragment.newInstance(mStackLevel); in addFragmentToStack()
DFragmentAlertDialog.java57 DialogFragment newFragment = MyAlertDialogFragment.newInstance( in showDialog()
76 public static MyAlertDialogFragment newInstance(int title) { in newInstance() method in FragmentAlertDialog.MyAlertDialogFragment
DFragmentArguments.java45 Fragment newFragment = MyFragment.newInstance("From Arguments"); in onCreate()
60 static MyFragment newInstance(CharSequence label) { in newInstance() method in FragmentArguments.MyFragment
/development/samples/browseable/BasicManagedProfile/src/com.example.android.basicmanagedprofile/
DMainActivity.java45 .replace(R.id.container, SetupProfileFragment.newInstance()) in showSetupProfile()
51 .add(R.id.container, BasicManagedProfileFragment.newInstance()) in showMainFragment()
/development/samples/browseable/DeviceOwner/src/com.example.android.deviceowner/
DMainActivity.java40 showFragment(DeviceOwnerFragment.newInstance()); in onCreate()
44 showFragment(InstructionFragment.newInstance()); in onCreate()
DInstructionFragment.java34 public static InstructionFragment newInstance() { in newInstance() method in InstructionFragment
/development/samples/browseable/HdrViewfinder/src/com.example.android.hdrviewfinder/
DMessageDialogFragment.java29 public static MessageDialogFragment newInstance(int message) { in newInstance() method in MessageDialogFragment
37 public static MessageDialogFragment newInstance(String message) { in newInstance() method in MessageDialogFragment
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCameraActivity.java30 .replace(R.id.container, Camera2VideoFragment.newInstance()) in onCreate()
/development/samples/browseable/CardView/src/com.example.android.cardview/
DCardViewActivity.java33 .add(R.id.container, CardViewFragment.newInstance()) in onCreate()
/development/samples/browseable/Camera2Raw/src/com.example.android.camera2raw/
DCameraActivity.java33 .replace(R.id.container, Camera2RawFragment.newInstance()) in onCreate()
/development/samples/browseable/Camera2Basic/src/com.example.android.camera2basic/
DCameraActivity.java30 .replace(R.id.container, Camera2BasicFragment.newInstance()) in onCreate()
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/
DMainActivity.java33 .add(R.id.container, SchedulerFragment.newInstance()) in onCreate()
/development/samples/browseable/AppUsageStatistics/src/com.example.android.appusagestatistics/
DAppUsageStatisticsActivity.java33 .add(R.id.container, AppUsageStatisticsFragment.newInstance()) in onCreate()
/development/samples/browseable/DirectorySelection/src/com.example.android.directoryselection/
DDirectorySelectionActivity.java33 .add(R.id.container, DirectorySelectionFragment.newInstance()) in onCreate()
/development/samples/browseable/ScopedDirectoryAccess/src/com.example.android.scopeddirectoryaccess/
DMainActivity.java36 .add(R.id.container, ScopedDirectoryAccessFragment.newInstance(), FRAGMENT_TAG) in onCreate()
/development/samples/BusinessCard/src/com/example/android/businesscard/
DContactAccessor.java68 sInstance = clazz.newInstance(); in getInstance()
/development/samples/browseable/SkeletonWearableApp/src/com.example.android.google.wearable.app/
DGridExampleActivity.java79 return MainFragment.newInstance(rowNum, colNum); in getFragment()
106 private static MainFragment newInstance(int rowNum, int colNum) { in newInstance() method in GridExampleActivity.MainFragment
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DMessageDialogFragment.java34 public static MessageDialogFragment newInstance(@StringRes int message) { in newInstance() method in MessageDialogFragment
/development/samples/training/ads-and-ux/src/com/example/training/ads/
DAdsCatalogActivity.java74 return AdFragment.newInstance(position); in getItem()
88 static AdFragment newInstance(int num) { in newInstance() method in AdsCatalogActivity.AdFragment

123