Home
last modified time | relevance | path

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

1234

/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
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
DFragmentArgumentsFragment.java39 Fragment newFragment = FragmentArguments.MyFragment.newInstance("From Arguments 1"); in onCreate()
41 newFragment = FragmentArguments.MyFragment.newInstance("From Arguments 2"); in onCreate()
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
DFragmentDialog.java81 DialogFragment newFragment = MyDialogFragment.newInstance(mStackLevel); in showDialog()
109 static MyDialogFragment newInstance(int num) { in newInstance() method in FragmentDialog.MyDialogFragment
DFragmentLayout.java148 details = DetailsFragment.newInstance(index); in showDetails()
184 public static DetailsFragment newInstance(int index) { in newInstance() method in FragmentLayout.DetailsFragment
/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()
/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/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/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
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/
DSchedulerFragment.java54 public static SchedulerFragment newInstance() { in newInstance() method in SchedulerFragment
85 TimePickerFragment fragment = TimePickerFragment.newInstance(); in onViewCreated()
DMainActivity.java33 .add(R.id.container, SchedulerFragment.newInstance()) in onCreate()
/development/samples/browseable/PermissionRequest/src/com.example.android.permissionrequest/
DPermissionRequestFragment.java128 MessageDialogFragment.newInstance(R.string.permission_message) in requestCameraPermission()
156 .newInstance(new String[]{PermissionRequest.RESOURCE_VIDEO_CAPTURE})
/development/samples/browseable/Camera2Video/src/com.example.android.camera2video/
DCamera2VideoFragment.java223 public static Camera2VideoFragment newInstance() { in newInstance() method in Camera2VideoFragment
389 ErrorDialog.newInstance(getString(R.string.permission_request)) in onRequestPermissionsResult()
395 ErrorDialog.newInstance(getString(R.string.permission_request)) in onRequestPermissionsResult()
457 ErrorDialog.newInstance(getString(R.string.camera_error)) in openCamera()
710 public static ErrorDialog newInstance(String message) { in newInstance() method in Camera2VideoFragment.ErrorDialog
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/Camera2Basic/src/com.example.android.camera2basic/
DCameraActivity.java30 .replace(R.id.container, Camera2BasicFragment.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/AppUsageStatistics/src/com.example.android.appusagestatistics/
DAppUsageStatisticsActivity.java33 .add(R.id.container, AppUsageStatisticsFragment.newInstance()) in onCreate()

1234