Home
last modified time | relevance | path

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

123456

/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/core/java/android/app/
DInstrumentation.java632 ActivityMonitor am = new ActivityMonitor(filter, result, block); in addMonitor() local
633 addMonitor(am); in addMonitor()
634 return am; in addMonitor()
655 ActivityMonitor am = new ActivityMonitor(cls, result, block); in addMonitor() local
656 addMonitor(am); in addMonitor()
657 return am; in addMonitor()
1093 final ActivityMonitor am = mActivityMonitors.get(i); in callActivityOnCreate() local
1094 am.match(activity, activity, activity.getIntent()); in callActivityOnCreate()
1123 final ActivityMonitor am = mActivityMonitors.get(i); in callActivityOnDestroy() local
1124 am.match(activity, activity, activity.getIntent()); in callActivityOnDestroy()
[all …]
/frameworks/base/cmds/am/
DAndroid.mk7 LOCAL_MODULE := am
11 LOCAL_MODULE := am
12 LOCAL_SRC_FILES := am
Dam7 export CLASSPATH=$base/framework/am.jar
8 exec app_process $base/bin com.android.commands.am.Am "$@"
/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/testing/uiautomator/library/testrunner-src/com/android/uiautomator/core/
DUiAutomationShellWrapper.java47 IActivityManager am = ActivityManagerNative.getDefault(); in setRunAsMonkey() local
48 if (am == null) { in setRunAsMonkey()
53 am.setActivityController(new DummyActivityController()); in setRunAsMonkey()
55 am.setActivityController(null); in setRunAsMonkey()
/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/testing/uiautomator/utils/SleepUtils/
DREADME13 am instrument -w -e command prepare \
17 am instrument -w -e command set_wait \
22 am instrument -w -e command done \
/frameworks/base/core/java/android/content/
DBroadcastReceiver.java407 public void sendFinished(IActivityManager am) { in sendFinished() argument
419 am.finishReceiver(mToken, mResultCode, mResultData, mResultExtras, in sendFinished()
424 am.finishReceiver(mToken, 0, null, null, false); in sendFinished()
520 IActivityManager am = ActivityManagerNative.getDefault(); in peekService() local
524 binder = am.peekService(service, service.resolveTypeIfNeeded( in peekService()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DSettingsHelper.java226 IActivityManager am = ActivityManagerNative.getDefault(); in setLocaleData() local
227 Configuration config = am.getConfiguration(); in setLocaleData()
232 am.updateConfiguration(config); in setLocaleData()
243 AudioManager am = new AudioManager(mContext); in applyAudioSettings() local
244 am.reloadAudioSettings(); in applyAudioSettings()
/frameworks/opt/telephony/
DREADME.txt33 …adb shell am broadcast -a com.android.internal.telephony.dataconnection.action_fail_bringup --ei c…
37 adb shell am broadcast -a com.android.internal.telephony.dataconnection.action_deactivate_all
41 adb shell am broadcast -a com.android.internal.telephony.{x}.action_detached
42 adb shell am broadcast -a com.android.internal.telephony.{x}.action_attached
/frameworks/testing/uiautomator/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
DAlarmImpl.java51 AlarmManager am = (AlarmManager) mContext.getSystemService(Context.ALARM_SERVICE); in setAlarmAndWait() local
55 am.set(AlarmManager.ELAPSED_REALTIME_WAKEUP, atTime, pi); in setAlarmAndWait()
/frameworks/base/tests/MemoryUsage/src/com/android/tests/memoryusage/
DMemoryUsageTest.java222 ActivityManager am = (ActivityManager) getInstrumentation() in reportError() local
224 List<ProcessErrorStateInfo> crashes = am.getProcessesInErrorState(); in reportError()
243 ActivityManager am = (ActivityManager) getInstrumentation() in getPss() local
245 List<RunningAppProcessInfo> apps = am.getRunningAppProcesses(); in getPss()
255 MemoryInfo meminfo = am.getProcessMemoryInfo(pids)[0]; in getPss()
/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/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/packages/DocumentsUI/src/com/android/documentsui/
DDocumentsApplication.java66 final ActivityManager am = (ActivityManager) getSystemService(Context.ACTIVITY_SERVICE); in onCreate() local
67 final int memoryClassBytes = am.getMemoryClass() * 1024 * 1024; in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/recent/
DRecentTasksLoader.java190 final ActivityManager am = (ActivityManager) in loadThumbnailAndIcon() local
193 Bitmap thumbnail = am.getTaskTopThumbnail(td.persistentTaskId); in loadThumbnailAndIcon()
368 … final ActivityManager am = (ActivityManager) mContext.getSystemService(Context.ACTIVITY_SERVICE); in loadFirstTask() local
370 final List<ActivityManager.RecentTaskInfo> recentTasks = am.getRecentTasksForUser( in loadFirstTask()
438 final ActivityManager am = (ActivityManager) in loadTasksInBackground()
442 am.getRecentTasks(MAX_TASKS, ActivityManager.RECENT_IGNORE_UNAVAILABLE); in loadTasksInBackground()
/frameworks/opt/mms/src/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;
/frameworks/base/tests/AppLaunch/src/com/android/tests/applaunch/
DAppLaunch.java233 final AccountManager am = in checkAccountSignIn() local
236 Account[] accounts = am.getAccounts(); in checkAccountSignIn()
286 ActivityManager am = (ActivityManager) getInstrumentation() in reportError() local
288 List<ProcessErrorStateInfo> crashes = am.getProcessesInErrorState(); in reportError()

123456