Home
last modified time | relevance | path

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

12345

/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp108 AssetManager* am = (AssetManager*)env->GetIntField(obj, gAssetManagerOffsets.mObject); in assetManagerForJavaObject() local
109 if (am != NULL) { in assetManagerForJavaObject()
110 return am; in assetManagerForJavaObject()
119 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openAsset() local
120 if (am == NULL) { in android_content_AssetManager_openAsset()
124 ALOGV("openAsset in %p (Java object %p)\n", am, clazz); in android_content_AssetManager_openAsset()
137 Asset* a = am->open(fileName8.c_str(), (Asset::AccessMode)mode); in android_content_AssetManager_openAsset()
184 AssetManager* am = assetManagerForJavaObject(env, clazz); in android_content_AssetManager_openAssetFd() local
185 if (am == NULL) { in android_content_AssetManager_openAssetFd()
189 ALOGV("openAssetFd in %p (Java object %p)\n", am, clazz); in android_content_AssetManager_openAssetFd()
[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/cmds/am/
DAndroid.mk7 LOCAL_MODULE := am
11 ALL_PREBUILT += $(TARGET_OUT)/bin/am
12 $(TARGET_OUT)/bin/am : $(LOCAL_PATH)/am | $(ACP)
16 files_noticed := bin/am
Dam1 # Script to start "am" on the device, which has a very rudimentary
5 export CLASSPATH=$base/framework/am.jar
6 exec app_process $base/bin com.android.commands.am.Am "$@"
/frameworks/base/core/java/android/app/
DInstrumentation.java624 ActivityMonitor am = new ActivityMonitor(filter, result, block); in addMonitor() local
625 addMonitor(am); in addMonitor()
626 return am; in addMonitor()
647 ActivityMonitor am = new ActivityMonitor(cls, result, block); in addMonitor() local
648 addMonitor(am); in addMonitor()
649 return am; in addMonitor()
1085 final ActivityMonitor am = mActivityMonitors.get(i); in callActivityOnCreate() local
1086 am.match(activity, activity, activity.getIntent()); in callActivityOnCreate()
1115 final ActivityMonitor am = mActivityMonitors.get(i); in callActivityOnDestroy() local
1116 am.match(activity, activity, activity.getIntent()); in callActivityOnDestroy()
[all …]
/frameworks/av/media/libmediaplayerservice/
DActivityManager.cpp36 sp<IBinder> am = sm->getService(String16("activity")); in openContentProviderFile() local
37 if (am != NULL) { in openContentProviderFile()
41 status_t ret = am->transact(OPEN_CONTENT_URI_TRANSACTION, data, &reply); in openContentProviderFile()
/frameworks/native/opengl/libagl/
Darray.cpp1149 array_machine_t& am = c->arrays; in validate_arrays() local
1150 am.vertex.fetch = fetchNop; in validate_arrays()
1151 am.normal.fetch = currentNormal; in validate_arrays()
1152 am.color.fetch = currentColor; in validate_arrays()
1154 if (am.vertex.enable) { in validate_arrays()
1155 am.vertex.resolve(); in validate_arrays()
1156 if (am.vertex.bo || am.vertex.pointer) { in validate_arrays()
1157 am.vertex.fetch = vertex_fct[am.vertex.size-2][am.vertex.type & 0xF]; in validate_arrays()
1161 if (am.normal.enable) { in validate_arrays()
1162 am.normal.resolve(); in validate_arrays()
[all …]
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java158 IActivityManager am = ActivityManagerNative.getDefault(); in setLocaleData() local
159 Configuration config = am.getConfiguration(); in setLocaleData()
164 am.updateConfiguration(config); in setLocaleData()
175 AudioManager am = new AudioManager(mContext); in applyAudioSettings() local
176 am.reloadAudioSettings(); in applyAudioSettings()
/frameworks/base/core/java/android/content/
DBroadcastReceiver.java405 public void sendFinished(IActivityManager am) { in sendFinished() argument
417 am.finishReceiver(mToken, mResultCode, mResultData, mResultExtras, in sendFinished()
422 am.finishReceiver(mToken, 0, null, null, false); in sendFinished()
513 IActivityManager am = ActivityManagerNative.getDefault(); in peekService() local
517 binder = am.peekService(service, service.resolveTypeIfNeeded( in peekService()
/frameworks/base/docs/html/tools/testing/
Dtesting_otheride.jd327 shell on your device or emulator, and then in the shell run the <code>am instrument</code>
328 command. You control <code>am</code> and your tests with command-line flags.
331 As a shortcut, you can start an <code>adb</code> shell, call <code>am instrument</code>, and
336 To run a test with <code>am instrument</code>:
348 $ adb shell am instrument -w &lt;test_package_name&gt;/&lt;runner_class&gt;
364 This operation starts an <code>adb</code> shell, then runs <code>am instrument</code>
367 <code>am instrument</code>. These flags are described in the next section.
369 <h2 id="AMSyntax">Using the am instrument Command</h2>
371 The general syntax of the <code>am instrument</code> command is:
374 am instrument [flags] &lt;test_package&gt;/&lt;runner_class&gt;
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentTasksLoader.java97 final ActivityManager am = (ActivityManager) in RecentTasksLoader() local
161 final ActivityManager am = (ActivityManager) in loadThumbnailAndIcon() local
164 ActivityManager.TaskThumbnails thumbs = am.getTaskThumbnails(td.persistentTaskId); in loadThumbnailAndIcon()
247 final ActivityManager am = (ActivityManager) in loadTasksInBackground()
251 am.getRecentTasks(MAX_TASKS, ActivityManager.RECENT_IGNORE_UNAVAILABLE); in loadTasksInBackground()
/frameworks/base/tests/LargeAssetTest/src/com/android/largeassettest/
DLargeAssetTest.java68 AssetManager am = params[0]; in doInBackground() local
70 InputStream is = am.open("million-ints", AssetManager.ACCESS_STREAMING); in doInBackground()
/frameworks/base/docs/html/training/managing-audio/
Daudio-focus.jd60 AudioManager am = mContext.getSystemService(Context.AUDIO_SERVICE);
64 int result = am.requestAudioFocus(afChangeListener,
71 am.unregisterMediaButtonEventReceiver(RemoteControlReceiver);
84 am.abandonAudioFocus(afChangeListener);
95 int result = am.requestAudioFocus(afChangeListener,
149 am.unregisterMediaButtonEventReceiver(RemoteControlReceiver);
150 am.abandonAudioFocus(afChangeListener);
/frameworks/base/core/java/com/android/internal/app/
DLocalePicker.java218 IActivityManager am = ActivityManagerNative.getDefault(); in updateLocale() local
219 Configuration config = am.getConfiguration(); in updateLocale()
226 am.updateConfiguration(config); in updateLocale()
/frameworks/base/core/java/com/google/android/mms/util/
DSqliteWrapper.java46 ActivityManager am = (ActivityManager) in isLowMemory() local
49 am.getMemoryInfo(outInfo); in isLowMemory()
/frameworks/base/services/java/com/android/server/am/
DThumbnailHolder.java17 package com.android.server.am;
DAppErrorResult.java17 package com.android.server.am;
DPendingThumbnailsRecord.java17 package com.android.server.am;
DTaskAccessInfo.java17 package com.android.server.am;
DActivityResult.java17 package com.android.server.am;
/frameworks/base/policy/src/com/android/internal/policy/impl/
DRecentApplicationsDialog.java204 final ActivityManager am = (ActivityManager) in switchTo() local
206 am.moveTaskToFront(tag.info.id, ActivityManager.MOVE_TASK_WITH_HOME); in switchTo()
259 final ActivityManager am = (ActivityManager) in reloadButtons() local
262 am.getRecentTasks(MAX_RECENT_TASKS, ActivityManager.RECENT_IGNORE_UNAVAILABLE); in reloadButtons()
/frameworks/opt/calendar/
DREADME5 adb shell am instrument -w com.android.calendarcommon.tests/android.test.InstrumentationTestRunner
/frameworks/base/cmds/svc/
Dsvc1 # Script to start "am" on the device, which has a very rudimentary

12345