/frameworks/base/cmds/statsd/tests/ |
D | AlarmMonitor_test.cpp | 26 AlarmMonitor am(2, [](const sp<IStatsCompanionService>&, int64_t){}, in TEST() local 29 set = am.popSoonerThan(5); in TEST() 39 am.add(a); in TEST() 40 am.add(b); in TEST() 41 am.add(c); in TEST() 42 am.add(d); in TEST() 43 am.add(e); in TEST() 44 am.add(f); in TEST() 46 set = am.popSoonerThan(5); in TEST() 49 set = am.popSoonerThan(30); in TEST() [all …]
|
/frameworks/base/core/java/android/app/ |
D | Instrumentation.java | 220 IActivityManager am = ActivityManager.getService(); in addResults() local 222 am.addInstrumentationResults(mThread.getApplicationThread(), results); in addResults() 813 ActivityMonitor am = new ActivityMonitor(filter, result, block); in addMonitor() local 814 addMonitor(am); in addMonitor() 815 return am; in addMonitor() 836 ActivityMonitor am = new ActivityMonitor(cls, result, block); in addMonitor() local 837 addMonitor(am); in addMonitor() 838 return am; in addMonitor() 1290 final ActivityMonitor am = mActivityMonitors.get(i); in postPerformCreate() local 1291 am.match(activity, activity, activity.getIntent()); in postPerformCreate() [all …]
|
/frameworks/base/services/core/java/com/android/server/job/ |
D | GrantedUriPermissions.java | 43 private GrantedUriPermissions(IActivityManager am, int grantFlags, int uid, String tag) in GrantedUriPermissions() argument 52 public void revoke(IActivityManager am) { in revoke() argument 65 public static GrantedUriPermissions createFromIntent(IActivityManager am, Intent intent, in createFromIntent() argument 76 perms = grantUri(am, data, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent() 82 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, tag, in createFromIntent() 89 public static GrantedUriPermissions createFromClip(IActivityManager am, ClipData clip, in createFromClip() argument 96 perms = grantClip(am, clip, sourceUid, targetPackage, targetUserId, grantFlags, in createFromClip() 102 private static GrantedUriPermissions grantClip(IActivityManager am, ClipData clip, in grantClip() argument 107 curPerms = grantItem(am, clip.getItemAt(i), sourceUid, targetPackage, targetUserId, in grantClip() 113 private static GrantedUriPermissions grantUri(IActivityManager am, Uri uri, in grantUri() argument [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaVisualizerTest.java | 233 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 …]
|
D | MediaPresetReverbTest.java | 200 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 …]
|
D | MediaEnvReverbTest.java | 355 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/tests/servicestests/src/com/android/server/am/ |
D | MemoryStatUtilTest.java | 17 package com.android.server.am; 19 import static com.android.server.am.MemoryStatUtil.BYTES_IN_KILOBYTE; 20 import static com.android.server.am.MemoryStatUtil.JIFFY_NANOS; 21 import static com.android.server.am.MemoryStatUtil.MemoryStat; 22 import static com.android.server.am.MemoryStatUtil.parseCmdlineFromProcfs; 23 import static com.android.server.am.MemoryStatUtil.parseIonHeapSizeFromDebugfs; 24 import static com.android.server.am.MemoryStatUtil.parseMemoryStatFromMemcg; 25 import static com.android.server.am.MemoryStatUtil.parseMemoryStatFromProcfs; 26 import static com.android.server.am.MemoryStatUtil.parseProcessIonHeapSizesFromDebugfs; 27 import static com.android.server.am.MemoryStatUtil.parseVmHWMFromProcfs; [all …]
|
/frameworks/base/packages/SystemUI/docs/ |
D | demo_mode.md | 12 …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/cmds/idmap2/idmap2/ |
D | Lookup.cpp | 66 Result<ResourceId> WARN_UNUSED ParseResReference(const AssetManager2& am, const std::string& res, in ParseResReference() argument 79 resid = am.GetResourceId(res, "", fallback_package); in ParseResReference() 88 Result<std::string> WARN_UNUSED GetValue(const AssetManager2& am, ResourceId resid) { in GetValue() argument 92 ApkAssetsCookie cookie = am.GetResource(resid, false, 0, &value, &config, &flags); in GetValue() 118 const ResStringPool* pool = am.GetStringPoolForCookie(cookie); in GetValue() 229 AssetManager2 am; in Lookup() local 230 am.SetApkAssets(raw_pointer_apk_assets); in Lookup() 231 am.SetConfiguration(config); in Lookup() 233 const Result<ResourceId> resid = ParseResReference(am, resid_str, target_package_name); in Lookup() 238 const Result<std::string> value = GetValue(am, *resid); in Lookup()
|
/frameworks/base/core/tests/coretests/src/android/graphics/ |
D | FontFileUtilTest.java | 62 private static ByteBuffer mmap(AssetManager am, String path) { in mmap() argument 64 try (InputStream is = am.open(path)) { in mmap() 102 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts() local 108 ByteBuffer buffer = mmap(am, path); in testRegularFonts() 117 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont() local 119 ByteBuffer buffer = mmap(am, path); in testTtcFont() 133 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont() local 135 ByteBuffer buffer = mmap(am, path); in testVariationFont()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | AccessibilityController.java | 45 AccessibilityManager am = in AccessibilityController() local 47 am.addTouchExplorationStateChangeListener(this); in AccessibilityController() 48 am.addAccessibilityStateChangeListener(this); in AccessibilityController() 49 mAccessibilityEnabled = am.isEnabled(); in AccessibilityController() 50 mTouchExplorationEnabled = am.isTouchExplorationEnabled(); in AccessibilityController()
|
/frameworks/base/cmds/idmap/ |
D | inspect.cpp | 148 status_t resource_metadata(const AssetManager& am, uint32_t res_id, in resource_metadata() argument 150 const ResTable& rt = am.getResources(); in resource_metadata() 168 status_t parse_idmap_header(IdmapBuffer& buf, AssetManager& am) { in parse_idmap_header() argument 211 if (!am.addAssetPath(String8(path), NULL)) { in parse_idmap_header() 226 status_t parse_data(IdmapBuffer& buf, const AssetManager& am) { in parse_data() argument 227 const uint32_t packageId = am.getResources().getBasePackageId(0); in parse_data() 283 err = resource_metadata(am, resID, NULL, &type, &name); in parse_data() 303 AssetManager am; in idmap_inspect() local 304 if (parse_idmap_header(buf, am) != NO_ERROR) { in idmap_inspect() 308 if (parse_data(buf, am) != NO_ERROR) { in idmap_inspect()
|
/frameworks/base/core/java/com/android/server/backup/ |
D | AccountManagerBackupHelper.java | 44 AccountManagerInternal am = LocalServices.getService(AccountManagerInternal.class); in getBackupPayload() local 51 return am.backupAccountAccessPermissions(UserHandle.USER_SYSTEM); in getBackupPayload() 67 AccountManagerInternal am = LocalServices.getService(AccountManagerInternal.class); in applyRestoredPayload() local 74 am.restoreAccountAccessPermissions(payload, UserHandle.USER_SYSTEM); in applyRestoredPayload()
|
/frameworks/av/media/libmediaplayerservice/ |
D | ActivityManager.cpp | 33 sp<IActivityManager> am = interface_cast<IActivityManager>(binder); in openContentProviderFile() local 34 if (am != NULL) { in openContentProviderFile() 35 fd = am->openContentUri(uri); in openContentProviderFile()
|
/frameworks/native/opengl/libagl/ |
D | array.cpp | 1151 array_machine_t& am = c->arrays; in validate_arrays() local 1152 am.vertex.fetch = fetchNop; in validate_arrays() 1153 am.normal.fetch = currentNormal; in validate_arrays() 1154 am.color.fetch = currentColor; in validate_arrays() 1156 if (am.vertex.enable) { in validate_arrays() 1157 am.vertex.resolve(); in validate_arrays() 1158 if (am.vertex.bo || am.vertex.pointer) { in validate_arrays() 1159 am.vertex.fetch = vertex_fct[am.vertex.size-2][am.vertex.type & 0xF]; in validate_arrays() 1163 if (am.normal.enable) { in validate_arrays() 1164 am.normal.resolve(); in validate_arrays() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | LowMemDetector.java | 17 package com.android.server.am; 43 LowMemDetector(ActivityManagerService am) { in LowMemDetector() argument 44 mAm = am; in LowMemDetector()
|
D | TEST_MAPPING | 24 "include-filter": "com.android.server.am." 39 "include-filter": "com.android.server.am." 55 "include-filter": "com.android.server.am."
|
/frameworks/base/cmds/uiautomator/library/testrunner-src/com/android/uiautomator/core/ |
D | UiAutomationShellWrapper.java | 46 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()
|
/frameworks/base/cmds/statsd/tools/loadtest/ |
D | run_loadtest.sh | 12 adb shell am start -n com.android.statsd.loadtest/.LoadtestActivity --es "type" "start" 18 adb shell am start -n com.android.statsd.loadtest/.LoadtestActivity --es "type" "stop" 25 …adb shell am start -n com.android.statsd.loadtest/.LoadtestActivity --es "type" "set_replication" …
|
/frameworks/base/apct-tests/perftests/core/src/android/graphics/perftests/ |
D | TypefaceCreatePerfTest.java | 73 final AssetManager am = context.getAssets(); in testCreate_fromAsset() local 76 Typeface face = Typeface.createFromAsset(am, TEST_FONT_NAME); in testCreate_fromAsset() 84 final AssetManager am = context.getAssets(); in testCreate_fromFile() local 93 try (InputStream in = am.open(TEST_FONT_NAME); in testCreate_fromFile()
|
/frameworks/base/services/core/ |
D | Android.bp | 21 "java/com/android/server/am/EventLogTags.logtags", 67 …" --targets \"Lcom/android/server/am/ActivityManagerService;,Lcom/android/server/wm/WindowManager… 68 …" --pre \"com/android/server/am/ActivityManagerService.boostPriorityForLockedSection,com/android/… 69 …" --post \"com/android/server/am/ActivityManagerService.resetPriorityAfterLockedSection,com/andro…
|
/frameworks/base/cmds/am/ |
D | am | 7 export CLASSPATH=$base/framework/am.jar 8 exec app_process $base/bin com.android.commands.am.Am "$@"
|
/frameworks/base/core/java/android/service/vr/ |
D | VrListenerService.java | 168 ActivityManager am = context.getSystemService(ActivityManager.class); in isVrModePackageEnabled() local 169 if (am == null) { in isVrModePackageEnabled() 172 return am.isVrModePackageEnabled(requestedComponent); in isVrModePackageEnabled()
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | ServiceStartPerfTest.java | 17 package com.android.frameworks.perftests.am.tests; 26 import com.android.frameworks.perftests.am.util.Constants; 27 import com.android.frameworks.perftests.am.util.TargetPackageUtils;
|
/frameworks/base/core/tests/SvcMonitor/ |
D | README | 8 $ adb shell am startservice -a start \ 13 $ adb shell am startservice -a stop \ 17 $ adb shell am startservice -a change \
|