Searched refs:newInstance (Results 1 - 25 of 301) sorted by relevance

1234567891011>>

/frameworks/base/core/java/android/content/res/
H A DConstantState.java44 public abstract T newInstance(); method in class:ConstantState
52 public T newInstance(Resources res) { method in class:ConstantState
53 return newInstance();
60 public T newInstance(Resources res, Resources.Theme theme) { method in class:ConstantState
61 return newInstance(res);
H A DConfigurationBoundResourceCache.java40 return entry.newInstance(resources, theme);
/frameworks/base/core/tests/coretests/src/android/net/http/
H A DAndroidHttpClientProxyTest.java24 return AndroidHttpClient.newInstance(AbstractProxyTest.class.getName());
/frameworks/base/core/java/android/app/
H A DAppComponentFactory.java50 return (Application) cl.loadClass(className).newInstance();
69 return (Activity) cl.loadClass(className).newInstance();
84 return (BroadcastReceiver) cl.loadClass(className).newInstance();
103 return (Service) cl.loadClass(className).newInstance();
121 return (ContentProvider) cl.loadClass(className).newInstance();
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
H A DWifiP2pDnsSdServiceRequest.java32 * This constructor is only used in newInstance().
42 * This constructor is only used in newInstance().
61 public static WifiP2pDnsSdServiceRequest newInstance() { method in class:WifiP2pDnsSdServiceRequest
75 public static WifiP2pDnsSdServiceRequest newInstance(String serviceType) { method in class:WifiP2pDnsSdServiceRequest
96 public static WifiP2pDnsSdServiceRequest newInstance(String instanceName, method in class:WifiP2pDnsSdServiceRequest
H A DWifiP2pUpnpServiceRequest.java34 * This constructor is only used in newInstance().
44 * This constructor is only used in newInstance().
56 public static WifiP2pUpnpServiceRequest newInstance() { method in class:WifiP2pUpnpServiceRequest
73 public static WifiP2pUpnpServiceRequest newInstance(String st) { method in class:WifiP2pUpnpServiceRequest
/frameworks/support/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DMainActivity.java36 .add(R.id.fragment_container, MainFragment.newInstance())
45 .replace(R.id.fragment_container, ListFragment.newInstance())
/frameworks/support/samples/SupportEmojiDemos/src/main/java/com/example/android/support/text/emoji/
H A DMainActivity.java36 .add(R.id.fragment_container, MainFragment.newInstance())
45 .replace(R.id.fragment_container, ListFragment.newInstance())
/frameworks/support/media/api21/android/support/v4/media/
H A DParceledListSliceAdapterApi21.java42 static Object newInstance(List<MediaBrowser.MediaItem> itemList) { method in class:ParceledListSliceAdapterApi21
45 result = sConstructor.newInstance(itemList);
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaBrowserSupport.java39 .add(R.id.container, BrowseFragment.newInstance(null))
50 QueueFragment queueFragment = QueueFragment.newInstance();
58 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId()))
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/media/
H A DMediaBrowserSupport.java39 .add(R.id.container, BrowseFragment.newInstance(null))
50 QueueFragment queueFragment = QueueFragment.newInstance();
58 .replace(R.id.container, BrowseFragment.newInstance(item.getMediaId()))
/frameworks/support/slices/core/src/main/java/androidx/slice/
H A DArrayUtils.java45 result = (T[]) Array.newInstance(kind, end + 1);
49 result = (T[]) Array.newInstance(kind, 1);
66 T[] result = (T[]) Array.newInstance(kind, length - 1);
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java30 * <p>To create a BitmapRegionDecoder, call newInstance(...).
60 public static BitmapRegionDecoder newInstance(byte[] data, method in class:BitmapRegionDecoder
85 public static BitmapRegionDecoder newInstance( method in class:BitmapRegionDecoder
113 public static BitmapRegionDecoder newInstance(InputStream is, method in class:BitmapRegionDecoder
143 public static BitmapRegionDecoder newInstance(String pathName, method in class:BitmapRegionDecoder
150 decoder = newInstance(stream, isShareable);
/frameworks/support/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
H A DFragmentDialogOrActivitySupport.java43 DialogFragment newFragment = MyDialogFragment.newInstance();
62 DialogFragment newFragment = MyDialogFragment.newInstance();
69 static MyDialogFragment newInstance() { method in class:FragmentDialogOrActivitySupport.MyDialogFragment
/frameworks/support/samples/Support4Demos/src/main/java/com/example/android/supportv4/app/
H A DFragmentDialogOrActivitySupport.java43 DialogFragment newFragment = MyDialogFragment.newInstance();
62 DialogFragment newFragment = MyDialogFragment.newInstance();
69 static MyDialogFragment newInstance() { method in class:FragmentDialogOrActivitySupport.MyDialogFragment
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServices/src/com/android/framework/multidexlegacytestservices/
H A DReflectIntermediateClass.java36 value += ((Integer) get.invoke(bigClass.newInstance())).intValue();
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
H A DPrintProgressFragment.java31 public static PrintProgressFragment newInstance() { method in class:PrintProgressFragment
/frameworks/base/packages/SystemUI/src/com/android/systemui/tuner/
H A DTunerPreferenceFragment.java29 .newInstance(preference.getKey());
/frameworks/support/work/workmanager/src/main/java/androidx/work/
H A DArrayCreatingInputMerger.java110 Object newArray = Array.newInstance(array1.getClass().getComponentType(),
118 Object newArray = Array.newInstance(obj1.getClass(), 2);
126 Object newArray = Array.newInstance(obj.getClass(), arrayLength + 1);
133 Object newArray = Array.newInstance(obj.getClass(), 1);
H A DInputMerger.java54 return (InputMerger) clazz.newInstance();
/frameworks/base/core/java/com/android/internal/util/
H A DRingBuffer.java41 mBuffer = (T[]) Array.newInstance(c, capacity);
81 return (T) mBuffer.getClass().getComponentType().newInstance();
/frameworks/support/compat/src/main/java/androidx/core/graphics/
H A DTypefaceCompatApi28Impl.java51 Object familyArray = Array.newInstance(mFontFamily, 1);
63 Object familyArray = Array.newInstance(fontFamily, 1);
/frameworks/support/lifecycle/viewmodel/ktx/src/test/java/androidx/lifecycle/
H A DViewModelProviderTest.kt33 override fun <T : ViewModel> create(modelClass: Class<T>) = modelClass.newInstance()
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DAppComponentFactory.java104 return (Application) cl.loadClass(className).getDeclaredConstructor().newInstance();
127 return (Activity) cl.loadClass(className).getDeclaredConstructor().newInstance();
147 .newInstance();
170 return (Service) cl.loadClass(className).getDeclaredConstructor().newInstance();
192 return (ContentProvider) cl.loadClass(className).getDeclaredConstructor().newInstance();
/frameworks/support/transition/src/androidTest/java/androidx/transition/
H A DFragmentTransitionTest.java68 final TransitionFragment fragment1 = TransitionFragment.newInstance(R.layout.scene2);
69 final TransitionFragment fragment2 = TransitionFragment.newInstance(R.layout.scene3);
82 final TransitionFragment fragment1 = TransitionFragment.newInstance(R.layout.scene2);
83 final TransitionFragment fragment2 = TransitionFragment.newInstance(R.layout.scene3);
103 final TransitionFragment fragment1 = TransitionFragment.newInstance(R.layout.scene2);
104 final TransitionFragment fragment2 = TransitionFragment.newInstance(R.layout.scene3);
175 public static TransitionFragment newInstance(@LayoutRes int layout) { method in class:FragmentTransitionTest.TransitionFragment

Completed in 232 milliseconds

1234567891011>>