Home
last modified time | relevance | path

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

12345678910>>...46

/aosp12/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
H A DExpectedKey.java30 static ExpectedKey EMPTY_KEY = newInstance("");
34 return newInstance(label, label, moreKeys); in newInstance()
40 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance()
47 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance()
48 ExpectedKeyOutput.newInstance(code), moreKeys); in newInstance()
54 return newInstance(ExpectedKeyVisual.newInstance(iconId), in newInstance()
61 return newInstance(ExpectedKeyVisual.newInstance(iconId), in newInstance()
122 return newInstance(mVisual, mOutput, moreKeys); in setMoreKeys()
156 casePreservedMoreKeys[index] = newInstance( in preserveCase()
159 return newInstance( in preserveCase()
[all …]
H A DAbstractLayoutBase.java32 return ExpectedKey.newInstance(label, moreKeys); in key()
38 return ExpectedKey.newInstance(label, outputText, moreKeys); in key()
44 return ExpectedKey.newInstance(label, code, moreKeys); in key()
50 return ExpectedKey.newInstance(iconId, outputText, moreKeys); in key()
56 return ExpectedKey.newInstance(iconId, code, moreKeys); in key()
61 return ExpectedKey.newInstance(key.getVisual(), key.getOutput(), moreKeys); in key()
70 return ExpectedAdditionalMoreKey.newInstance(label); in additionalMoreKey()
75 return ExpectedKey.newInstance(label); in moreKey()
81 return ExpectedKey.newInstance(label, outputText); in moreKey()
87 return ExpectedKey.newInstance(label, code); in moreKey()
[all …]
/aosp12/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java62 public static BitmapRegionDecoder newInstance(@NonNull byte[] data, in newInstance() method in BitmapRegionDecoder
64 return newInstance(data, offset, length); in newInstance()
78 public static BitmapRegionDecoder newInstance(@NonNull byte[] data, in newInstance() method in BitmapRegionDecoder
100 public static BitmapRegionDecoder newInstance( in newInstance() method in BitmapRegionDecoder
115 public static BitmapRegionDecoder newInstance( in newInstance() method in BitmapRegionDecoder
140 public static BitmapRegionDecoder newInstance(@NonNull InputStream is, in newInstance() method in BitmapRegionDecoder
142 return newInstance(is); in newInstance()
157 public static BitmapRegionDecoder newInstance(@NonNull InputStream is) throws IOException { in newInstance() method in BitmapRegionDecoder
181 public static BitmapRegionDecoder newInstance(@NonNull String pathName, in newInstance() method in BitmapRegionDecoder
183 return newInstance(pathName); in newInstance()
[all …]
/aosp12/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/
H A DPumpActivity.java63 new Page(HomeFragment::newInstance, "Home")
66 new Page(MovieFragment::newInstance, "Movies"),
68 new Page(OtherFragment::newInstance, "Personal"),
74 new Page(AlbumFragment::newInstance, "Albums"),
75 new Page(GenreFragment::newInstance, "Genres"),
76 new Page(ArtistFragment::newInstance, "Artists")
79 new Page(HomeFragment::newInstance, "Videos"),
80 new Page(HomeFragment::newInstance, "Audios")
244 return PermissionFragment.newInstance(); in createFragment()
246 return mPageCreator.newInstance(); in createFragment()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DContentFragment.java44 public static ContentFragment newInstance(String title) { in newInstance() method in ContentFragment
45 return newInstance(title, null, null, 0, Color.TRANSPARENT); in newInstance()
48 public static ContentFragment newInstance(String title, String breadcrumb, in newInstance() method in ContentFragment
50 return newInstance(title, breadcrumb, description, 0, Color.TRANSPARENT); in newInstance()
53 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
55 return newInstance(title, breadcrumb, description, iconResourceId, Color.TRANSPARENT); in newInstance()
58 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
67 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
69 return newInstance(title, breadcrumb, description, iconResourceUri, Color.TRANSPARENT); in newInstance()
72 public static ContentFragment newInstance(String title, String breadcrumb, String description, in newInstance() method in ContentFragment
[all …]
H A DActionFragment.java35 public static ActionFragment newInstance(ArrayList<Action> actions) { in newInstance() method in ActionFragment
36 return newInstance(actions, null); in newInstance()
39 public static ActionFragment newInstance(ArrayList<Action> actions, String name) { in newInstance() method in ActionFragment
45 public static ActionFragment newInstance(ArrayList<Action> actions, int index) { in newInstance() method in ActionFragment
51 public static ActionFragment newInstance(ArrayList<Action> actions, String name, int index) { in newInstance() method in ActionFragment
/aosp12/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmUpdateHandler.kt112 val newInstance = AlarmInstance(instance) regex
115 newInstance.mVibrate = alarm.vibrate
116 newInstance.mRingtone = alarm.alert
117 newInstance.mLabel = alarm.label
121 AlarmInstance.updateInstance(cr, newInstance)
123 AlarmNotifications.updateNotification(mAppContext, newInstance)
202 var newInstance = alarm.createInstanceAfter(Calendar.getInstance()) regex
203 newInstance = AlarmInstance.addInstance(cr, newInstance)
205 AlarmStateManager.registerInstance(mAppContext, newInstance, true)
206 return newInstance
/aosp12/packages/modules/Wifi/framework/tests/src/android/net/wifi/p2p/nsd/
H A DWifiP2pDnsSdServiceRequestTest.java39 request = WifiP2pDnsSdServiceRequest.newInstance(); in testNewInstance()
42 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_TYPE); in testNewInstance()
45 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, SERVICE_TYPE); in testNewInstance()
49 request = WifiP2pDnsSdServiceRequest.newInstance(null); in testNewInstance()
57 request = WifiP2pDnsSdServiceRequest.newInstance(SERVICE_NAME, null); in testNewInstance()
65 request = WifiP2pDnsSdServiceRequest.newInstance(null, SERVICE_TYPE); in testNewInstance()
H A DWifiP2pUpnpServiceInfoTest.java53 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
57 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
62 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
71 info = WifiP2pUpnpServiceInfo.newInstance( in testNewInstance()
H A DWifiP2pDnsSdServiceInfoTest.java55 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
61 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
68 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
79 info = WifiP2pDnsSdServiceInfo.newInstance( in testNewInstance()
H A DWifiP2pUpnpServiceRequestTest.java36 request = WifiP2pUpnpServiceRequest.newInstance(); in testNewInstance()
39 request = WifiP2pUpnpServiceRequest.newInstance("ssdp:all"); in testNewInstance()
43 request = WifiP2pUpnpServiceRequest.newInstance(null); in testNewInstance()
/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DHeavyHitterSketch.java62 void add(@Nullable T newInstance); in add() argument
170 public void add(@Nullable final T newInstance) { in add() argument
175 addToMGSummary(newInstance); in add()
178 validate(newInstance); in add()
191 private void addToMGSummary(@Nullable final T newInstance) { in addToMGSummary() argument
192 final int hashCode = newInstance != null ? newInstance.hashCode() : 0; in addToMGSummary()
198 mObjects.put(hashCode, newInstance); in addToMGSummary()
223 private void validate(@Nullable final T newInstance) { in validate() argument
224 final int hashCode = newInstance != null ? newInstance.hashCode() : 0; in validate()
/aosp12/art/test/042-new-instance/src/
H A DMain.java37 Object obj = c.newInstance(); in testClassNewInstance()
47 Object obj = c.newInstance(); in testClassNewInstance()
88 Object obj = cons.newInstance(); in testConstructorNewInstance()
99 Object obj = cons.newInstance(new Main()); in testConstructorNewInstance()
110 Object obj = cons.newInstance(); in testConstructorNewInstance()
134 Object obj = cons.newInstance(); in testConstructorNewInstance()
149 Object obj = cons.newInstance(); in testConstructorNewInstance()
187 CC.newInstance(); in main()
198 static Object newInstance() { in newInstance() method in LocalClass3.CC
201 return c.newInstance(); in newInstance()
/aosp12/art/test/045-reflect-array/src/
H A DMain.java27 intArray = Array.newInstance(Integer.TYPE, 2); in testSingleInt()
66 intArray = Array.newInstance(Integer.TYPE, 0); in testSingleInt()
73 Object charArray = Array.newInstance(Character.TYPE, 7); in testSingleChar()
126 Object shortArray = Array.newInstance(Short.TYPE, 1); in testSingleShort()
138 Object longArray = Array.newInstance(Long.TYPE, 2); in testSingleLong()
165 strArray = Array.newInstance(String.class, 2); in testSingle()
199 intIntIntArray = Array.newInstance(Integer.TYPE, dimensions); in testMultiInt()
218 strStrStrArray = Array.newInstance(String.class, dimensions); in testMulti()
246 strStrStrArray = Array.newInstance(String[].class, dimensions2); in testMulti()
261 Object arrayOfAbstractClasses = Array.newInstance(Number.class, 1); in testAbstract()
[all …]
/aosp12/frameworks/base/core/java/android/content/res/
H A DConstantState.java44 public abstract T newInstance(); in newInstance() method in ConstantState
52 public T newInstance(Resources res) { in newInstance() method in ConstantState
53 return newInstance(); in newInstance()
60 public T newInstance(Resources res, Resources.Theme theme) { in newInstance() method in ConstantState
61 return newInstance(res); in newInstance()
/aosp12/packages/apps/Contacts/tests/src/com/android/contacts/database/
H A DNoNullCursorAsyncQueryHandlerTest.java60 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); in testCursorIsNotNull()
61 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorIsNotNull()
88 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorContainsCorrectCookies()
90 final ObjectHolder<Object> cookieHolder = ObjectHolder.newInstance(); in testCursorContainsCorrectCookies()
115 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorContainsCorrectColumns()
117 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); in testCursorContainsCorrectColumns()
144 public static <E> ObjectHolder<E> newInstance() { in newInstance() method in NoNullCursorAsyncQueryHandlerTest.ObjectHolder
148 public static <E> ObjectHolder<E> newInstance(E value) { in newInstance() method in NoNullCursorAsyncQueryHandlerTest.ObjectHolder
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
H A DSetupSkipDialogTest.java49 SetupSkipDialog.newInstance(false, false, false, false, false, false); in frpMessages_areShownCorrectly_whenNotSupported()
64 SetupSkipDialog.newInstance(true, false, false, false, false, false); in frpMessages_areShownCorrectly_whenSupported()
79 SetupSkipDialog.newInstance(true, false, false, false, true, false); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly()
94 SetupSkipDialog.newInstance(true, false, true, false, true, false); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly()
109 SetupSkipDialog.newInstance(true, true, false, false, true, false); in dialogMessage_whenSkipPatternSetupForFace_shouldShownCorrectly()
124 SetupSkipDialog.newInstance(true, false, false, true, false, false); in dialogMessage_whenSkipPinSetupForFingerprint_shouldShownCorrectly()
139 SetupSkipDialog.newInstance(true, false, true, true, false, false); in dialogMessage_whenSkipPasswordSetupForFingerprint_shouldShownCorrectly()
154 SetupSkipDialog.newInstance(true, true, false, true, false, false); in dialogMessage_whenSkipPatternSetupForFingerprint_shouldShownCorrectly()
170 SetupSkipDialog.newInstance(true, false, false, false, false, true); in dialogMessage_whenSkipPinSetupForBiometrics_shouldShownCorrectly()
185 SetupSkipDialog.newInstance(true, false, true, false, false, true); in dialogMessage_whenSkipPasswordSetupForBiometrics_shouldShownCorrectly()
[all …]
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
H A DEntityHeaderControllerTest.java85 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView()
93 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider()
103 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView()
118 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData()
143 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_hasEditClickListener_shouldShowButton()
170 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_noEditClickListener_shouldNotShowButton()
233 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithSetIcon()
247 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithoutSetIcon()
279 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in instantApps_normalAppsDontGetLabel()
291 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in instantApps_expectedHeaderItem()
[all …]
/aosp12/frameworks/base/core/java/android/app/
H A DAppComponentFactory.java76 return (Application) cl.loadClass(className).newInstance(); in instantiateApplication()
95 return (Activity) cl.loadClass(className).newInstance(); in instantiateActivity()
110 return (BroadcastReceiver) cl.loadClass(className).newInstance(); in instantiateReceiver()
129 return (Service) cl.loadClass(className).newInstance(); in instantiateService()
147 return (ContentProvider) cl.loadClass(className).newInstance(); in instantiateProvider()
/aosp12/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
H A DStringTexture.java53 public static StringTexture newInstance( in newInstance() method in StringTexture
55 return newInstance(text, getDefaultPaint(textSize, color)); in newInstance()
58 public static StringTexture newInstance( in newInstance() method in StringTexture
69 return newInstance(text, paint); in newInstance()
72 private static StringTexture newInstance(String text, TextPaint paint) { in newInstance() method in StringTexture
/aosp12/packages/apps/Car/Dialer/tests/unittests/src/com/android/car/dialer/ui/contact/
H A DContactListViewHolderTest.java96 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withOnlyOneNumber_showLabel()
107 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, TYPE, null, in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel()
133 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
135 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel()
148 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
150 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel()
164 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
166 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, TYPE, null, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel()
200 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_ContactHasOneNumber_placeCall()
218 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_HasMultipleNumbersAndNoPrimaryNumber_showAlertDialog()
[all …]
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/
H A DManagePermissionsActivity.java147 androidXFragment = AutoManageStandardPermissionsFragment.newInstance(); in onCreate()
152 .ManagePermissionsFragment.newInstance(); in onCreate()
172 androidXFragment = PermissionUsageV2WrapperFragment.newInstance(groupName, in onCreate()
187 .newInstance(groupName, Long.MAX_VALUE, showSystem, sessionId); in onCreate()
261 androidXFragment = AutoAppPermissionsFragment.newInstance(packageName, in onCreate()
265 androidXFragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate()
268 .AppPermissionsFragment.newInstance(packageName, userHandle); in onCreate()
300 AutoPermissionAppsFragment.newInstance(permissionName, sessionId); in onCreate()
303 .PermissionAppsFragment.newInstance(permissionName); in onCreate()
321 androidXFragment = AutoUnusedAppsFragment.newInstance(); in onCreate()
[all …]
/aosp12/frameworks/base/packages/WallpaperCropper/src/com/android/photos/
H A DBitmapRegionTileSource.java57 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper
70 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper
73 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(is, isShareable); in newInstance()
101 public static DumbBitmapRegionDecoder newInstance(String pathName) { in newInstance() method in DumbBitmapRegionDecoder
108 public static DumbBitmapRegionDecoder newInstance(InputStream is) { in newInstance() method in DumbBitmapRegionDecoder
233 d = SimpleBitmapRegionDecoderWrapper.newInstance(mPath, true); in loadBitmapRegionDecoder()
235 d = DumbBitmapRegionDecoder.newInstance(mPath); in loadBitmapRegionDecoder()
275 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); in loadBitmapRegionDecoder()
279 regionDecoder = DumbBitmapRegionDecoder.newInstance(is); in loadBitmapRegionDecoder()
339 SimpleBitmapRegionDecoderWrapper.newInstance(is, false); in loadBitmapRegionDecoder()
[all …]
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/development/
H A DDevelopmentActivity.java28 return SettingsFragment.newInstance(); in createSettingsFragment()
33 public static SettingsFragment newInstance() { in newInstance() method in DevelopmentActivity.SettingsFragment
39 final DevelopmentFragment fragment = DevelopmentFragment.newInstance(); in onPreferenceStartInitialScreen()
/aosp12/art/test/2009-structural-local-ref/src-art/art/
H A DTest2009.java105 ifields.newInstance(), in doTest()
114 sfields.newInstance(), in doTest()
123 imeths.newInstance(), in doTest()
132 smeths.newInstance(), in doTest()

12345678910>>...46