Searched defs:volume (Results 1 - 25 of 37) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/ringtone/
H A DToneGeneratorFactory.java28 * @param volume the volume at which to play tones.
31 public ToneGenerator newInCallToneGenerator(int stream, int volume) { argument
32 return new ToneGenerator(stream, volume);
H A DInCallTonePlayer.java91 * tone is played at a high priority volume and through STREAM_VOICE_CALL since it's
109 toneGenerator = mToneGeneratorFactory.newInCallToneGenerator(info.stream, info.volume);
145 public final int volume; field in class:InCallTonePlayer.ToneGeneratorInfo
149 public ToneGeneratorInfo(int toneGeneratorType, int volume, int toneLengthMillis, int stream) { argument
151 this.volume = volume;
163 + ", volume="
164 + volume
/packages/apps/Settings/src/com/android/settings/deviceinfo/
H A DStorageVolumePreference.java51 public StorageVolumePreference(Context context, VolumeInfo volume, int color, long totalBytes) { argument
55 mVolume = volume;
60 setKey(volume.getId());
61 setTitle(mStorageManager.getBestVolumeDescription(volume));
64 if (VolumeInfo.ID_PRIVATE_INTERNAL.equals(volume.getId())) {
70 if (volume.isMountedReadable()) {
72 final File path = volume.getPath();
92 setSummary(volume.getStateDescription());
100 if (volume.getType() == VolumeInfo.TYPE_PUBLIC
101 && volume
[all...]
H A DStorageSettings.java262 // Picked a normal volume
314 // Picked a missing private volume
331 public MountTask(Context context, VolumeInfo volume) { argument
334 mVolumeId = volume.getId();
335 mDescription = mStorageManager.getBestVolumeDescription(volume);
367 public UnmountTask(Context context, VolumeInfo volume) { argument
370 mVolumeId = volume.getId();
371 mDescription = mStorageManager.getBestVolumeDescription(volume);
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaScannerReceiver.java62 // scan whenever any volume is mounted
72 private void scan(Context context, String volume) { argument
74 args.putString("volume", volume);
H A DMtpService.java64 for (StorageVolume volume : mVolumeMap.values()) {
65 addStorageLocked(volume);
78 StorageVolume volume = mVolumeMap.remove(path);
79 if (volume != null) {
80 removeStorageLocked(volume);
251 StorageVolume volume = mVolumes[i];
252 if (volume.getPath().equals(path)) {
253 mVolumeMap.put(path, volume);
256 if (volume.isPrimary() || !mPtpMode) {
257 addStorageLocked(volume);
265 addStorageLocked(StorageVolume volume) argument
285 removeStorageLocked(StorageVolume volume) argument
[all...]
/packages/apps/Camera2/src/com/android/camera/
H A DSoundPlayer.java58 public void play(int resourceId, float volume) { argument
63 mSoundPool.play(soundId, volume, volume, 0 /* priority */, 0 /* loop */, 1 /* rate */);
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
H A DVolumeSizesLoader.java39 VolumeInfo volume) {
43 mVolume = volume;
35 VolumeSizesLoader( Context context, StorageVolumeProvider volumeProvider, StorageStatsManager stats, VolumeInfo volume) argument
H A DStorageSummaryDonutPreferenceController.java83 * @param used Total number of used bytes on the summarized volume.
84 * @param total Total number of bytes on the summarized volume.
93 * Updates the state of the donut preference for the next update using volume to summarize.
94 * @param volume VolumeInfo to use to populate the informayion.
96 public void updateSizes(StorageVolumeProvider svp, VolumeInfo volume) { argument
97 final long sharedDataSize = volume.getPath().getTotalSpace();
104 final long usedBytes = totalSize - volume.getPath().getFreeSpace();
H A DStorageItemPreferenceController.java98 Context context, Fragment hostFragment, VolumeInfo volume, StorageVolumeProvider svp) {
101 mVolume = volume;
136 // Because we are likely constructed with a null volume, this is theoretically
171 * Sets the storage volume to use for when handling taps.
173 public void setVolume(VolumeInfo volume) { argument
174 mVolume = volume;
181 // If we don't have a shared volume for our internal storage (or the shared volume isn't
97 StorageItemPreferenceController( Context context, Fragment hostFragment, VolumeInfo volume, StorageVolumeProvider svp) argument
/packages/apps/TV/src/com/android/tv/tuner/exoplayer/ac3/
H A DAudioTrackWrapper.java102 public void setVolume(float volume) { argument
106 mAudioTrack.setVolume(volume);
/packages/services/Car/service/src/com/android/car/
H A DVolumeUtils.java198 * Returns the gain which, when applied to an a stream with volume
199 * actualVolIndex, will make the output volume equivalent to a stream with a gain of
200 * 1.0 playing on a stream with volume desiredVolIndex.
202 * Computing this is non-trivial because the gain is applied on a linear scale while the volume
220 int volume = (int) ((float) volIndex / maxIndex * 100.0f);
221 return logToLinear(volumeToDecibels(volume));
225 * volume is in the range [0, 100].
227 private static float volumeToDecibels(int volume) { argument
228 return (100 - volume) * DB_PER_STEP;
H A DCarVolumeControllerFactory.java56 // Case 1: Car Audio Module does not support volume controls
89 * support volume controls.
184 * The car volume controller to use when the car audio modules supports volume controls.
187 * handle per context volume change properly.
190 * volume internally. If we only support single channel, then we only send the volume change
191 * event when that stream is in focus; Otherwise, we need to adjust the stream volume either on
195 * Per context volume should be persisted, so the volumes can stay the same across boots.
208 // within 5 seconds after a UI invisible volume chang
261 writeVolumeToSettings(int carContext, int volume) argument
532 onVolumeChange(int carStream, int volume, int volumeState) argument
566 onVolumeLimitChange(int streamNumber, int volume) argument
[all...]
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/volume/
H A DVolumeAdapter.java16 package com.google.android.car.kitchensink.volume;
28 import com.google.android.car.kitchensink.volume.VolumeTestFragment.VolumeInfo;
H A DVolumeTestFragment.java16 package com.google.android.car.kitchensink.volume;
211 public void setStreamVolume(int logicalStream, int volume) { argument
217 mCarAudioManager.setStreamVolume(logicalStream, volume, 0);
222 Log.d(TAG, "Set stream " + logicalStream + " volume " + volume);
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dp/
H A DA2dpService.java247 /* Absolute volume implementation */
256 public void setAvrcpAbsoluteVolume(int volume) { argument
257 mAvrcp.setAbsoluteVolume(volume);
418 public void setAvrcpAbsoluteVolume(int volume) { argument
421 service.setAvrcpAbsoluteVolume(volume);
/packages/apps/DeskClock/src/com/android/deskclock/
H A DAsyncRingtonePlayer.java36 * adjust the volume of the stream and specify that the stream should be looped.</li>
41 * clients to adjust the volume of the stream and specify that the stream should be looped but
89 /** Schedules an adjustment of the playback volume 50ms in the future. */
91 LOGGER.v("Adjusting volume.");
93 // Ensure we never have more than one volume adjustment queued.
96 // Queue the next volume adjustment.
197 * @return the scalar volume value that produces a linear increase in volume (in decibels)
207 // Convert the target gain (in decibels) into the corresponding volume scalar.
208 final float volume
577 setRingtoneVolume(float volume) argument
[all...]
/packages/apps/DocumentsUI/src/com/android/documentsui/
H A DOpenExternalDirectoryActivity.java89 // Special directory name representing the full volume
124 final StorageVolume volume = (StorageVolume) storageVolume;
126 volume.getUuid(), directoryName) == PERMISSION_NEVER_ASK) {
135 if (!showFragment(this, userId, volume, directoryName)) {
151 * Validates the given path (volume + directory) and display the appropriate dialog asking the
157 Log.d(TAG, "showFragment() for volume " + storageVolume.dump() + ", directory "
163 if (DEBUG) Log.d(TAG, "root access requested on primary volume");
172 Log.e(TAG, "Could not get canonical file for volume " + storageVolume.dump()
197 // Gets volume label and converted path.
204 for (VolumeInfo volume
285 isRightVolume(VolumeInfo volume, String root, int userId) argument
[all...]
/packages/apps/Messaging/src/com/android/messaging/util/
H A DNotificationPlayer.java39 * the addition of a volume parameter. Hopefully the framework will adapt AsyncPlayer to support
52 float volume; field in class:NotificationPlayer.Command
93 player.setVolume(mCmd.volume, mCmd.volume);
274 * @param volume The volume at which to play this sound, as a fraction of the system volume for
276 * volume with no attenuation.
278 public void play(final Uri uri, final boolean looping, final int stream, final float volume) { argument
285 cmd.volume
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/
H A DNativeInterface.java45 static native boolean setVolumeNative(byte[] address, int volumeType, int volume); argument
305 private void onVolumeChange(int type, int volume, byte[] address) { argument
308 event.valueInt2 = volume;
314 // Ignore volume changes from the Phone. This is to avoid the scenario where we may have two
/packages/apps/TV/src/com/android/tv/tuner/tvinput/
H A DTunerSession.java129 public void onSetStreamVolume(float volume) { argument
130 mSessionWorker.setStreamVolume(volume);
/packages/apps/TV/tests/input/src/com/android/tv/testinput/
H A DTestTvInputService.java205 public void onSetStreamVolume(float volume) { argument
/packages/apps/Bluetooth/jni/
H A Dcom_android_bluetooth_hfp.cpp144 static void volume_control_callback(bthf_volume_type_t type, int volume, argument
157 (jint)type, (jint)volume, addr.get());
590 jint volume, jbyteArray address) {
601 (bthf_volume_type_t)volume_type, volume, (bt_bdaddr_t*)addr);
603 ALOGE("FAILED to control volume, status: %d", status);
589 setVolumeNative(JNIEnv* env, jobject object, jint volume_type, jint volume, jbyteArray address) argument
H A Dcom_android_bluetooth_hfpclient.cpp254 bthf_client_volume_type_t type, int volume) {
261 (jint)volume, addr.get());
553 jint volume_type, jint volume) {
563 (const bt_bdaddr_t*)addr, (bthf_client_volume_type_t)volume_type, volume);
565 ALOGE("FAILED to control volume, status: %d", status);
253 volume_change_cb(const bt_bdaddr_t* bd_addr, bthf_client_volume_type_t type, int volume) argument
552 setVolumeNative(JNIEnv* env, jobject object, jbyteArray address, jint volume_type, jint volume) argument
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
H A DHeadsetPhoneState.java210 void setSpeakerVolume(int volume) { argument
211 mSpeakerVolume = volume;
218 void setMicVolume(int volume) { argument
219 mMicVolume = volume;

Completed in 528 milliseconds

12