Home
last modified time | relevance | path

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

12345678910>>...190

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DMockingOomAdjusterTests.java19 import static android.app.ActivityManager.PROCESS_CAPABILITY_ALL;
20 import static android.app.ActivityManager.PROCESS_CAPABILITY_BFSL;
21 import static android.app.ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE;
22 import static android.app.ActivityManager.PROCESS_STATE_BOUND_TOP;
23 import static android.app.ActivityManager.PROCESS_STATE_CACHED_ACTIVITY;
24 import static android.app.ActivityManager.PROCESS_STATE_CACHED_ACTIVITY_CLIENT;
25 import static android.app.ActivityManager.PROCESS_STATE_CACHED_EMPTY;
26 import static android.app.ActivityManager.PROCESS_STATE_CACHED_RECENT;
27 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
28 import static android.app.ActivityManager.PROCESS_STATE_HEAVY_WEIGHT;
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/template/app/
DAppOpPermissionAppList.kt17 package com.android.settingslib.spaprivileged.template.app in <lambda>()
19 import android.app.AppOpsManager in <lambda>()
27 import com.android.settingslib.spaprivileged.model.app.AppOps in <lambda>()
28 import com.android.settingslib.spaprivileged.model.app.AppOpsPermissionController in <lambda>()
29 import com.android.settingslib.spaprivileged.model.app.AppRecord in <lambda>()
30 import com.android.settingslib.spaprivileged.model.app.IAppOpsPermissionController in <lambda>()
31 import com.android.settingslib.spaprivileged.model.app.IPackageManagers in <lambda>()
32 import com.android.settingslib.spaprivileged.model.app.PackageManagers in <lambda>()
38 override val app: ApplicationInfo, in <lambda>() constant in com.android.settingslib.spaprivileged.template.app.AppOpPermissionRecord
73 private fun createAppOpsPermissionController(app: ApplicationInfo) = in <lambda>()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DInsetsStateControllerTest.java19 import static android.app.WindowConfiguration.WINDOWING_MODE_FREEFORM;
20 import static android.app.WindowConfiguration.WINDOWING_MODE_MULTI_WINDOW;
21 import static android.app.WindowConfiguration.WINDOWING_MODE_PINNED;
100 final WindowState app = createWindow(null, TYPE_APPLICATION, "app"); in testStripForDispatch_pip() local
106 app.setWindowingMode(WINDOWING_MODE_PINNED); in testStripForDispatch_pip()
108 assertNull(app.getInsetsState().peekSource(ID_STATUS_BAR)); in testStripForDispatch_pip()
109 assertNull(app.getInsetsState().peekSource(ID_NAVIGATION_BAR)); in testStripForDispatch_pip()
110 assertNull(app.getInsetsState().peekSource(ID_IME)); in testStripForDispatch_pip()
117 final WindowState app = createWindow(null, TYPE_APPLICATION, "app"); in testStripForDispatch_freeform() local
123 app.setWindowingMode(WINDOWING_MODE_FREEFORM); in testStripForDispatch_freeform()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DOomAdjuster.java19 import static android.app.ActivityManager.PROCESS_CAPABILITY_ALL;
20 import static android.app.ActivityManager.PROCESS_CAPABILITY_ALL_IMPLICIT;
21 import static android.app.ActivityManager.PROCESS_CAPABILITY_BFSL;
22 import static android.app.ActivityManager.PROCESS_CAPABILITY_FOREGROUND_AUDIO_CONTROL;
23 import static android.app.ActivityManager.PROCESS_CAPABILITY_FOREGROUND_CAMERA;
24 import static android.app.ActivityManager.PROCESS_CAPABILITY_FOREGROUND_LOCATION;
25 import static android.app.ActivityManager.PROCESS_CAPABILITY_FOREGROUND_MICROPHONE;
26 import static android.app.ActivityManager.PROCESS_CAPABILITY_NONE;
27 import static android.app.ActivityManager.PROCESS_CAPABILITY_POWER_RESTRICTED_NETWORK;
28 import static android.app.ActivityManager.PROCESS_CAPABILITY_USER_RESTRICTED_NETWORK;
[all …]
DProcessList.java19 import static android.app.ActivityManager.PROCESS_CAPABILITY_NONE;
20 import static android.app.ActivityManager.PROCESS_STATE_CACHED_ACTIVITY;
21 import static android.app.ActivityManager.PROCESS_STATE_NONEXISTENT;
22 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_PROCESS_END;
23 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_RESTRICTION_CHANGE;
24 import static android.app.ActivityThread.PROC_START_SEQ_IDENT;
69 import android.app.ActivityManager;
70 import android.app.ActivityManager.ProcessCapability;
71 import android.app.ActivityThread;
72 import android.app.AppGlobals;
[all …]
DPlatformCompatCache.java106 private boolean isChangeEnabled(long changeId, ApplicationInfo app, boolean defaultValue) { in isChangeEnabled() argument
108 return mCacheEnabled ? mCaches.get(changeId).isChangeEnabled(app) in isChangeEnabled()
109 : mIPlatformCompatProxy.isChangeEnabled(changeId, app); in isChangeEnabled()
120 ApplicationInfo app, boolean defaultValue) { in isChangeEnabled() argument
122 CACHED_COMPAT_CHANGE_IDS_MAPPING[cachedCompatChangeId], app, defaultValue); in isChangeEnabled()
128 void invalidate(ApplicationInfo app) { in invalidate() argument
130 mCaches.valueAt(i).invalidate(app); in invalidate()
137 void onApplicationInfoChanged(ApplicationInfo app) { in onApplicationInfoChanged() argument
139 mCaches.valueAt(i).onApplicationInfoChanged(app); in onApplicationInfoChanged()
157 boolean isChangeEnabled(ApplicationInfo app) { in isChangeEnabled() argument
[all …]
DOomAdjusterModernImpl.java19 import static android.app.ActivityManager.PROCESS_CAPABILITY_BFSL;
20 import static android.app.ActivityManager.PROCESS_STATE_BACKUP;
21 import static android.app.ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE;
22 import static android.app.ActivityManager.PROCESS_STATE_BOUND_TOP;
23 import static android.app.ActivityManager.PROCESS_STATE_CACHED_ACTIVITY;
24 import static android.app.ActivityManager.PROCESS_STATE_CACHED_ACTIVITY_CLIENT;
25 import static android.app.ActivityManager.PROCESS_STATE_CACHED_EMPTY;
26 import static android.app.ActivityManager.PROCESS_STATE_CACHED_RECENT;
27 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
28 import static android.app.ActivityManager.PROCESS_STATE_HEAVY_WEIGHT;
[all …]
DCachedAppOptimizer.java19 import static android.app.ActivityManager.UidFrozenStateChangedCallback.UID_FROZEN_STATE_FROZEN;
20 import static android.app.ActivityManager.UidFrozenStateChangedCallback.UID_FROZEN_STATE_UNFROZEN;
21 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_ACTIVITY;
22 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_ALLOWLIST;
23 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_BACKUP;
24 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_BIND_SERVICE;
25 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_COMPONENT_DISABLED;
26 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_EXECUTING_SERVICE;
27 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_FINISH_RECEIVER;
28 import static android.app.ActivityManagerInternal.OOM_ADJ_REASON_GET_PROVIDER;
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/model/app/
DAppRepository.kt17 package com.android.settingslib.spaprivileged.model.app
38 fun loadLabel(app: ApplicationInfo): String in rememberAppRepository()
42 fun produceLabel(app: ApplicationInfo, isClonedAppPage: Boolean = false): State<String> { in rememberAppRepository()
44 return produceState(initialValue = placeholder(), app) { in rememberAppRepository()
46 value = if (isClonedAppPage || isCloneApp(context, app)) { in rememberAppRepository()
47 context.getString(R.string.cloned_app_info_label, loadLabel(app)) in rememberAppRepository()
49 loadLabel(app) in rememberAppRepository()
55 private fun isCloneApp(context: Context, app: ApplicationInfo): Boolean { in rememberAppRepository()
56 val userInfo = context.userManager.getUserInfo(app.userId) in rememberAppRepository()
61 fun produceIcon(app: ApplicationInfo): State<Drawable?> in rememberAppRepository()
[all …]
DAppOpsController.kt17 package com.android.settingslib.spaprivileged.model.app
19 import android.app.AppOpsManager
20 import android.app.AppOpsManager.MODE_ALLOWED
21 import android.app.AppOpsManager.MODE_ERRORED
22 import android.app.AppOpsManager.Mode
55 private val app: ApplicationInfo, in setAllowed() constant
60 override val modeFlow = appOpsManager.opModeFlow(appOps.op, app) in setAllowed()
66 appOpsManager.setUidMode(appOps.op, app.uid, mode) in setAllowed()
68 appOpsManager.setMode(appOps.op, app.uid, app.packageName, mode) in setAllowed()
73 packageManager.updatePermissionFlags(permission, app.packageName, in setAllowed()
[all …]
DAppOpsRepository.kt17 package com.android.settingslib.spaprivileged.model.app
19 import android.app.AppOpsManager
28 fun AppOpsManager.getOpMode(op: Int, app: ApplicationInfo) = in AppOpsManager()
29 checkOpNoThrow(op, app.uid, app.packageName) in AppOpsManager()
31 fun AppOpsManager.opModeFlow(op: Int, app: ApplicationInfo) = in AppOpsManager()
32 opChangedFlow(op, app).map { getOpMode(op, app) }.flowOn(Dispatchers.Default) in AppOpsManager()
34 private fun AppOpsManager.opChangedFlow(op: Int, app: ApplicationInfo) = callbackFlow { in <lambda>()
39 if (userId == app.userId) trySend(Unit) in <lambda>()
42 startWatchingMode(op, app.packageName, listener) in <lambda>()
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/model/app/
DApplicationInfosTest.kt17 package com.android.settingslib.spaprivileged.model.app
19 import android.app.admin.DevicePolicyManager
24 import androidx.test.core.app.ApplicationProvider
61 val app = ApplicationInfo().apply { in userId() constant
65 val userId = app.userId in userId()
72 val app = ApplicationInfo().apply { in userHandle() constant
76 val userHandle = app.userHandle in userHandle()
83 val app = ApplicationInfo().apply { in hasFlag() constant
87 val hasFlag = app.hasFlag(ApplicationInfo.FLAG_INSTALLED) in hasFlag()
94 val app = ApplicationInfo().apply { in installed() constant
[all …]
/frameworks/opt/car/services/builtInServices/src/com/android/internal/car/
DCarDevicePolicySafetyChecker.java18 import static android.app.admin.DevicePolicyManager.OPERATION_CLEAR_APPLICATION_USER_DATA;
19 import static android.app.admin.DevicePolicyManager.OPERATION_LOGOUT_USER;
20 import static android.app.admin.DevicePolicyManager.OPERATION_REBOOT;
21 import static android.app.admin.DevicePolicyManager.OPERATION_REQUEST_BUGREPORT;
22 import static android.app.admin.DevicePolicyManager.OPERATION_SAFETY_REASON_DRIVING_DISTRACTION;
23 import static android.app.admin.DevicePolicyManager.OPERATION_SET_APPLICATION_HIDDEN;
24 import static android.app.admin.DevicePolicyManager.OPERATION_SET_APPLICATION_RESTRICTIONS;
25 import static android.app.admin.DevicePolicyManager.OPERATION_SET_KEYGUARD_DISABLED;
26 import static android.app.admin.DevicePolicyManager.OPERATION_SET_LOCK_TASK_FEATURES;
27 import static android.app.admin.DevicePolicyManager.OPERATION_SET_LOCK_TASK_PACKAGES;
[all …]
/frameworks/base/services/core/java/com/android/server/appop/
DAppOpsUidStateTracker.java19 import static android.app.ActivityManager.PROCESS_STATE_BOUND_FOREGROUND_SERVICE;
20 import static android.app.ActivityManager.PROCESS_STATE_BOUND_TOP;
21 import static android.app.ActivityManager.PROCESS_STATE_FOREGROUND_SERVICE;
22 import static android.app.ActivityManager.PROCESS_STATE_PERSISTENT_UI;
23 import static android.app.ActivityManager.PROCESS_STATE_RECEIVER;
24 import static android.app.ActivityManager.PROCESS_STATE_TOP;
25 import static android.app.ActivityManager.PROCESS_STATE_UNKNOWN;
26 import static android.app.AppOpsManager.UID_STATE_BACKGROUND;
27 import static android.app.AppOpsManager.UID_STATE_CACHED;
28 import static android.app.AppOpsManager.UID_STATE_FOREGROUND;
[all …]
/frameworks/base/docs/html/sdk/support_api_diff/25.1.0/
DmissingSinces.txt6 NO DOC BLOCK: android.support.v4.app.FragmentManager.FragmentLifecycleCallbacks Class
8 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackControlGlue.InputEventHandler Interface
9 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackFragment Class
10 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackFragment.OnFadeCompleteListener Class
11 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackFragmentGlueHost Class
12 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackGlue Class
13 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackGlue.HostLifecycleCallback Class
14 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackGlue.PlaybackGlueHost Class
15 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackGlue.PlayerCallback Class
18 NO DOC BLOCK: android.support.v17.leanback.app.PlaybackSupportFragment Class
[all …]
/frameworks/base/services/backup/java/com/android/server/backup/utils/
DBackupEligibilityRules.java28 import android.app.backup.BackupAnnotations.BackupDestination;
29 import android.app.backup.BackupTransport;
30 import android.app.compat.CompatChanges;
154 public boolean appIsEligibleForBackup(ApplicationInfo app) { in appIsEligibleForBackup() argument
157 if (!isAppBackupAllowed(app)) { in appIsEligibleForBackup()
162 if (UserHandle.isCore(app.uid)) { in appIsEligibleForBackup()
167 app.packageName)) { in appIsEligibleForBackup()
171 app.packageName)) { in appIsEligibleForBackup()
177 if (app.backupAgentName == null) { in appIsEligibleForBackup()
183 if (app.packageName.equals(SHARED_BACKUP_AGENT_PACKAGE)) { in appIsEligibleForBackup()
[all …]
/frameworks/base/packages/SettingsLib/SpaPrivileged/tests/src/com/android/settingslib/spaprivileged/template/app/
DAppStorageSizeTest.kt17 package com.android.settingslib.spaprivileged.template.app
19 import android.app.usage.StorageStats
20 import android.app.usage.StorageStatsManager
27 import androidx.test.core.app.ApplicationProvider
31 import com.android.settingslib.spaprivileged.model.app.userHandle
57 private val app = ApplicationInfo().apply { in <lambda>() constant in com.android.settingslib.spaprivileged.template.app.AppStorageSizeTest
66 app.storageUuid, in setUp()
67 app.packageName, in setUp()
68 app.userHandle, in setUp()
79 storageSize = app.getStorageSize() in getStorageSize()
[all …]
/frameworks/base/core/java/android/app/timedetector/
DITimeDetectorService.aidl17 package android.app.timedetector;
19 import android.app.time.ExternalTimeSuggestion;
20 import android.app.time.ITimeDetectorListener;
21 import android.app.time.TimeCapabilitiesAndConfig;
22 import android.app.time.TimeConfiguration;
23 import android.app.time.TimeState;
24 import android.app.time.UnixEpochTime;
25 import android.app.timedetector.ManualTimeSuggestion;
26 import android.app.timedetector.TelephonyTimeSuggestion;
/frameworks/base/libs/androidfw/tests/
DTheme_test.cpp29 namespace app = com::android::app;
70 EXPECT_FALSE(theme->GetAttribute(app::R::attr::attr_one).has_value()); in TEST_F()
78 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleOne).has_value()); in TEST_F()
80 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
86 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
98 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
100 auto value = theme->GetAttribute(app::R::attr::attr_one); in TEST_F()
106 value = theme->GetAttribute(app::R::attr::attr_two); in TEST_F()
115 value = theme->GetAttribute(app::R::attr::attr_three); in TEST_F()
127 ASSERT_TRUE(theme->ApplyStyle(app::R::style::StyleTwo).has_value()); in TEST_F()
[all …]
/frameworks/base/core/java/android/app/admin/
DProvisioningIntentHelper.java17 package android.app.admin;
19 import static android.app.admin.DevicePolicyManager.ACTION_PROVISION_MANAGED_DEVICE_FROM_TRUSTED_SO…
20 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ADMIN_EXTRAS_BUNDLE;
21 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_ALLOW_OFFLINE;
22 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_COMPONENT_NAME;
23 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_MINIMUM_VERSION…
24 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_DEVICE_ADMIN_PACKAGE_NAME;
25 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_ACCOUNT_ON_MIGRATION;
26 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_KEEP_SCREEN_ON;
27 import static android.app.admin.DevicePolicyManager.EXTRA_PROVISIONING_LEAVE_ALL_SYSTEM_APPS_ENABLE…
[all …]
/frameworks/base/core/java/android/app/ondeviceintelligence/
DIOnDeviceIntelligenceManager.aidl17 package android.app.ondeviceintelligence;
25 import android.app.ondeviceintelligence.Feature;
26 import android.app.ondeviceintelligence.FeatureDetails;
27 import android.app.ondeviceintelligence.InferenceInfo;
29 import android.app.ondeviceintelligence.IDownloadCallback;
30 import android.app.ondeviceintelligence.IListFeaturesCallback;
31 import android.app.ondeviceintelligence.IFeatureCallback;
32 import android.app.ondeviceintelligence.IFeatureDetailsCallback;
33 import android.app.ondeviceintelligence.IResponseCallback;
34 import android.app.ondeviceintelligence.IStreamingResponseCallback;
[all …]
/frameworks/base/nfc/api/
Dremoved.txt5 ….compat.annotation.UnsupportedAppUsage public void disableForegroundNdefPush(android.app.Activity);
6 …nnotation.UnsupportedAppUsage public void enableForegroundNdefPush(android.app.Activity, android.n…
7 …ted @android.compat.annotation.UnsupportedAppUsage public boolean invokeBeam(android.app.Activity);
9 …nnotation.UnsupportedAppUsage public void setBeamPushUris(android.net.Uri[], android.app.Activity);
10 … void setBeamPushUrisCallback(android.nfc.NfcAdapter.CreateBeamUrisCallback, android.app.Activity);
11 …public void setNdefPushMessage(android.nfc.NdefMessage, android.app.Activity, android.app.Activity…
12 …lback(android.nfc.NfcAdapter.CreateNdefMessageCallback, android.app.Activity, android.app.Activity…
13 …back(android.nfc.NfcAdapter.OnNdefPushCompleteCallback, android.app.Activity, android.app.Activity…
/frameworks/base/core/java/com/android/internal/app/procstats/
DSysMemUsageTable.java17 package com.android.internal.app.procstats;
21 import static com.android.internal.app.procstats.ProcessStats.STATE_COUNT;
22 import static com.android.internal.app.procstats.ProcessStats.STATE_NOTHING;
23 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_SAMPLE_COUNT;
24 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_CACHED_MINIMUM;
25 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_CACHED_AVERAGE;
26 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_CACHED_MAXIMUM;
27 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_FREE_MINIMUM;
28 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_FREE_AVERAGE;
29 import static com.android.internal.app.procstats.ProcessStats.SYS_MEM_USAGE_FREE_MAXIMUM;
[all …]
/frameworks/base/services/core/java/com/android/server/timedetector/
DTimeDetectorShellCommand.java18 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_CLEAR_NETWORK_TIME;
19 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_CLEAR_SYSTEM_CLOCK_NETWORK_TIME;
20 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_CONFIRM_TIME;
21 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_GET_NETWORK_TIME;
22 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_GET_TIME_STATE;
23 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_IS_AUTO_DETECTION_ENABLED;
24 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_SERVICE_NAME;
25 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_SET_AUTO_DETECTION_ENABLED;
26 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_SET_SYSTEM_CLOCK_NETWORK_TIME;
27 import static android.app.timedetector.TimeDetector.SHELL_COMMAND_SET_TIME_STATE;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/disableflags/
DDisableFlagsLogger.kt18 import android.app.StatusBarManager.DISABLE2_GLOBAL_ACTIONS
19 import android.app.StatusBarManager.DISABLE2_NOTIFICATION_SHADE
20 import android.app.StatusBarManager.DISABLE2_QUICK_SETTINGS
21 import android.app.StatusBarManager.DISABLE2_ROTATE_SUGGESTIONS
22 import android.app.StatusBarManager.DISABLE2_SYSTEM_ICONS
23 import android.app.StatusBarManager.DISABLE_BACK
24 import android.app.StatusBarManager.DISABLE_CLOCK
25 import android.app.StatusBarManager.DISABLE_EXPAND
26 import android.app.StatusBarManager.DISABLE_HOME
27 import android.app.StatusBarManager.DISABLE_NOTIFICATION_ALERTS
[all …]

12345678910>>...190