/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | ExpectedKey.java | 30 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 …]
|
D | AbstractLayoutBase.java | 32 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 …]
|
D | ExpectedKeyboardBuilder.java | 124 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()
|
D | ExpectedKeyOutput.java | 32 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.toTitleCaseOfKeyLabel(codeString, locale)); in toUpperCase() 124 return newInstance(mText.toUpperCase(locale)); in toUpperCase()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/activity/ |
D | PumpActivity.java | 63 new Page(HomeFragment::newInstance, "Home") 66 new Page(MovieFragment::newInstance, "Movies"), 67 new Page(SeriesFragment::newInstance, "TV Shows"), 68 new Page(OtherFragment::newInstance, "Personal"), 69 new Page(HomeFragment::newInstance, "All videos") 72 new Page(AudioFragment::newInstance, "All audios"), 73 new Page(PlaylistFragment::newInstance, "Playlists"), 74 new Page(AlbumFragment::newInstance, "Albums"), 75 new Page(GenreFragment::newInstance, "Genres"), 76 new Page(ArtistFragment::newInstance, "Artists") [all …]
|
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/ui/ |
D | ManagePermissionsActivity.java | 79 androidXFragment = AutoManageStandardPermissionsFragment.newInstance(); in onCreate() 83 .ManagePermissionsFragment.newInstance(); in onCreate() 85 androidXFragment = ManageStandardPermissionsFragment.newInstance(sessionId); in onCreate() 111 androidXFragment = AutoAllAppPermissionsFragment.newInstance(packageName, in onCreate() 114 androidXFragment = AutoAppPermissionsFragment.newInstance(packageName, in onCreate() 118 androidXFragment = AppPermissionsFragmentWear.newInstance(packageName); in onCreate() 121 .AppPermissionsFragment.newInstance(packageName); in onCreate() 125 .AllAppPermissionsFragment.newInstance(packageName, userHandle); in onCreate() 128 .AppPermissionsFragment.newInstance( in onCreate() 143 androidXFragment = AutoPermissionAppsFragment.newInstance(permissionName); in onCreate() [all …]
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmUpdateHandler.kt | 112 val newInstance = AlarmInstance(instance) in <lambda>() constant 115 newInstance.mVibrate = alarm.vibrate in <lambda>() 116 newInstance.mRingtone = alarm.alert in <lambda>() 117 newInstance.mLabel = alarm.label in <lambda>() 121 AlarmInstance.updateInstance(cr, newInstance) in <lambda>() 123 AlarmNotifications.updateNotification(mAppContext, newInstance) in <lambda>() 202 var newInstance = alarm.createInstanceAfter(Calendar.getInstance()) in <lambda>() variable 203 newInstance = AlarmInstance.addInstance(cr, newInstance) in <lambda>() 205 AlarmStateManager.registerInstance(mAppContext, newInstance, true) in <lambda>() 206 return newInstance in <lambda>()
|
D | AlarmUpdateHandler.java | 119 final AlarmInstance newInstance = new AlarmInstance(instance); in asyncUpdateAlarm() 122 newInstance.mVibrate = alarm.vibrate; in asyncUpdateAlarm() 123 newInstance.mRingtone = alarm.alert; in asyncUpdateAlarm() 124 newInstance.mLabel = alarm.label; in asyncUpdateAlarm() 128 AlarmInstance.updateInstance(cr, newInstance); in asyncUpdateAlarm() 130 AlarmNotifications.updateNotification(mAppContext, newInstance); in asyncUpdateAlarm() 216 AlarmInstance newInstance = alarm.createInstanceAfter(Calendar.getInstance()); in setupAlarmInstance() local 217 newInstance = AlarmInstance.addInstance(cr, newInstance); in setupAlarmInstance() 219 AlarmStateManager.registerInstance(mAppContext, newInstance, true); in setupAlarmInstance() 220 return newInstance; in setupAlarmInstance()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | ContentFragment.java | 44 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 …]
|
D | ActionFragment.java | 35 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/Settings/tests/robotests/src/com/android/settings/widget/ |
D | EntityHeaderControllerTest.java | 90 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_constructedWithoutView_shouldCreateNewView() 98 mController = EntityHeaderController.newInstance(mActivity, mFragment, null); in testBuildView_withContext_shouldBuildPreferenceAllowedBelowDivider() 108 mController = EntityHeaderController.newInstance(mActivity, mFragment, inputView); in testBuildView_constructedWithView_shouldReturnSameView() 123 mController = EntityHeaderController.newInstance(mActivity, mFragment, header); in bindViews_shouldBindAllData() 148 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_hasEditClickListener_shouldShowButton() 175 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in bindButton_noEditClickListener_shouldNotShowButton() 193 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_noAppInfo_shouldNotAttachClickListener() 219 mController = EntityHeaderController.newInstance(mActivity, mFragment, appLinks); in bindButton_hasAppInfo_shouldAttachClickListener() 238 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithSetIcon() 252 mController = EntityHeaderController.newInstance(mActivity, mFragment, view); in iconContentDescription_shouldWorkWithoutSetIcon() [all …]
|
/packages/apps/Car/Dialer/tests/robotests/src/com/android/car/dialer/ui/contact/ |
D | ContactListViewHolderTest.java | 93 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withOnlyOneNumber_showLabel() 103 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, TYPE, null, in testLabel_withOneNumberAndNumberHasNullLabel_showTypeLabel() 127 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel() 129 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndNoPrimaryNumber_showMultipleLabel() 141 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel() 143 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, 0, LABEL_2, in testLabel_withMultipleNumbersAndHasPrimaryNumber_showPrimaryNumberLabel() 156 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel() 158 PhoneNumber phoneNumber2 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_2, TYPE, null, in testLabel_HasPrimaryNumberAndPrimaryNumberHasNullLabel_showPrimaryNumberLabel() 191 PhoneNumber phoneNumber = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_ContactHasOneNumber_placeCall() 209 PhoneNumber phoneNumber1 = PhoneNumber.newInstance(mContext, PHONE_NUMBER_1, 0, LABEL_1, in testClickCallActionButton_HasMultipleNumbersAndNoPrimaryNumber_showAlertDialog() [all …]
|
/packages/apps/Contacts/tests/src/com/android/contacts/database/ |
D | NoNullCursorAsyncQueryHandlerTest.java | 60 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
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/ |
D | SetupSkipDialogTest.java | 49 SetupSkipDialog.newInstance(false, false, false, false, false); in frpMessages_areShownCorrectly_whenNotSupported() 64 SetupSkipDialog.newInstance(true, false, false, false, false); in frpMessages_areShownCorrectly_whenSupported() 79 SetupSkipDialog.newInstance(true, false, false, false, true); in dialogMessage_whenSkipPinSetupForFace_shouldShownCorrectly() 94 SetupSkipDialog.newInstance(true, false, true, false, true); in dialogMessage_whenSkipPasswordSetupForFace_shouldShownCorrectly() 109 SetupSkipDialog.newInstance(true, true, false, false, true); in dialogMessage_whenSkipPatternSetupForFace_shouldShownCorrectly() 124 SetupSkipDialog.newInstance(true, false, false, true, false); in dialogMessage_whenSkipPinSetupForFingerprint_shouldShownCorrectly() 139 SetupSkipDialog.newInstance(true, false, true, true, false); in dialogMessage_whenSkipPasswordSetupForFingerprint_shouldShownCorrectly() 154 SetupSkipDialog.newInstance(true, true, false, true, false); in dialogMessage_whenSkipPatternSetupForFingerprint_shouldShownCorrectly()
|
/packages/apps/Gallery2/src/com/android/gallery3d/glrenderer/ |
D | StringTexture.java | 53 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
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | UsageBytesThresholdPickerDialogTest.java | 58 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_validValue_showsCurrentValue() 66 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in dialogInit_lowInvalidValue_showsLowestPossibleValue() 75 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_noChangeInValue_dialogListenerNotCalled() 89 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in positiveButtonClick_changeInValue_dialogListenerCalled() 106 UsageBytesThresholdPickerDialog dialog = UsageBytesThresholdPickerDialog.newInstance( in getCurrentThreshold_aboveLimit_returnLimit()
|
D | UsageCycleResetDayOfMonthPickerDialogTest.java | 56 UsageCycleResetDayOfMonthPickerDialog.newInstance(setDate); in dialogInit_validValue_showsCurrentValue() 64 UsageCycleResetDayOfMonthPickerDialog.newInstance(0); in dialogInit_lowInvalidValue_showsLowestPossibleValue() 72 UsageCycleResetDayOfMonthPickerDialog.newInstance(32); in dialogInit_highInvalidValue_showsHighestPossibleValue() 81 UsageCycleResetDayOfMonthPickerDialog.newInstance(setDate); in dialogListenerCalled()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/ |
D | BatteryTipDialogFragmentTest.java | 106 mDialogFragment = BatteryTipDialogFragment.newInstance(mHighUsageTip, METRICS_KEY); in testOnCreateDialog_highUsageTip_fireHighUsageDialog() 122 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictedOneAppTip, METRICS_KEY); in testOnCreateDialog_restrictOneAppTip_fireRestrictOneAppDialog() 141 mDialogFragment = BatteryTipDialogFragment.newInstance(mRestrictTwoAppsTip, METRICS_KEY); in testOnCreateDialog_restrictTwoAppsTip_fireRestrictTwoAppsDialog() 172 mDialogFragment = BatteryTipDialogFragment.newInstance(restrictSixAppsTip, METRICS_KEY); in testOnCreateDialog_restrictSixAppsTip_fireRestrictSixAppsDialog() 192 mDialogFragment = BatteryTipDialogFragment.newInstance(mUnrestrictAppTip, METRICS_KEY); in testOnCreateDialog_unRestrictAppTip_fireUnRestrictDialog() 209 mDialogFragment = BatteryTipDialogFragment.newInstance(mSummaryTip, METRICS_KEY); in testOnCreateDialog_summaryTip_fireDialog()
|
/packages/apps/Settings/src/com/android/settings/sim/ |
D | SimDialogActivity.java | 88 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_data, in createFragment() 91 return CallsSimListDialogFragment.newInstance(dialogType, in createFragment() 95 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment() 101 return PreferredSimDialogFragment.newInstance(); in createFragment() 103 return SimListDialogFragment.newInstance(dialogType, R.string.select_sim_for_sms, in createFragment()
|
/packages/apps/Dialer/java/com/android/dialer/blockreportspam/ |
D | BlockReportSpamDialogs.java | 137 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForBlockingNumberAndOptionallyReportingAsSpam 192 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForBlockingNumberAndReportingAsSpam 235 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForBlockingNumber 276 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForUnblockingNumberAndReportingAsNotSpam 321 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForUnblockingNumber 353 public static DialogFragment newInstance( in newInstance() method in DialogFragmentForReportingNotSpam
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/ |
D | MigrateStorageActivity.java | 101 MigrateConfirmationStepFragment.newInstance(mTargetVolumeDesc)) in onCreate() 112 ChooseStorageStepFragment.newInstance(mVolumeInfo)) in onCreate() 152 MigrateProgressFragment.newInstance(mTargetVolumeDesc)) in startMigrationInternal() 192 public static MigrateConfirmationStepFragment newInstance(String volumeDescription) { in newInstance() method in MigrateStorageActivity.MigrateConfirmationStepFragment 242 public static ChooseStorageStepFragment newInstance(VolumeInfo currentVolumeInfo) { in newInstance() method in MigrateStorageActivity.ChooseStorageStepFragment 295 public static MigrateProgressFragment newInstance(String volumeDescription) { in newInstance() method in MigrateStorageActivity.MigrateProgressFragment
|
D | ResetActivity.java | 51 GuidedStepFragment.addAsRoot(this, ResetFragment.newInstance(), android.R.id.content); in onCreate() 57 public static ResetFragment newInstance() { in newInstance() method in ResetActivity.ResetFragment 91 add(getFragmentManager(), ResetConfirmFragment.newInstance()); in onGuidedActionClicked() 102 public static ResetConfirmFragment newInstance() { in newInstance() method in ResetActivity.ResetConfirmFragment
|
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettingsTest.java | 80 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD)); in downloadsNotDeletedInNoThresholdMode() 95 DeletionHelperSettings.newInstance(AppsAsyncLoader.NO_THRESHOLD); in onFreeableChangeChecksForNull() 106 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsOkResultCodeOnSufficientClear() 125 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsNegativeResultCodeOnSufficientClear() 144 spy(DeletionHelperSettings.newInstance(AppsAsyncLoader.NORMAL_THRESHOLD)); in requestingSpecificBytesToClearSetsNegativeResultCodeOnNoClear()
|
/packages/apps/Car/Dialer/src/com/android/car/dialer/livedata/ |
D | CallHistoryLiveData.java | 62 public static CallHistoryLiveData newInstance(Context context) { in newInstance() method in CallHistoryLiveData 63 return newInstance(context, CALL_TYPE_ALL, DEFAULT_CALL_LOG_LIMIT); in newInstance() 70 return newInstance(context, CALL_TYPE_ALL, 1); in newLastCallLiveData() 73 private static CallHistoryLiveData newInstance(Context context, int callType, int limit) { in newInstance() method in CallHistoryLiveData
|
/packages/apps/Messaging/src/com/android/messaging/ui/ |
D | SmsStorageLowWarningFragment.java | 53 public static SmsStorageLowWarningFragment newInstance() { in newInstance() method in SmsStorageLowWarningFragment 61 final ChooseActionDialogFragment dialog = ChooseActionDialogFragment.newInstance(); in onCreate() 73 final ConfirmationDialog dialog = ConfirmationDialog.newInstance(actionIndex); in confirm() 89 public static ChooseActionDialogFragment newInstance() { in newInstance() method in SmsStorageLowWarningFragment.ChooseActionDialogFragment 164 public static ConfirmationDialog newInstance(final int actionIndex) { in newInstance() method in SmsStorageLowWarningFragment.ConfirmationDialog
|