Home
last modified time | relevance | path

Searched refs:appName (Results 1 – 25 of 185) sorted by relevance

12345678

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/shared/
DHealthDataEntryFormatter.kt152 val appName: String = if (showDataOrigin) getAppName(record) else "" in format() constant
154 is HeartRateRecord -> heartRateFormatter.format(record, appName) in format()
155 is StepsRecord -> stepsFormatter.format(record, appName) in format()
156 is StepsCadenceRecord -> stepsCadenceFormatter.format(record, appName) in format()
157 is BasalMetabolicRateRecord -> basalMetabolicRateFormatter.format(record, appName) in format()
158 is SpeedRecord -> speedFormatter.format(record, appName) in format()
159 is DistanceRecord -> distanceFormatter.format(record, appName) in format()
160 is PowerRecord -> powerFormatter.format(record, appName) in format()
161 is ActiveCaloriesBurnedRecord -> activeCaloriesBurnedFormatter.format(record, appName) in format()
162 is TotalCaloriesBurnedRecord -> totalCaloriesBurnedFormatter.format(record, appName) in format()
[all …]
DBaseFormatter.kt33 override suspend fun format(record: T, appName: String): FormattedEntry { in format()
36 header = getHeader(record, appName), in format()
37 headerA11y = getHeaderA11y(record, appName), in format()
60 private fun getHeader(record: T, appName: String): String { in getHeader()
61 if (appName == "") in getHeader()
65 R.string.data_entry_header_with_source_app, getFormattedTime(record), appName) in getHeader()
68 private fun getHeaderA11y(record: T, appName: String): String { in getHeaderA11y()
69 if (appName == "") in getHeaderA11y()
73 R.string.data_entry_header_with_source_app, getFormattedA11yTime(record), appName) in getHeaderA11y()
/packages/modules/StatsD/statsd/tests/
Dstatsd_test_util_test.cpp27 const string appName = "app1"; variable
35 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST()
58 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST_P()
69 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST()
75 EXPECT_THAT(packageInfo.name_hash(), Eq(Hash64(appName))); in TEST()
84 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST()
90 EXPECT_THAT(packageInfo.name(), Eq(appName)); in TEST()
107 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, in TEST_P()
123 PackageInfo packageInfo = buildPackageInfo(appName, uid, version, versionString, installer, in TEST_P()
134 buildPackageInfo(appName, uid, version, versionString, installer, /* certHash */ {}, in TEST()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/shared/
DDisconnectDialogFragment.kt42 constructor(appName: String, enableDeleteData: Boolean = true) : this() { in <lambda>()
43 this.appName = appName in <lambda>()
58 lateinit var appName: String in <lambda>() variable in com.android.healthconnect.controller.permissions.shared.DisconnectDialogFragment
67 appName = savedInstanceState.getString(KEY_APP_NAME, "") in <lambda>()
83 getString(R.string.permissions_disconnect_dialog_message_combined, appName) in <lambda>()
85 getString(R.string.permissions_disconnect_dialog_message_background, appName) in <lambda>()
87 getString(R.string.permissions_disconnect_dialog_message_history, appName) in <lambda>()
89 getString(R.string.permissions_disconnect_dialog_message, appName) in <lambda>()
104 text = getString(R.string.permissions_disconnect_dialog_checkbox, appName) in <lambda>()
136 outState.putString(KEY_APP_NAME, appName) in <lambda>()
/packages/modules/HealthFitness/framework/java/android/health/connect/migration/
DAppInfoMigrationPayload.java56 @NonNull String packageName, @NonNull String appName, @Nullable byte[] appIcon) { in AppInfoMigrationPayload() argument
58 mAppName = appName; in AppInfoMigrationPayload()
110 public Builder(@NonNull String packageName, @NonNull String appName) { in Builder() argument
112 requireNonNull(appName); in Builder()
115 mAppName = appName; in Builder()
128 public Builder setAppName(@NonNull String appName) { in setAppName() argument
129 requireNonNull(appName); in setAppName()
130 mAppName = appName; in setAppName()
/packages/apps/Launcher3/tests/tapl/com/android/launcher3/tapl/
DAppIcon.java47 static BySelector getAppIconSelector(String appName) { in getAppIconSelector() argument
49 return By.clazz(TextView.class).text(makeMultilinePattern(appName)).focusable(true); in getAppIconSelector()
58 static BySelector getAppIconSelector(String appName, LauncherInstrumentation launcher) { in getAppIconSelector() argument
59 return getAppIconSelector(appName).pkg(launcher.getLauncherPackageName()); in getAppIconSelector()
136 static Pattern makeMultilinePattern(String appName) { in makeMultilinePattern() argument
138 appName = appName.replaceAll("\\s", ""); in makeMultilinePattern()
141 appName.chars().forEach(letter -> regexBuldier.append((char) letter).append("\\s*")); in makeMultilinePattern()
/packages/apps/Settings/src/com/android/settings/security/
DCredentialManagementAppAdapter.java132 final String appName = mSortedAppNames.get(getBindingAdapterPosition()); in AppAuthenticationViewHolder()
133 if (mExpandedApps.contains(appName)) { in AppAuthenticationViewHolder()
134 mExpandedApps.remove(appName); in AppAuthenticationViewHolder()
136 mExpandedApps.add(appName); in AppAuthenticationViewHolder()
138 bindPolicyView(appName); in AppAuthenticationViewHolder()
147 final String appName = mSortedAppNames.get(position); in bindView() local
149 ApplicationInfo applicationInfo = mPackageManager.getApplicationInfo(appName, 0); in bindView()
154 mAppNameView.setText(appName); in bindView()
156 bindPolicyView(appName); in bindView()
159 private void bindPolicyView(String appName) { in bindPolicyView() argument
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/request/
DRequestPermissionHeaderPreference.kt39 private var appName: String? = null variable
58 fun bind(appName: String, historyAccessGranted: Boolean, onRationaleLinkClicked: () -> Unit) { in bind()
59 this.appName = appName in bind()
66 val text = context.getString(R.string.request_permissions_header_title, appName) in updateTitle()
67 title.text = boldAppName(appName, text) in updateTitle()
84 R.string.request_permissions_rationale, appName, policyString) in updatePrivacyString()
DAdditionalPermissionHeaderPreference.kt36 private var appName: String? = null variable
56 fun bind(titleText: Int, appName: String, summaryText: String) { in bind()
57 this.appName = appName in bind()
65 val text = context.getString(titleText, appName) in updateTitle()
66 title.text = boldAppName(appName, text) in updateTitle()
DAdditionalPermissionsFragment.kt141 appName = appMetadata.appName, in <lambda>()
143 getString(R.string.request_additional_permissions_description, appMetadata.appName)) in <lambda>()
244 appName = appMetadata.appName, in <lambda>()
253 appName = appMetadata.appName, in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/app/
DSettingsManageAppPermissionsFragment.kt95 private var appName: String = "" in <lambda>() variable in com.android.healthconnect.controller.permissions.app.SettingsManageAppPermissionsFragment
176 viewModel.appInfo.value?.appName!!) in <lambda>()
186 DisableExerciseRoutePermissionDialog.createDialog(packageName, event.appName) in <lambda>()
205 viewModel.deleteAppData(packageName, appName) in <lambda>()
216 appName = appMetadata.appName in <lambda>()
218 setupFooter(appMetadata.appName) in <lambda>()
221 title = appMetadata.appName in <lambda>()
226 private fun setupFooter(appName: String) { in <lambda>()
230 updateFooter(isAtLeastOneGranted, appName) in <lambda>()
271 DisconnectDialogFragment(appName = appName, enableDeleteData = false) in <lambda>()
[all …]
DConnectedAppFragment.kt108 private var appName: String = "" in <lambda>() variable in com.android.healthconnect.controller.permissions.app.ConnectedAppFragment
144 appName = requireArguments().getString(EXTRA_APP_NAME)!! in <lambda>()
186 DisableExerciseRoutePermissionDialog.createDialog(packageName, event.appName) in <lambda>()
201 appPermissionViewModel.deleteAppData(packageName, appName) in <lambda>()
215 title = appMetadata.appName in <lambda>()
231 EXTRA_PACKAGE_NAME to packageName, EXTRA_APP_NAME to appName)) in <lambda>()
241 val deletionType = DeletionType.DeletionTypeAppData(packageName, appName) in <lambda>()
299 DisconnectDialogFragment(appName).show(childFragmentManager, DisconnectDialogFragment.TAG) in <lambda>()
365 getString(R.string.manage_permissions_rationale, appName) in <lambda>()
369 getString(R.string.manage_permissions_rationale, appName) in <lambda>()
[all …]
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/utils/
DLinkFormatter.kt62 fun boldAppName(appName: String?, fullText: String): SpannableString { in boldAppName()
64 appName?.let { in boldAppName()
65 val start = fullText.indexOf(appName) in boldAppName()
67 val end = fullText.indexOf(appName) + appName.length in boldAppName()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothDetailsCompanionAppsController.java106 PreferenceCategory container, CharSequence appName, Context context) { in removeAssociationDialog() argument
121 R.string.bluetooth_companion_app_body, appName, mCachedDevice.getName())) in removeAssociationDialog()
140 CharSequence appName = null; in getAppName() local
142 appName = mPackageManager.getApplicationLabel( in getAppName()
148 return appName; in getAppName()
202 CharSequence appName = getAppName(packageName); in updatePreferences() local
204 if (TextUtils.isEmpty(appName) || !addedPackages.add(packageName)) { in updatePreferences()
211 v -> removeAssociationDialog(packageName, address, container, appName, context), in updatePreferences()
225 preference.setTitle(appName.toString()); in updatePreferences()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/selectabledeletion/
DDeletionTypeTest.kt40 packageName = TEST_APP_PACKAGE_NAME, appName = TEST_APP_NAME) in deletionTypeAppData_isParcelable()
49 assertTrue(recreatedDeletionType.appName == deletionType.appName) in deletionTypeAppData_isParcelable()
84 appName = TEST_APP_NAME) in deletionTypeHealthPermissionTypesFromApp_isParcelable()
93 assertTrue(recreatedDeletionType.appName == deletionType.appName) in deletionTypeHealthPermissionTypesFromApp_isParcelable()
/packages/apps/Launcher3/tests/src/com/android/launcher3/dragging/
DTaplUninstallRemoveTest.java64 for (String appName : new String[]{GMAIL_APP_NAME, STORE_APP_NAME, TEST_APP_NAME}) { in testDeleteFromWorkspace()
65 final HomeAppIcon homeAppIcon = createShortcutInCenterIfNotExist(appName); in testDeleteFromWorkspace()
68 appName + " app was found after being deleted from workspace", in testDeleteFromWorkspace()
69 appName); in testDeleteFromWorkspace()
73 private void verifyAppUninstalledFromAllApps(Workspace workspace, String appName) { in verifyAppUninstalledFromAllApps() argument
75 Wait.atMost(appName + " app was found on all apps after being uninstalled", in verifyAppUninstalledFromAllApps()
76 () -> allApps.tryGetAppIcon(appName) == null, in verifyAppUninstalledFromAllApps()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/permissions/additionalaccess/
DEnableExercisePermissionDialog.kt45 private lateinit var appName: String in <lambda>() variable in com.android.healthconnect.controller.permissions.additionalaccess.EnableExercisePermissionDialog
63 appName = appNameExtra in <lambda>()
68 .setMessage(getString(R.string.exercise_permission_dialog_enabled_summary, appName)) in <lambda>()
94 fun createDialog(packageName: String, appName: String): EnableExercisePermissionDialog { in <lambda>()
96 arguments = bundleOf(EXTRA_PACKAGE_NAME to packageName, EXTRA_APP_NAME to appName) in <lambda>()
DDisableExerciseRoutePermissionDialog.kt50 private lateinit var appName: String in <lambda>() variable in com.android.healthconnect.controller.permissions.additionalaccess.DisableExerciseRoutePermissionDialog
68 appName = appNameExtra in <lambda>()
73 .setMessage(getString(R.string.exercise_permission_dialog_disable_summary, appName)) in <lambda>()
103 appName: String in <lambda>()
106 arguments = bundleOf(EXTRA_PACKAGE_NAME to packageName, EXTRA_APP_NAME to appName) in <lambda>()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/gatt/
DContextMap.java214 String appName = null; in add() local
217 appName = piInfo.callingPackage; in add()
220 appName = context.getPackageManager().getNameForUid(appUid); in add()
222 if (appName == null) { in add()
224 appName = "Unknown App (UID: " + appUid + ")"; in add()
231 appScanStats = new AppScanStats(appName, workSource, this, context, scanHelper); in add()
234 App app = new App(uuid, callback, (T) piInfo, appName, appScanStats); in add()
244 String appName = service.getPackageManager().getNameForUid(appUid); in add() local
245 if (appName == null) { in add()
247 appName = "Unknown App (UID: " + appUid + ")"; in add()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/actions/
DAction.java84 String appName = ""; in getAppName() local
92 appName = (String) mPm.getApplicationLabel(appInfo); in getAppName()
94 appName = APP_NAME_UNKNOWN; in getAppName()
96 return appName; in getAppName()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageWizardMoveConfirm.java69 final String appName = getPackageManager().getApplicationLabel(mApp).toString(); in onCreate() local
73 setHeaderText(R.string.storage_wizard_move_confirm_title, appName); in onCreate()
74 setBodyText(R.string.storage_wizard_move_confirm_body, appName, volumeName); in onCreate()
112 final String appName = getPackageManager().getApplicationLabel(mApp).toString(); in onNavigateNext() local
117 intent.putExtra(EXTRA_TITLE, appName); in onNavigateNext()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/formatters/
DMenstruationPeriodFormatter.kt51 val appName = if (showDataOrigin) getAppName(record) else "" in format() constant
57 header = appName, in format()
58 headerA11y = appName, in format()
75 return appInfoReader.getAppMetadata(record.metadata.dataOrigin.packageName).appName in getAppName()
/packages/modules/SdkExtensions/javatests/com/android/sdkext/extensions/
DSdkExtensionsHostTest.java56 private static String appFilename(String appName) { in appFilename() argument
57 return "sdkextensions_e2e_test_app_req_" + appName + ".apk"; in appFilename()
60 private static String appPackage(String appName) { in appPackage() argument
61 return "com.android.sdkext.extensions.apps." + appName; in appPackage()
132 private boolean canInstallApp(String appName) throws Exception { in canInstallApp() argument
133 File appFile = mInstallUtils.getTestFile(appFilename(appName)); in canInstallApp()
138 assertNull(getDevice().uninstallPackage(appPackage(appName))); in canInstallApp()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/
DDeletionConfirmationDialogFragment.kt132 val appName = deletionParameters.getAppName() in <lambda>() constant
135 getString(R.string.confirming_question_app_data_one_day, appName) in <lambda>()
137 getString(R.string.confirming_question_app_data_one_week, appName) in <lambda>()
139 getString(R.string.confirming_question_app_data_one_month, appName) in <lambda>()
141 getString(R.string.confirming_question_app_data_all, appName) in <lambda>()
/packages/modules/AdServices/adservices/service-core/java/com/android/adservices/service/topics/
DAppInfo.java31 public AppInfo(@NonNull String appName, @NonNull String appDescription) { in AppInfo() argument
32 Objects.requireNonNull(appName); in AppInfo()
34 mAppName = appName; in AppInfo()

12345678