Home
last modified time | relevance | path

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

12345678910

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKey.java30 static ExpectedKey EMPTY_KEY = newInstance("");
33 static ExpectedKey newInstance(final String label, final ExpectedKey... moreKeys) { in newInstance() method in ExpectedKey
34 return newInstance(label, label, moreKeys); in newInstance()
38 static ExpectedKey newInstance(final String label, final String outputText, in newInstance() method in ExpectedKey
40 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance()
41 ExpectedKeyOutput.newInstance(outputText), moreKeys); in newInstance()
45 static ExpectedKey newInstance(final String label, final int code, in newInstance() method in ExpectedKey
47 return newInstance(ExpectedKeyVisual.newInstance(label), in newInstance()
48 ExpectedKeyOutput.newInstance(code), moreKeys); in newInstance()
52 static ExpectedKey newInstance(final int iconId, final String outputText, in newInstance() method in ExpectedKey
[all …]
DAbstractLayoutBase.java30 return ExpectedKey.newInstance(label, moreKeys); in key()
36 return ExpectedKey.newInstance(label, outputText, moreKeys); in key()
42 return ExpectedKey.newInstance(label, code, moreKeys); in key()
48 return ExpectedKey.newInstance(iconId, outputText, moreKeys); in key()
54 return ExpectedKey.newInstance(iconId, code, moreKeys); in key()
59 return ExpectedKey.newInstance(key.getVisual(), key.getOutput(), moreKeys); in key()
68 return ExpectedAdditionalMoreKey.newInstance(label); in additionalMoreKey()
73 return ExpectedKey.newInstance(label); in moreKey()
79 return ExpectedKey.newInstance(label, outputText); in moreKey()
85 return ExpectedKey.newInstance(label, code); in moreKey()
[all …]
DExpectedKeyboardBuilder.java124 list.add(ExpectedKey.newInstance((String)key)); in joinKeys()
152 setMoreKeysOf(ExpectedKeyVisual.newInstance(label), joinKeys(moreKeys)); in setMoreKeysOf()
164 setMoreKeysOf(ExpectedKeyVisual.newInstance(iconId), joinKeys(moreKeys)); in setMoreKeysOf()
195 final ExpectedKeyVisual visual = ExpectedKeyVisual.newInstance(label); in setAdditionalMoreKeysPositionOf()
271 final ExpectedKeyVisual visual = ExpectedKeyVisual.newInstance(label); in replaceKeyOfLabel()
DExpectedKeyOutput.java32 static ExpectedKeyOutput newInstance(final int code) { in newInstance() method in ExpectedKeyOutput
36 static ExpectedKeyOutput newInstance(final String outputText) { in newInstance() method in ExpectedKeyOutput
66 return newInstance(StringUtils.toUpperCaseOfStringForLocale( in toUpperCase()
125 return newInstance(mText.toUpperCase(locale)); in toUpperCase()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
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 …]
DEditTextFragment.java45 public static EditTextFragment newInstance(int layoutResId, int editTextResId) { in newInstance() method in EditTextFragment
57 public static EditTextFragment newInstance(String description) { in newInstance() method in EditTextFragment
58 return newInstance(description, null); in newInstance()
61 public static EditTextFragment newInstance(String description, String initialText) { in newInstance() method in EditTextFragment
62 return newInstance(description, initialText, false); in newInstance()
65 public static EditTextFragment newInstance(String description, String initialText, in newInstance() method in EditTextFragment
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
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupFinal.java479 f = AccountSetupBasicsFragment.newInstance(); in updateContentFragment()
482 f = AccountSetupTypeFragment.newInstance(); in updateContentFragment()
485 f = AccountSetupABFragment.newInstance(mSetupData.getEmail(), in updateContentFragment()
489 f = AccountSetupCredentialsFragment.newInstance(mSetupData.getEmail(), in updateContentFragment()
495 f = AccountSetupIncomingFragment.newInstance(false); in updateContentFragment()
498 f = AccountSetupOutgoingFragment.newInstance(false); in updateContentFragment()
501 f = AccountSetupOptionsFragment.newInstance(); in updateContentFragment()
504 f = AccountSetupNamesFragment.newInstance(); in updateContentFragment()
787 AccountSetupNoteDialogFragment.newInstance(mProvider.note); in onBasicsComplete()
810 DuplicateAccountDialogFragment.newInstance(existingAccountName); in showDuplicateAccountDialog()
[all …]
DAccountServerSettingsActivity.java83 f = AccountSetupOutgoingFragment.newInstance(true); in onCreate()
85 f = AccountSetupIncomingFragment.newInstance(true); in onCreate()
139 final Fragment checkerDialog = CheckSettingsProgressDialogFragment.newInstance(checkMode); in onAccountServerUIComplete()
140 final Fragment checkerFragment = AccountCheckSettingsFragment.newInstance(checkMode); in onAccountServerUIComplete()
168 SecurityRequiredDialogFragment.newInstance(hostName) in onCheckSettingsSecurityRequired()
175 CheckSettingsErrorDialogFragment.newInstance(reason, message) in onCheckSettingsError()
/packages/apps/Launcher3/WallpaperPicker/src/com/android/photos/
DBitmapRegionTileSource.java57 public static SimpleBitmapRegionDecoderWrapper newInstance( in newInstance() method in SimpleBitmapRegionDecoderWrapper
60 BitmapRegionDecoder d = BitmapRegionDecoder.newInstance(pathName, isShareable); in newInstance()
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()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/database/
DNoNullCursorAsyncQueryHandlerTest.java58 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); in testCursorIsNotNull()
59 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorIsNotNull()
86 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorContainsCorrectCookies()
88 final ObjectHolder<Object> cookieHolder = ObjectHolder.newInstance(); in testCursorContainsCorrectCookies()
113 final ObjectHolder<Boolean> ranHolder = ObjectHolder.newInstance(false); in testCursorContainsCorrectColumns()
115 final ObjectHolder<Cursor> cursorHolder = ObjectHolder.newInstance(); in testCursorContainsCorrectColumns()
142 public static <E> ObjectHolder<E> newInstance() { in newInstance() method in NoNullCursorAsyncQueryHandlerTest.ObjectHolder
146 public static <E> ObjectHolder<E> newInstance(E value) { in newInstance() method in NoNullCursorAsyncQueryHandlerTest.ObjectHolder
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/privacy/
DPrivacyActivity.java92 mActionFragment = ActionFragment.newInstance(getFactoryResetActions()); in onCreate()
152 ActionFragment.newInstance(getFactoryResetActions())); in onFactoryReset()
167 setContentAndActionFragments(ContentFragment.newInstance( in onFactoryResetConfirm()
173 ActionFragment.newInstance(getFactoryResetConfirmActions())); in onFactoryResetConfirm()
239 ActionFragment.newInstance(actions)); in onBackupData()
298 ActionFragment.newInstance(actions)); in onAutomaticRestore()
369 return ContentFragment.newInstance(type.getTitle(getResources()), in createSubMenuContentFragment()
376 return ContentFragment.newInstance(getString(R.string.device_backup_restore), in createMainMenuContentFragment()
384 return ContentFragment.newInstance( in createFactoryResetContentFragment()
/packages/apps/Camera/src/com/android/camera/
DEffectsRecorder.java496 Object bl = newInstance(sCtPoint, new Object[] {0, 0}); in setRecordingOrientation()
497 Object br = newInstance(sCtPoint, new Object[] {1, 0}); in setRecordingOrientation()
498 Object tl = newInstance(sCtPoint, new Object[] {0, 1}); in setRecordingOrientation()
499 Object tr = newInstance(sCtPoint, new Object[] {1, 1}); in setRecordingOrientation()
503 recordingRegion = newInstance(sCtQuad, new Object[] {bl, br, tl, tr}); in setRecordingOrientation()
509 recordingRegion = newInstance(sCtQuad, new Object[] {br, bl, tr, tl}); in setRecordingOrientation()
512 recordingRegion = newInstance(sCtQuad, new Object[] {tl, tr, bl, br}); in setRecordingOrientation()
580 mGraphEnv = newInstance(sCtGraphEnvironment); in initializeFilterFramework()
1189 private Object newInstance(Constructor<?> ct, Object[] initArgs) { in newInstance() method in EffectsRecorder
1191 return ct.newInstance(initArgs); in newInstance()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DDatePicker.java53 public static DatePicker newInstance() { in newInstance() method in DatePicker
54 return newInstance(""); in newInstance()
63 public static DatePicker newInstance(String format) { in newInstance() method in DatePicker
64 return newInstance(format, DEFAULT_START_YEAR); in newInstance()
74 public static DatePicker newInstance(String format, int startYear) { in newInstance() method in DatePicker
75 return newInstance(format, startYear, DEFAULT_YEAR_RANGE, true); in newInstance()
87 public static DatePicker newInstance(String format, int startYear, int yearRange, in newInstance() method in DatePicker
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/widi/
DWifiDisplayActivity.java56 mActionFragment = ActionFragment.newInstance(getMainActions()); in onCreate()
57 setContentAndActionFragments(ContentFragment.newInstance( in onCreate()
104 setContentAndActionFragments(ContentFragment.newInstance( in showWifiDisplay()
108 ActionFragment.newInstance(actions)); in showWifiDisplay()
121 setContentAndActionFragments(ContentFragment.newInstance( in showPinRequired()
125 ActionFragment.newInstance(actions)); in showPinRequired()
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/
DStringTexture.java54 public static StringTexture newInstance( in newInstance() method in StringTexture
56 return newInstance(text, getDefaultPaint(textSize, color)); in newInstance()
59 public static StringTexture newInstance( in newInstance() method in StringTexture
70 return newInstance(text, paint); in newInstance()
73 private static StringTexture newInstance(String text, TextPaint paint) { in newInstance() method in StringTexture
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/display/daydream/
DDaydreamActivity.java72 mActionFragment = ActionFragment.newInstance(getMainActions()); in onCreate()
131 ActionFragment.newInstance(mDreamBackend.getDreamInfoActions())); in onSelect()
138 ActionFragment.newInstance(getListActions(ActionType.SET_DREAM_TIMEOUT.name(), in onListDreamTimeouts()
147 … ActionFragment.newInstance(getListActions(ActionType.SET_SYSTEM_SLEEP_TIMEOUT.name(), in onListSystemSleepTimeouts()
206 return ContentFragment.newInstance(title, getString(R.string.device_daydream), description, in createSubMenuContentFragment()
211 return ContentFragment.newInstance( in createMainMenuContentFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/apps/
DAppManagementActivity.java87 mActionFragment = ActionFragment.newInstance(getActions()); in onCreate()
89 setContentAndActionFragments(ContentFragment.newInstance(mAppInfo.getName(), in onCreate()
239 PermissionsFragment.newInstance(mPackageName)); in onInit()
243 action), ActionFragment.newInstance(actionType.toSelectableActions( in onInit()
250 ActionFragment.newInstance(actionType.toActions(getResources()))); in onInit()
268 return ContentFragment.newInstance(action.getTitle(), mAppInfo.getName(), descriptionToUse, in createContentFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/form/
DMultiPagedForm.java245 return ContentFragment.newInstance(formPage.getTitle()); in getContentFragment()
255 return ContentFragment.newInstance(getMainTitle()); in getResultContentFragment()
268 return EditTextFragment.newInstance(null, initialText, true /* password */); in getPasswordEditTextFragment()
281 return EditTextFragment.newInstance(null, initialText); in getEditTextFragment()
296 ActionFragment actionFragment = ActionFragment.newInstance(actions); in getActionFragment()
315 return ActionFragment.newInstance(actions); in getResultActionFragment()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/
DBaseSettingsActivity.java76 mContentFragment = ContentFragment.newInstance(title, breadcrumb, description, iconResId, in setView()
78 mActionFragment = ActionFragment.newInstance(mActions); in setView()
88 mContentFragment = ContentFragment.newInstance(title, breadcrumb, null, uri, in setView()
90 mActionFragment = ActionFragment.newInstance(mActions); in setView()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DWpsConnectionActivity.java144 return WpsScanningFragment.newInstance(); in createWpsScanningFragment()
148 return WpsPinFragment.newInstance(pin); in createEnterPinFragment()
158 return SelectFromListWizardFragment.newInstance(errorMessage, null, listItems, in createErrorFragment()
163 return TimedMessageWizardFragment.newInstance( in createSuccessFragment()
DFormPageDisplayer.java181 Fragment fragment = SelectFromListWizardFragment.newInstance( in displayList()
210 Fragment fragment = TextInputWizardFragment.newInstance( in displayTextInput()
235 Fragment fragment = PasswordInputWizardFragment.newInstance( in displayPasswordInput()
258 Fragment fragment = MessageWizardFragment.newInstance( in displayLoading()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DAboutActivity.java113 setContentAndActionFragments(ContentFragment.newInstance( in onCreate()
116 ActionFragment.newInstance(getActions())); in onCreate()
162 setContentAndActionFragments(ContentFragment.newInstance( in onActionClicked()
164 ActionFragment.newInstance(actions)); in onActionClicked()
/packages/apps/Gallery2/src/com/android/gallery3d/app/
DStateManager.java56 state = klass.newInstance(); in startState()
82 state = klass.newInstance(); in startStateForResult()
246 state = klass.newInstance(); in switchState()
282 activityState = klass.newInstance(); in restoreFromState()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/system/
DDateTimeActivity.java374 mActionFragment = ActionFragment.newInstance(mActions); in updateView()
378 DatePicker.newInstance(new String(DateFormat.getDateFormatOrder(this))); in updateView()
417 Picker timePicker = TimePicker.newInstance(isTimeFormat24h(), true); in updateView()
446 mActionFragment = ActionFragment.newInstance(mActions); in updateView()
459 mContentFragment = ContentFragment.newInstance(title, breadcrumb, description, iconResId, in setViewWithActionFragment()

12345678910