Home
last modified time | relevance | path

Searched refs:formatArgs (Results 1 – 19 of 19) sorted by relevance

/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/util/
DLazyStringResource.kt34 abstract val formatArgs: Array<out CharSequence> constant in com.android.managedprovisioning.util.LazyStringResource
38 runCatching { context.getString(resId, *formatArgs) } in value()
40 val args = formatArgs.joinToString(",") in <lambda>()
64 !formatArgs.contentEquals(other.formatArgs) -> false in isBlank()
70 result = 31 * result + formatArgs.contentHashCode() in hashCode()
78 dest.writeInt(formatArgs.size) in describeContents()
79 dest.writeStringArray(formatArgs.map(CharSequence::toString).toTypedArray()) in describeContents()
90 putCharSequenceArray(BUNDLE_ARGS, formatArgs) in toBundle()
104 operator fun invoke(@StringRes resId: Int, vararg formatArgs: CharSequence) = in toString()
105 if (resId == 0) Empty else Raw(resId, formatArgs = formatArgs) in toString()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/
DResourcesUtil.java55 Object... formatArgs) { in getQuantityString() argument
62 return resources.getQuantityString(id, count, formatArgs); in getQuantityString()
70 public static String getString(Context context, String name, Object... formatArgs) { in getString() argument
76 return resources.getString(id, formatArgs); in getString()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/util/
DResourcesUtil.java55 Object... formatArgs) { in getQuantityString() argument
62 return resources.getQuantityString(id, count, formatArgs); in getQuantityString()
70 public static String getString(Context context, String name, Object... formatArgs) { in getString() argument
76 return resources.getString(id, formatArgs); in getString()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DDataUsageFormatter.kt34 fun format(context: Context, @StringRes resId: Int, vararg formatArgs: Any?) = in format()
36 displayText = context.getString(resId, displayText, *formatArgs), in format()
37 contentDescription = context.getString(resId, contentDescription, *formatArgs), in format()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/migration/notification/
DHealthConnectResourcesContext.java193 public String getStringByNameWithArgs(@NonNull String name, Object... formatArgs) { in getStringByNameWithArgs() argument
195 return getOptionalStringWithArgs(id, formatArgs); in getStringByNameWithArgs()
225 private String getOptionalStringWithArgs(@StringRes int stringId, Object... formatArgs) { in getOptionalStringWithArgs() argument
230 return getString(stringId, formatArgs); in getOptionalStringWithArgs()
DMigrationNotificationFactory.java164 private String getStringResourceWithArgs(@NonNull String name, Object... formatArgs) { in getStringResourceWithArgs() argument
165 return mResContext.getStringByNameWithArgs(name, formatArgs); in getStringResourceWithArgs()
/packages/services/Mtp/tests/src/com/android/mtp/
DTestResources.java36 public String getString(int id, Object... formatArgs) throws NotFoundException { in getString() argument
37 return String.format(getString(id), formatArgs); in getString()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/testutils/
DResourceTestUtils.java35 public static String getString(Context context, String name, Object... formatArgs) { in getString() argument
37 name, /* type= */ "string", context.getPackageName()), formatArgs); in getString()
/packages/modules/Permission/SafetyCenter/ResourcesLib/java/com/android/safetycenter/resources/
DSafetyCenterResourcesApk.java241 public String getString(@StringRes int stringId, Object... formatArgs) { in getString() argument
242 return getContext().getString(stringId, formatArgs); in getString()
260 public String getStringByName(String name, Object... formatArgs) { in getStringByName() argument
265 return getString(resId, formatArgs); in getStringByName()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/utils/
DStringUtils.java41 int count, Object... formatArgs) { in getIcuPluralsString() argument
43 context.getResources().getString(stringResId, formatArgs), in getIcuPluralsString()
DUtils.java1567 @NonNull String updatableStringId, int defaultStringId, @NonNull Object... formatArgs) { in getEnterpriseString() argument
1570 context, updatableStringId, defaultStringId, formatArgs) in getEnterpriseString()
1571 : context.getString(defaultStringId, formatArgs); in getEnterpriseString()
1577 @NonNull String updatableStringId, int defaultStringId, @NonNull Object... formatArgs) { in getUpdatableEnterpriseString() argument
1580 defaultStringId, formatArgs), formatArgs); in getUpdatableEnterpriseString()
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppQrCodeBaseFragment.java95 protected void setHeaderTitle(int resId, Object... formatArgs) { in setHeaderTitle() argument
96 mGlifLayout.setHeaderText(getString(resId, formatArgs)); in setHeaderTitle()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestResources.java86 @StringRes int id, Object... formatArgs) throws NotFoundException { in getString() argument
88 return String.format(raw, formatArgs); in getString()
/packages/apps/Calendar/tests/src/com/android/calendar/
DUtilsTests.java96 public String getString(int id, Object... formatArgs) { in getString() argument
98 return String.format("Today at %s", formatArgs); in getString()
101 return String.format("Tomorrow at %s", formatArgs); in getString()
104 return String.format("%s, %s", formatArgs); in getString()
/packages/modules/Permission/tests/utils/safetycenter/java/com/android/safetycenter/testing/
DSafetyCenterTestData.kt431 private fun getIcuPluralsString(name: String, count: Int, vararg formatArgs: Any): String { in getAlertString()
434 safetyCenterResourcesApk.getStringByName(name, formatArgs), in getAlertString()
/packages/modules/Permission/tests/cts/permissionui/src/android/permissionui/cts/
DBasePermissionTest.kt217 protected fun getPermissionControllerString(res: String, vararg formatArgs: Any): Pattern { in <lambda>()
225 *formatArgs in <lambda>()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountPreferenceController.java437 String formatArgs) { in setContentDescriptionFromDevicePolicyResource() argument
439 if (formatArgs != null) { in setContentDescriptionFromDevicePolicyResource()
440 return mContext.getString(resourceIdentifier, formatArgs); in setContentDescriptionFromDevicePolicyResource()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterDataFactory.java1184 private String getIcuPluralsString(String name, int count, Object... formatArgs) { in getIcuPluralsString() argument
1187 mSafetyCenterResourcesApk.getStringByName(name, formatArgs), in getIcuPluralsString()
/packages/apps/ManagedProvisioning/studio-dev/StubGenerator/
DStubGenerator.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/jf/ org/ ...