Home
last modified time | relevance | path

Searched refs:app (Results 1 – 25 of 2547) sorted by relevance

12345678910>>...102

/packages/apps/StorageManager/robotests/src/com/android/storagemanager/deletionhelper/
DAppStateUsageStatsBridgeTest.java19 import android.app.usage.UsageStats;
20 import android.app.usage.UsageStatsManager;
85 ShadowApplication app = Shadows.shadowOf(RuntimeEnvironment.application); in setUp() local
87 app.setSystemService(Context.USAGE_STATS_SERVICE, mUsageStatsManager); in setUp()
103 ApplicationsState.AppEntry app = in test_appInstalledSameDayNeverUsed_isInvalid() local
106 mBridge.updateExtraInfo(app, PACKAGE_NAME, 0); in test_appInstalledSameDayNeverUsed_isInvalid()
107 UsageStatsState stats = (UsageStatsState) app.extraInfo; in test_appInstalledSameDayNeverUsed_isInvalid()
109 assertThat(app.extraInfo).isNotNull(); in test_appInstalledSameDayNeverUsed_isInvalid()
112 assertThat(AppStateUsageStatsBridge.FILTER_USAGE_STATS.filterApp(app)).isFalse(); in test_appInstalledSameDayNeverUsed_isInvalid()
117 ApplicationsState.AppEntry app = in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() local
[all …]
DAppsAsyncLoaderTest.java19 import android.app.usage.UsageStats;
20 import android.app.usage.UsageStatsManager;
81 ShadowApplication app = Shadows.shadowOf(RuntimeEnvironment.application); in setUp() local
82 app.setSystemService(Context.USAGE_STATS_SERVICE, mUsageStatsManager); in setUp()
119 AppsAsyncLoader.PackageInfo app = in test_appInstalledSameDayNeverUsed_isInvalid() local
122 assertThat(AppsAsyncLoader.FILTER_USAGE_STATS.filterApp(app)).isFalse(); in test_appInstalledSameDayNeverUsed_isInvalid()
127 AppsAsyncLoader.PackageInfo app = in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid() local
130 assertThat(AppsAsyncLoader.FILTER_NO_THRESHOLD.filterApp(app)).isTrue(); in test_noThresholdFilter_appInstalledSameDayNeverUsed_isValid()
135 AppsAsyncLoader.PackageInfo app = in test_unusedApp_isValid() local
138 assertThat(AppsAsyncLoader.FILTER_USAGE_STATS.filterApp(app)).isTrue(); in test_unusedApp_isValid()
[all …]
DAppDeletionPreferenceTest.java52 PackageInfo app = in testPreferenceSummary() local
60 AppDeletionPreference preference = new AppDeletionPreference(mContext, app); in testPreferenceSummary()
71 PackageInfo app = in testTwoDayPreferenceSummary() local
79 AppDeletionPreference preference = new AppDeletionPreference(mContext, app); in testTwoDayPreferenceSummary()
90 PackageInfo app = in testYesterdayPreferenceSummary() local
98 AppDeletionPreference preference = new AppDeletionPreference(mContext, app); in testYesterdayPreferenceSummary()
109 PackageInfo app = in testTodayPreferenceSummary() local
117 AppDeletionPreference preference = new AppDeletionPreference(mContext, app); in testTodayPreferenceSummary()
128 PackageInfo app = in testNeverUsedPreferenceSummary() local
136 AppDeletionPreference preference = new AppDeletionPreference(mContext, app); in testNeverUsedPreferenceSummary()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java19 import android.app.AppOpsManager;
20 import android.app.PendingIntent;
21 import android.app.Service;
750 ScannerMap.App app = mScannerMap.getById(client.scannerId); in onScanResult() local
751 if (app == null) { in onScanResult()
787 app.appScanStats.addResult(client.scannerId); in onScanResult()
788 if (app.callback != null) { in onScanResult()
789 app.callback.onScanResult(result); in onScanResult()
794 sendResultsByPendingIntent(app.info, results, in onScanResult()
891 ClientMap.App app = mClientMap.getByUuid(uuid); in onClientRegistered() local
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParser.java19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE;
20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO…
21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE;
22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_SHAREABLE_DEVICE;
23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_USER;
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION…
28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU…
[all …]
DPropertiesProvisioningDataParser.java19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION…
22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU…
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA…
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA…
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECK…
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLE…
28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LOCALE;
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapAppObserver.java71 for(BluetoothMapAccountItem app:mFullList.keySet()){ in getApp()
72 if(V) Log.d(TAG, " Comparing: " + app.getProviderAuthority()); in getApp()
73 if(app.getProviderAuthority().equals(authoritiesName)) { in getApp()
74 if(V) Log.d(TAG, " found " + app.mBase_uri_no_account); in getApp()
75 return app; in getApp()
87 BluetoothMapAccountItem app = getApp(packageNameWithProvider); in handleAccountChanges() local
88 if(app != null) { in handleAccountChanges()
89 ArrayList<BluetoothMapAccountItem> newAccountList = mLoader.parseAccounts(app); in handleAccountChanges()
90 ArrayList<BluetoothMapAccountItem> oldAccountList = mFullList.get(app); in handleAccountChanges()
94 ArrayList<BluetoothMapAccountItem> removedAccountList = mFullList.get(app); in handleAccountChanges()
[all …]
DBluetoothMapAccountLoader.java95 BluetoothMapAccountItem app = createAppItem(rInfo, includeIcon, msgType); in parsePackages() local
96 if (app != null){ in parsePackages()
97 ArrayList<BluetoothMapAccountItem> accounts = parseAccounts(app); in parsePackages()
102 app.mIsChecked = true; in parsePackages()
107 app.mIsChecked = false; in parsePackages()
111 groups.put(app, accounts); in parsePackages()
134 BluetoothMapAccountItem app = BluetoothMapAccountItem.create( in createAppItem() local
141 return app; in createAppItem()
152 public ArrayList<BluetoothMapAccountItem> parseAccounts(BluetoothMapAccountItem app) { in parseAccounts() argument
154 if(D) Log.d(TAG,"Finding accounts for app "+app.getPackageName()); in parseAccounts()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/parser/
DExtrasProvisioningDataParserTest.java18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE;
19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO…
20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE;
21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_SHAREABLE_DEVICE;
22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_USER;
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION…
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU…
[all …]
DPropertiesProvisioningDataParserTest.java18 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE;
19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION…
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_CHECKSU…
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA…
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_DOWNLOA…
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_SIGNATURE_CHECK…
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/television/
DPermissionAppsFragment.java18 import android.app.ActionBar;
19 import android.app.AlertDialog;
20 import android.app.Fragment;
190 for (PermissionApp app : permissionApps.getApps()) { in onPermissionsLoaded()
191 if (!Utils.shouldShowPermission(app)) { in onPermissionsLoaded()
195 String key = app.getKey(); in onPermissionsLoaded()
202 boolean isSystemApp = Utils.isSystem(app, mLauncherPkgs); in onPermissionsLoaded()
219 if (app.isPolicyFixed()) { in onPermissionsLoaded()
224 existingPref.setEnabled(!app.isPolicyFixed()); in onPermissionsLoaded()
227 .setChecked(app.areRuntimePermissionsGranted()); in onPermissionsLoaded()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/ui/handheld/
DPermissionAppsFragment.java20 import android.app.ActionBar;
21 import android.app.AlertDialog;
22 import android.app.Fragment;
211 for (PermissionApp app : permissionApps.getApps()) { in onPermissionsLoaded()
212 if (!Utils.shouldShowPermission(app)) { in onPermissionsLoaded()
216 if (!app.getAppInfo().enabled) { in onPermissionsLoaded()
220 String key = app.getKey(); in onPermissionsLoaded()
227 boolean isSystemApp = Utils.isSystem(app, mLauncherPkgs); in onPermissionsLoaded()
244 final boolean isPolicyFixed = app.isPolicyFixed(); in onPermissionsLoaded()
246 getActivity(), app.getUserId()); in onPermissionsLoaded()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/permission/model/
DPermissionApps.java110 for (PermissionApp app : mPermApps) { in getGrantedCount()
111 if (!Utils.shouldShowPermission(app)) { in getGrantedCount()
114 if (Utils.isSystem(app, launcherPkgs)) { in getGrantedCount()
118 if (app.areRuntimePermissionsGranted()) { in getGrantedCount()
127 for (PermissionApp app : mPermApps) { in getTotalCount()
128 if (!Utils.shouldShowPermission(app)) { in getTotalCount()
131 if (Utils.isSystem(app, launcherPkgs)) { in getTotalCount()
177 PackageInfo app = apps.get(i); in loadPermissionApps() local
178 if (app.requestedPermissions == null) { in loadPermissionApps()
182 for (int j = 0; j < app.requestedPermissions.length; j++) { in loadPermissionApps()
[all …]
/packages/apps/Camera2/src/com/android/camera/module/
DModulesInfo.java26 import com.android.camera.app.AppController;
27 import com.android.camera.app.ModuleManager;
101 public ModuleController createModule(AppController app, Intent intent) { in registerPhotoModule()
103 return enableCaptureModule ? new CaptureModule(app) : new PhotoModule(app); in registerPhotoModule()
127 public ModuleController createModule(AppController app, Intent intent) { in registerVideoModule()
128 return new VideoModule(app); in registerVideoModule()
152 public ModuleController createModule(AppController app, Intent intent) { in registerWideAngleModule()
153 return PhotoSphereHelper.createWideAnglePanoramaModule(app); in registerWideAngleModule()
177 public ModuleController createModule(AppController app, Intent intent) { in registerPhotoSphereModule()
178 return PhotoSphereHelper.createPanoramaModule(app); in registerPhotoSphereModule()
[all …]
/packages/services/Telephony/src/com/android/phone/
DPhoneUtils.java19 import android.app.AlertDialog;
20 import android.app.Dialog;
21 import android.app.ProgressDialog;
215 final PhoneGlobals app = PhoneGlobals.getInstance(); in answerCall() local
216 final CallNotifier notifier = app.notifier; in answerCall()
234 if (app.cdmaPhoneCallState.getCurrentCallState() in answerCall()
238 app.cdmaPhoneCallState.setCurrentCallState( in answerCall()
243 app.cdmaPhoneCallState.setCurrentCallState( in answerCall()
248 app.cdmaPhoneCallState.setAddCallMenuStateAfterCallWaiting(true); in answerCall()
255 app.mCM.acceptCall(ringingCall); in answerCall()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/model/
DProvisioningParams.java19 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ACCOUNT_TO_MIGRATE;
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_ICON_UR…
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_LABEL;
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DISCLAIMERS;
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION;
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLE…
28 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LOCALE;
[all …]
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/
DAppsAsyncLoader.java19 import android.app.usage.UsageStats;
20 import android.app.usage.UsageStatsManager;
116 ApplicationInfo app = applicationInfos.get(i); in loadApps() local
117 if (seenUid.contains(app.uid)) { in loadApps()
121 UsageStats usageStats = map.get(app.packageName); in loadApps()
122 UsageStats alternateUsageStats = alternateMap.get(app.packageName); in loadApps()
126 appSpace = mStatsManager.getStatsForUid(app.volumeUuid, app.uid); in loadApps()
137 app.packageName, in loadApps()
140 .setDaysSinceFirstInstall(getDaysSinceInstalled(app.packageName)) in loadApps()
141 .setUserId(UserHandle.getUserId(app.uid)) in loadApps()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/
DIconCache.java219 for (LauncherActivityInfo app : mLauncherApps.getActivityList(packageName, user)) { in updateIconsForPkg()
220 addIconToDBAndMemCache(app, info, userSerial, false /*replace existing*/); in updateIconsForPkg()
274 for (LauncherActivityInfo app : apps) { in updateDBIcons()
275 componentMap.put(app.getComponentName(), app); in updateDBIcons() local
314 LauncherActivityInfo app = componentMap.remove(component); in updateDBIcons() local
320 if (app == null) { in updateDBIcons()
324 appsToUpdate.add(app); in updateDBIcons()
355 @Thunk synchronized void addIconToDBAndMemCache(LauncherActivityInfo app, in addIconToDBAndMemCache() argument
357 final ComponentKey key = new ComponentKey(app.getComponentName(), app.getUser()); in addIconToDBAndMemCache()
368 entry.icon = LauncherIcons.createBadgedIconBitmap(getFullResIcon(app), app.getUser(), in addIconToDBAndMemCache()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/defaultapps/
DDefaultAppPreferenceController.java54 final DefaultAppInfo app = getDefaultAppInfo(); in updateState() local
64 mayUpdateGearIcon(app, preference); in updateState()
67 private void mayUpdateGearIcon(DefaultAppInfo app, Preference preference) { in mayUpdateGearIcon() argument
71 final Intent settingIntent = getSettingIntent(app); in mayUpdateGearIcon()
94 final DefaultAppInfo app = getDefaultAppInfo(); in getDefaultAppIcon() local
95 if (app != null) { in getDefaultAppIcon()
96 return app.loadIcon(); in getDefaultAppIcon()
105 final DefaultAppInfo app = getDefaultAppInfo(); in getDefaultAppLabel() local
106 if (app != null) { in getDefaultAppLabel()
107 return app.loadLabel(); in getDefaultAppLabel()
/packages/apps/Settings/src/com/android/settings/applications/
DResetAppsHelper.java21 import android.app.ActivityManager;
22 import android.app.AlertDialog;
23 import android.app.AppOpsManager;
24 import android.app.INotificationManager;
117 ApplicationInfo app = apps.get(i); in onClick()
119 mNm.setNotificationsEnabledForPackage(app.packageName, app.uid, true); in onClick()
122 if (!app.enabled) { in onClick()
123 if (mPm.getApplicationEnabledSetting(app.packageName) in onClick()
125 && !isNonEnableableFallback(app.packageName)) { in onClick()
126 mPm.setApplicationEnabledSetting(app.packageName, in onClick()
DAppAndNotificationDashboardFragment.java19 import android.app.Activity;
20 import android.app.Application;
21 import android.app.Fragment;
69 final Application app; in getPreferenceControllers() local
71 app = activity.getApplication(); in getPreferenceControllers()
73 app = null; in getPreferenceControllers()
75 return buildPreferenceControllers(context, app, this); in getPreferenceControllers()
79 Application app, Fragment host) { in buildPreferenceControllers() argument
85 controllers.add(new RecentAppsPreferenceController(context, app, host)); in buildPreferenceControllers()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java18 import android.app.INotificationManager;
19 import android.app.NotificationChannel;
20 import android.app.NotificationChannelGroup;
42 public AppRow loadAppRow(Context context, PackageManager pm, ApplicationInfo app) { in loadAppRow() argument
44 row.pkg = app.packageName; in loadAppRow()
45 row.uid = app.uid; in loadAppRow()
47 row.label = app.loadLabel(pm); in loadAppRow()
52 row.icon = IconDrawableFactory.newInstance(context).getBadgedIcon(app); in loadAppRow()
59 public AppRow loadAppRow(Context context, PackageManager pm, PackageInfo app) { in loadAppRow() argument
60 final AppRow row = loadAppRow(context, pm, app.applicationInfo); in loadAppRow()
[all …]
DZenAccessSettings.java20 import android.app.ActivityManager;
21 import android.app.AlertDialog;
22 import android.app.AppGlobals;
23 import android.app.Dialog;
24 import android.app.DialogFragment;
25 import android.app.NotificationManager;
124 for (ApplicationInfo app : installed) { in reloadList()
125 if (requesting.contains(app.packageName)) { in reloadList()
126 apps.add(app); in reloadList()
135 for (ApplicationInfo app : apps) { in reloadList()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/preprovisioning/
DPreProvisioningController.java19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE;
20 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO…
21 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_PROFILE;
22 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_SHAREABLE_DEVICE;
23 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_USER;
24 import static android.app.admin.DevicePolicyManager.CODE_ADD_MANAGED_PROFILE_DISALLOWED;
25 import static android.app.admin.DevicePolicyManager.CODE_CANNOT_ADD_MANAGED_PROFILE;
26 import static android.app.admin.DevicePolicyManager.CODE_HAS_DEVICE_OWNER;
27 import static android.app.admin.DevicePolicyManager.CODE_MANAGED_USERS_NOT_SUPPORTED;
28 import static android.app.admin.DevicePolicyManager.CODE_NOT_SYSTEM_USER;
[all …]
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogFragment.java17 package com.android.dialer.app.calllog;
21 import android.app.Activity;
22 import android.app.Fragment;
36 import android.support.v13.app.FragmentCompat;
37 import android.support.v13.app.FragmentCompat.OnRequestPermissionsResultCallback;
38 import android.support.v7.app.AppCompatActivity;
47 import com.android.dialer.app.Bindings;
48 import com.android.dialer.app.R;
49 import com.android.dialer.app.calllog.CallLogAdapter.CallFetcher;
50 import com.android.dialer.app.calllog.CallLogAdapter.MultiSelectRemoveView;
[all …]

12345678910>>...102