Home
last modified time | relevance | path

Searched refs:am (Results 1 – 25 of 424) sorted by relevance

12345678910>>...17

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DServiceRestarterTest.java17 package com.android.server.am;
156 final ActivityManager am = mContext.getSystemService(ActivityManager.class); in testDisableServiceRestartBackoff() local
164 am.addOnUidImportanceListener(uid1Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testDisableServiceRestartBackoff()
165 am.addOnUidImportanceListener(uid1Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testDisableServiceRestartBackoff()
166 am.addOnUidImportanceListener(uid2Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testDisableServiceRestartBackoff()
167 am.addOnUidImportanceListener(uid2Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testDisableServiceRestartBackoff()
168 am.addOnUidImportanceListener(uid3Listener1, RunningAppProcessInfo.IMPORTANCE_SERVICE); in testDisableServiceRestartBackoff()
169 am.addOnUidImportanceListener(uid3Listener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testDisableServiceRestartBackoff()
177 final long[] ts1 = startKillAndRestart(am, ACTION_START | ACTION_KILL | ACTION_WAIT, in testDisableServiceRestartBackoff()
186 final long[] ts2 = startKillAndRestart(am, ACTION_KILL | ACTION_WAIT | ACTION_STOPPKG, in testDisableServiceRestartBackoff()
[all …]
DActivityManagerTest.java17 package com.android.server.am;
273 final ActivityManager am = mContext.getSystemService(ActivityManager.class); in testFgsProcStatsTracker() local
300 am.addOnUidImportanceListener(uidListener1, in testFgsProcStatsTracker()
302 am.addOnUidImportanceListener(uidListener2, RunningAppProcessInfo.IMPORTANCE_GONE); in testFgsProcStatsTracker()
343 am.removeOnUidImportanceListener(uidListener1); in testFgsProcStatsTracker()
344 am.removeOnUidImportanceListener(uidListener2); in testFgsProcStatsTracker()
345 am.forceStopPackage(TEST_APP1); in testFgsProcStatsTracker()
359 final ActivityManager am = mContext.getSystemService(ActivityManager.class); in testAppFreezerWithAllowOomAdj() local
394 am.addOnUidImportanceListener(uid1Listener, in testAppFreezerWithAllowOomAdj()
396 am.addOnUidImportanceListener(uid2Listener, RunningAppProcessInfo.IMPORTANCE_CACHED); in testAppFreezerWithAllowOomAdj()
[all …]
DMemoryStatUtilTest.java17 package com.android.server.am;
19 import static com.android.server.am.MemoryStatUtil.MemoryStat;
20 import static com.android.server.am.MemoryStatUtil.PAGE_SIZE;
21 import static com.android.server.am.MemoryStatUtil.parseMemoryStatFromMemcg;
22 import static com.android.server.am.MemoryStatUtil.parseMemoryStatFromProcfs;
/frameworks/base/core/java/android/app/
DOWNERS6 per-file ActivityManager* = file:/services/core/java/com/android/server/am/OWNERS
7 per-file *ApplicationStartInfo* = file:/services/core/java/com/android/server/am/OWNERS
8 per-file ApplicationErrorReport* = file:/services/core/java/com/android/server/am/OWNERS
9 per-file ApplicationExitInfo* = file:/services/core/java/com/android/server/am/OWNERS
10 per-file Application.java = file:/services/core/java/com/android/server/am/OWNERS
11 per-file ApplicationLoaders.java = file:/services/core/java/com/android/server/am/OWNERS
12 per-file ApplicationThreadConstants.java = file:/services/core/java/com/android/server/am/OWNERS
13 per-file ContentProviderHolder* = file:/services/core/java/com/android/server/am/OWNERS
14 per-file *ForegroundService* = file:/services/core/java/com/android/server/am/OWNERS
15 per-file IActivityController.aidl = file:/services/core/java/com/android/server/am/OWNERS
[all …]
DInstrumentation.java243 IActivityManager am = ActivityManager.getService(); in addResults() local
245 am.addInstrumentationResults(mThread.getApplicationThread(), results); in addResults()
873 ActivityMonitor am = new ActivityMonitor(filter, result, block); in addMonitor() local
874 addMonitor(am); in addMonitor()
875 return am; in addMonitor()
896 ActivityMonitor am = new ActivityMonitor(cls, result, block); in addMonitor() local
897 addMonitor(am); in addMonitor()
898 return am; in addMonitor()
1408 final ActivityMonitor am = mActivityMonitors.get(i); in notifyStartActivityResult() local
1409 if (am.ignoreMatchingSpecificIntents()) { in notifyStartActivityResult()
[all …]
/frameworks/base/cmds/idmap2/idmap2/
DLookup.cpp61 Result<ResourceId> WARN_UNUSED ParseResReference(const AssetManager2& am, const std::string& res, in ParseResReference() argument
73 if (auto resid = am.GetResourceId(res, "", fallback_package); resid.ok()) { in ParseResReference()
81 void PrintValue(AssetManager2* const am, const AssetManager2::SelectedValue& value, in PrintValue() argument
94 const ResStringPool* pool = am->GetStringPoolForCookie(value.cookie); in PrintValue()
106 Result<std::string> WARN_UNUSED GetValue(AssetManager2* const am, ResourceId resid) { in GetValue() argument
107 auto value = am->GetResource(resid); in GetValue()
123 auto bag_result = am->GetBag(static_cast<uint32_t>(value->data)); in GetValue()
133 if (am->ResolveReference(entry).has_value()) { in GetValue()
137 PrintValue(am, entry, &out); in GetValue()
144 PrintValue(am, *value, &out); in GetValue()
[all …]
/frameworks/base/services/core/java/com/android/server/audio/
DAudioManagerShellCommand.java100 final AudioManager am = context.getSystemService(AudioManager.class); in setSurroundFormatEnabled() local
101 am.setSurroundFormatEnabled(surroundFormat, isSurroundFormatEnabled); in setSurroundFormatEnabled()
126 final AudioManager am = context.getSystemService(AudioManager.class); in getIsSurroundFormatEnabled() local
128 + am.isSurroundFormatEnabled(surroundFormat)); in getIsSurroundFormatEnabled()
154 final AudioManager am = context.getSystemService(AudioManager.class); in setEncodedSurroundMode() local
155 am.setEncodedSurroundMode(encodedSurroundMode); in setEncodedSurroundMode()
161 final AudioManager am = context.getSystemService(AudioManager.class); in getEncodedSurroundMode() local
162 getOutPrintWriter().println("Encoded surround mode: " + am.getEncodedSurroundMode()); in getEncodedSurroundMode()
/frameworks/base/services/core/java/com/android/server/am/
DAppBindServiceEventsTracker.java17 package com.android.server.am;
19 import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
20 import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;
21 import static com.android.server.am.AppRestrictionController.DEVICE_CONFIG_SUBNAMESPACE_PREFIX;
22 import static com.android.server.am.BaseAppStateTracker.ONE_DAY;
31 import com.android.server.am.AppBindServiceEventsTracker.AppBindServiceEventsPolicy;
32 import com.android.server.am.AppRestrictionController.TrackerType;
33 import com.android.server.am.BaseAppStateTimeSlotEventsTracker.SimpleAppStateTimeslotEvents;
34 import com.android.server.am.BaseAppStateTracker.Injector;
DAppBroadcastEventsTracker.java17 package com.android.server.am;
19 import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
20 import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;
21 import static com.android.server.am.AppRestrictionController.DEVICE_CONFIG_SUBNAMESPACE_PREFIX;
22 import static com.android.server.am.BaseAppStateTracker.ONE_DAY;
31 import com.android.server.am.AppBroadcastEventsTracker.AppBroadcastEventsPolicy;
32 import com.android.server.am.AppRestrictionController.TrackerType;
33 import com.android.server.am.BaseAppStateTimeSlotEventsTracker.SimpleAppStateTimeslotEvents;
34 import com.android.server.am.BaseAppStateTracker.Injector;
DAppMediaSessionTracker.java17 package com.android.server.am;
19 import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
20 import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;
21 import static com.android.server.am.AppRestrictionController.DEVICE_CONFIG_SUBNAMESPACE_PREFIX;
22 import static com.android.server.am.BaseAppStateTracker.ONE_DAY;
23 import static com.android.server.am.BaseAppStateTracker.STATE_TYPE_MEDIA_SESSION;
38 import com.android.server.am.AppMediaSessionTracker.AppMediaSessionPolicy;
39 import com.android.server.am.AppRestrictionController.TrackerType;
40 import com.android.server.am.BaseAppStateDurationsTracker.SimplePackageDurations;
41 import com.android.server.am.BaseAppStateEventsTracker.BaseAppStateEventsPolicy;
DTEST_MAPPING55 "include-filter": "com.android.server.am."
69 "include-filter": "com.android.server.am."
91 { "include-filter": "com.android.server.am.BatteryStatsServiceTest" },
99 { "include-filter": "com.android.server.am.BroadcastRecordTest" },
100 { "include-filter": "com.android.server.am.BroadcastQueueTest" },
101 { "include-filter": "com.android.server.am.BroadcastQueueModernImplTest" }
143 "include-filter": "com.android.server.am."
DAppBatteryExemptionTracker.java17 package com.android.server.am;
19 import static com.android.server.am.ActivityManagerDebugConfig.TAG_AM;
20 import static com.android.server.am.ActivityManagerDebugConfig.TAG_WITH_CLASS_NAME;
21 import static com.android.server.am.AppBatteryTracker.BATTERY_USAGE_NONE;
22 import static com.android.server.am.AppRestrictionController.DEVICE_CONFIG_SUBNAMESPACE_PREFIX;
23 import static com.android.server.am.BaseAppStateTracker.STATE_TYPE_NUM;
37 import com.android.server.am.AppBatteryExemptionTracker.AppBatteryExemptionPolicy;
38 import com.android.server.am.AppBatteryExemptionTracker.UidBatteryStates;
39 import com.android.server.am.AppBatteryTracker.AppBatteryPolicy;
40 import com.android.server.am.AppBatteryTracker.BatteryUsage;
[all …]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/
DMediaVisualizerTest.java233 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_0PollingCapture() local
234 int ringerMode = am.getRingerMode(); in test2_0PollingCapture()
235 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_0PollingCapture()
236 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0PollingCapture()
237 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0PollingCapture()
238 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0PollingCapture()
299 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0PollingCapture()
300 am.setRingerMode(ringerMode); in test2_0PollingCapture()
312 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_1ListenerCapture() local
313 int ringerMode = am.getRingerMode(); in test2_1ListenerCapture()
[all …]
DMediaPresetReverbTest.java200 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_0AuxiliarySoundModification() local
201 int ringerMode = am.getRingerMode(); in test2_0AuxiliarySoundModification()
202 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_0AuxiliarySoundModification()
203 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification()
204 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0AuxiliarySoundModification()
205 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0AuxiliarySoundModification()
258 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification()
259 am.setRingerMode(ringerMode); in test2_0AuxiliarySoundModification()
273 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_1InsertSoundModification() local
274 int ringerMode = am.getRingerMode(); in test2_1InsertSoundModification()
[all …]
DMediaEnvReverbTest.java355 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_0AuxiliarySoundModification() local
356 int ringerMode = am.getRingerMode(); in test2_0AuxiliarySoundModification()
357 am.setRingerMode(AudioManager.RINGER_MODE_NORMAL); in test2_0AuxiliarySoundModification()
358 int volume = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification()
359 am.setStreamVolume(AudioManager.STREAM_MUSIC, in test2_0AuxiliarySoundModification()
360 am.getStreamMaxVolume(AudioManager.STREAM_MUSIC), in test2_0AuxiliarySoundModification()
415 am.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in test2_0AuxiliarySoundModification()
416 am.setRingerMode(ringerMode); in test2_0AuxiliarySoundModification()
430 AudioManager am = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE); in test2_1InsertSoundModification() local
431 int ringerMode = am.getRingerMode(); in test2_1InsertSoundModification()
[all …]
/frameworks/base/services/
Dart-profile114 …tandbyController;]Landroid/app/ActivityManagerInternal;Lcom/android/server/am/ActivityManagerServi…
139 …rics/LogMaker;]Lcom/android/internal/app/IBatteryStats;Lcom/android/server/am/BatteryStatsService;…
152 …a/util/Collection;)V+]Landroid/os/BatteryStatsInternal;Lcom/android/server/am/BatteryStatsService$…
170 …ceIdleController;]Landroid/app/ActivityManagerInternal;Lcom/android/server/am/ActivityManagerServi…
215 …/Object;Ljava/lang/Object;)I+]Landroid/content/IntentFilter;Lcom/android/server/am/BroadcastFilter;
219 …id/content/IntentFilter;Landroid/content/IntentFilter;,Lcom/android/server/am/BroadcastFilter;,Lan…
221 …id/content/IntentFilter;Landroid/content/IntentFilter;,Lcom/android/server/am/BroadcastFilter;]Lco…
236 …id/content/IntentFilter;Landroid/content/IntentFilter;,Lcom/android/server/am/BroadcastFilter;,Lan…
238 …id/content/IntentFilter;Landroid/content/IntentFilter;,Lcom/android/server/am/BroadcastFilter;]Lco…
243 …id/content/IntentFilter;Landroid/content/IntentFilter;,Lcom/android/server/am/BroadcastFilter;]Lja…
[all …]
Dart-profile-boot279 Lcom/android/server/am/ActivityManagerService;->registerReceiver(Landroid/app/IApplicationThread;Lj…
293 Lcom/android/server/am/ActivityManagerService;->boostPriorityForLockedSection()V
294 Lcom/android/server/am/ActivityManagerService;->resetPriorityAfterLockedSection()V
296 Lcom/android/server/am/ActivityManagerService;->checkComponentPermission(Ljava/lang/String;IIIZ)I
307 Lcom/android/server/am/UserController;->handleIncomingUser(IIIZILjava/lang/String;Ljava/lang/String…
308 Lcom/android/server/am/UserController;->unsafeConvertIncomingUser(I)I
311 Lcom/android/server/am/ActivityManagerService;->handleIncomingUser(IIIZZLjava/lang/String;Ljava/lan…
312 Lcom/android/server/am/UserController;->getCurrentUserId()I
313 Lcom/android/server/am/UserController;->ensureNotSpecialUser(I)V
327 Lcom/android/server/am/ActivityManagerService;->checkPermission(Ljava/lang/String;II)I
[all …]
/frameworks/base/packages/SystemUI/docs/
Ddemo_mode.md12 …oadcast intents, and thus can be driven via the command line (```adb shell am broadcast```) or an …
66 adb shell am broadcast -a com.android.systemui.demo -e command enter
73 adb shell am broadcast -a com.android.systemui.demo -e command exit
80 adb shell am broadcast -a com.android.systemui.demo -e command clock -e hhmm
88 adb shell am broadcast -a com.android.systemui.demo -e command network -e wifi
96 adb shell am broadcast -a com.android.systemui.demo -e command status -e volume
104 adb shell am broadcast -a com.android.systemui.demo -e command battery -e level
112 adb shell am broadcast -a com.android.systemui.demo -e command notifications -e
120 adb shell am broadcast -a com.android.systemui.demo -e command exit
153 $ADB shell am broadcast -a com.android.systemui.demo -e command enter || exit
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DAccessibilityController.java46 AccessibilityManager am = in AccessibilityController() local
48 am.addTouchExplorationStateChangeListener(this); in AccessibilityController()
49 am.addAccessibilityStateChangeListener(this); in AccessibilityController()
50 mAccessibilityEnabled = am.isEnabled(); in AccessibilityController()
51 mTouchExplorationEnabled = am.isTouchExplorationEnabled(); in AccessibilityController()
/frameworks/base/core/java/com/android/server/backup/
DAccountManagerBackupHelper.java47 AccountManagerInternal am = LocalServices.getService(AccountManagerInternal.class); in getBackupPayload() local
54 return am.backupAccountAccessPermissions(mUserId); in getBackupPayload()
70 AccountManagerInternal am = LocalServices.getService(AccountManagerInternal.class); in applyRestoredPayload() local
77 am.restoreAccountAccessPermissions(payload, mUserId); in applyRestoredPayload()
/frameworks/av/media/libmediaplayerservice/
DActivityManager.cpp33 sp<IActivityManager> am = interface_cast<IActivityManager>(binder); in openContentProviderFile() local
34 if (am != NULL) { in openContentProviderFile()
35 fd = am->openContentUri(uri); in openContentProviderFile()
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java66 private static ByteBuffer mmap(AssetManager am, String path) { in mmap() argument
68 try (InputStream is = am.open(path)) { in mmap()
106 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts() local
112 ByteBuffer buffer = mmap(am, path); in testRegularFonts()
121 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont() local
123 ByteBuffer buffer = mmap(am, path); in testTtcFont()
137 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont() local
139 ByteBuffer buffer = mmap(am, path); in testVariationFont()
/frameworks/base/services/core/
DAndroid.bp11 name: "services.core-sources-am-wm",
13 "java/com/android/server/am/**/*.java",
24 ":services.core-sources-am-wm",
37 ":services.core-sources-am-wm",
47 "$(locations :services.core-sources-am-wm)",
55 ":services.core-sources-am-wm",
63 "$(locations :services.core-sources-am-wm)",
122 "java/com/android/server/am/EventLogTags.logtags",
205 …" --targets \"Lcom/android/server/am/ActivityManagerService;,Lcom/android/server/am/ActivityManag…
206 …" --pre \"com/android/server/am/ActivityManagerService.boostPriorityForLockedSection,com/android/…
[all …]
/frameworks/av/media/libaudioclient/tests/
Daudioclient_serialization_tests.cpp207 AudioMix am{criteria, in TEST_F() local
215 EXPECT_EQ(NO_ERROR, am.writeToParcel(&p)) << msg; in TEST_F()
220 EXPECT_EQ(amCopy.mMixType, am.mMixType) << msg; in TEST_F()
221 EXPECT_EQ(amCopy.mFormat.sample_rate, am.mFormat.sample_rate) << msg; in TEST_F()
222 EXPECT_EQ(amCopy.mFormat.channel_mask, am.mFormat.channel_mask) << msg; in TEST_F()
223 EXPECT_EQ(amCopy.mFormat.format, am.mFormat.format) << msg; in TEST_F()
224 EXPECT_EQ(amCopy.mRouteFlags, am.mRouteFlags) << msg; in TEST_F()
225 EXPECT_EQ(amCopy.mDeviceAddress, am.mDeviceAddress) << msg; in TEST_F()
226 EXPECT_EQ(amCopy.mCbFlags, am.mCbFlags) << msg; in TEST_F()
227 EXPECT_EQ(amCopy.mCriteria.size(), am.mCriteria.size()) << msg; in TEST_F()
[all …]
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/
DUiAutomationShellWrapper.java46 IActivityManager am = ActivityManager.getService(); in setRunAsMonkey() local
47 if (am == null) { in setRunAsMonkey()
52 am.setActivityController(new NoOpActivityController(), true); in setRunAsMonkey()
54 am.setActivityController(null, true); in setRunAsMonkey()

12345678910>>...17