Home
last modified time | relevance | path

Searched refs:volume (Results 1 – 25 of 176) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java164 String volume = null; in testResolveInstallVolumeInternal_SystemApp() local
165 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
167 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
171 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
173 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
177 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
179 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
183 volume = PackageHelper.resolveInstallVolume(getContext(), "package.name", in testResolveInstallVolumeInternal_SystemApp()
185 assertEquals(StorageManager.UUID_PRIVATE_INTERNAL, volume); in testResolveInstallVolumeInternal_SystemApp()
240 String volume = null; in testResolveInstallVolumeInternal_3rdParty_existing_not_too_big() local
[all …]
/frameworks/av/media/libaudioprocessing/
DAudioMixerOps.h60 TO MixMul(TI value, TV volume);
63 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) {
64 return value * volume;
68 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) {
69 return (value >> 12) * volume;
73 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) {
74 return value * (volume >> 16);
78 inline int32_t MixMul<int32_t, int32_t, int32_t>(int32_t value, int32_t volume) {
79 return (value >> 12) * (volume >> 16);
83 inline float MixMul<float, float, int16_t>(float value, int16_t volume) {
[all …]
DAudioResamplerFirProcess.h59 int32_t volumeAdjust(int32_t value, int32_t volume) in volumeAdjust() argument
61 return 2 * mulRL(0, value, volume); // Note: only use top 16b in volumeAdjust()
66 float volumeAdjust(float value, float volume) in volumeAdjust() argument
68 return value * volume; in volumeAdjust()
92 inline void volume(TO*& out, TO gain) { in volume() function
94 Accumulator<CHANNELS-1, TO>::volume(out, gain); in volume()
108 inline void volume(TO*& out __unused, TO gain __unused) { in volume() function
217 accum.volume(tmp_out, volumeLR[0]); in ProcessBase()
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/
Dvr.rscript96 rs_allocation volume;
121 short pix = rsGetElementAt_short(volume, ip.x, ip.y, ip.z);
141 // short2 tmps = rsAllocationVLoadX_short2(volume, ip.x + 0, ip.y + 0, ip.z + 0);
143 float v_0_0_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 0, ip.z + 0);
144 float v_0_0_1 = (float) rsGetElementAt_short(volume, ip.x + 1, ip.y + 0, ip.z + 0);
146 float v_0_1_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 1, ip.z + 0);
147 float v_0_1_1 = (float) rsGetElementAt_short(volume, ip.x + 1, ip.y + 1, ip.z + 0);
148 float v_1_0_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 0, ip.z + 1);
149 float v_1_0_1 = (float) rsGetElementAt_short(volume, ip.x + 1, ip.y + 0, ip.z + 1);
150 float v_1_1_0 = (float) rsGetElementAt_short(volume, ip.x + 0, ip.y + 1, ip.z + 1);
[all …]
Dbricked.rscript24 rs_allocation volume;
27 // output a single bit per pixel volume based on opacity
47 if (pz >= rsAllocationGetDimZ(volume)) {
50 if (py >= rsAllocationGetDimY(volume)) {
57 int intensity = 0xFFFF & rsGetElementAt_short(volume, px, py, pz);
102 } else {// edge of volume
149 rsSetElementAt_short(volume, in, x, y, z);
/frameworks/base/media/java/android/mtp/
DMtpStorage.java38 public MtpStorage(StorageVolume volume, int storageId) { in MtpStorage() argument
40 mPath = volume.getInternalPath(); in MtpStorage()
41 mDescription = volume.getDescription(null); in MtpStorage()
42 mRemovable = volume.isRemovable(); in MtpStorage()
43 mMaxFileSize = volume.getMaxFileSize(); in MtpStorage()
44 if (volume.isPrimary()) { in MtpStorage()
47 mVolumeName = volume.getNormalizedUuid(); in MtpStorage()
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
DAppCollectorTest.java93 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testNoApps() local
94 volume.fsUuid = "testuuid"; in testNoApps()
95 AppCollector collector = new AppCollector(mContext, volume); in testNoApps()
103 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testAppOnExternalVolume() local
104 volume.fsUuid = "testuuid"; in testAppOnExternalVolume()
105 AppCollector collector = new AppCollector(mContext, volume); in testAppOnExternalVolume()
113 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testOneValidApp() local
114 volume.fsUuid = "testuuid"; in testOneValidApp()
115 AppCollector collector = new AppCollector(mContext, volume); in testOneValidApp()
130 VolumeInfo volume = new VolumeInfo("testuuid", 0, null, null); in testMultipleUsersOneApp() local
[all …]
/frameworks/base/media/lib/remotedisplay/java/com/android/media/remotedisplay/
DRemoteDisplay.java122 return mMutableInfo.volume; in getVolume()
125 public void setVolume(int volume) { in setVolume() argument
126 if (mMutableInfo.volume != volume) { in setVolume()
127 mMutableInfo.volume = volume; in setVolume()
/frameworks/av/include/media/
DVolumeShaper.h198 T adjustVolume(T volume) const { in adjustVolume() argument
200 const T out = powf(10.f, volume / 10.f); in adjustVolume()
201 VS_LOG("in: %f out: %f", volume, out); in adjustVolume()
202 volume = out; in adjustVolume()
204 return clamp(volume, MIN_LINEAR_VOLUME /* lo */, MAX_LINEAR_VOLUME /* hi */); in adjustVolume()
265 void scaleToStartVolume(T volume) { in scaleToStartVolume() argument
273 const T offset = volume - startVolume; in scaleToStartVolume()
279 const T scale = (volume - endVolume) / (startVolume - endVolume); in scaleToStartVolume()
462 State(T volume, S xOffset) in State() argument
463 : mVolume(volume) in State()
[all …]
DAudioResampler.h147 inline float clampFloatVol(float volume) { in clampFloatVol() argument
148 if (volume > UNITY_GAIN_FLOAT) { in clampFloatVol()
150 } else if (volume >= 0.) { in clampFloatVol()
151 return volume; in clampFloatVol()
/frameworks/av/media/libaudioclient/tests/
Dtrack_test_output_v1.0_ref_walleye.txt5 stream type(3), left - right volume(1.000000, 1.000000)
16 stream type(3), left - right volume(1.000000, 1.000000)
27 stream type(3), left - right volume(1.000000, 1.000000)
38 stream type(3), left - right volume(1.000000, 1.000000)
49 stream type(3), left - right volume(1.000000, 1.000000)
60 stream type(3), left - right volume(1.000000, 1.000000)
71 stream type(3), left - right volume(1.000000, 1.000000)
82 stream type(3), left - right volume(1.000000, 1.000000)
93 stream type(3), left - right volume(1.000000, 1.000000)
104 stream type(3), left - right volume(1.000000, 1.000000)
[all …]
/frameworks/base/packages/ExternalStorageProvider/src/com/android/externalstorage/
DExternalStorageProvider.java157 for (VolumeInfo volume : volumes) { in updateVolumesLocked()
158 if (!volume.isMountedReadable()) continue; in updateVolumesLocked()
163 if (volume.getType() == VolumeInfo.TYPE_EMULATED) { in updateVolumesLocked()
166 if (DEBUG) Log.d(TAG, "Found primary volume: " + volume); in updateVolumesLocked()
169 if (VolumeInfo.ID_EMULATED_INTERNAL.equals(volume.getId())) { in updateVolumesLocked()
186 final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume); in updateVolumesLocked()
190 } else if ((volume.getType() == VolumeInfo.TYPE_PUBLIC in updateVolumesLocked()
191 || volume.getType() == VolumeInfo.TYPE_STUB) in updateVolumesLocked()
192 && volume.getMountUserId() == userId) { in updateVolumesLocked()
193 rootId = volume.getFsUuid(); in updateVolumesLocked()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/deviceinfo/
DStorageManagerVolumeProvider.java53 public long getTotalBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException { in getTotalBytes() argument
54 return stats.getTotalBytes(volume.getFsUuid()); in getTotalBytes()
58 public long getFreeBytes(StorageStatsManager stats, VolumeInfo volume) throws IOException { in getFreeBytes() argument
59 return stats.getFreeBytes(volume.getFsUuid()); in getFreeBytes()
/frameworks/base/services/core/java/com/android/server/hdmi/
DVolumeControlAction.java58 public static int scaleToCecVolume(int volume, int scale) { in scaleToCecVolume() argument
59 return (volume * MAX_VOLUME) / scale; in scaleToCecVolume()
143 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus() local
144 mLastAvrVolume = volume; in handleReportAudioStatus()
147 HdmiLogger.debug("Force volume change[mute:%b, volume=%d]", mute, volume); in handleReportAudioStatus()
148 tv().setAudioStatus(mute, volume); in handleReportAudioStatus()
/frameworks/base/media/java/android/media/
DRemoteDisplayState.java110 public int volume; field in RemoteDisplayState.RemoteDisplayInfo
127 volume = other.volume; in RemoteDisplayInfo()
138 volume = in.readInt(); in RemoteDisplayInfo()
159 dest.writeInt(volume); in writeToParcel()
171 + ", volume=" + volume in toString()
DMediaRouterClientState.java93 public int volume; field in MediaRouterClientState.RouteInfo
119 volume = other.volume; in RouteInfo()
135 volume = in.readInt(); in RouteInfo()
157 dest.writeInt(volume); in writeToParcel()
174 + ", volume=" + volume in toString()
DRingtone.java179 public void setVolume(float volume) { in setVolume() argument
181 if (volume < 0.0f) { volume = 0.0f; } in setVolume()
182 if (volume > 1.0f) { volume = 1.0f; } in setVolume()
183 mVolume = volume; in setVolume()
378 final float volume; in play() local
381 volume = mVolume; in play()
385 volume, looping, mVolumeShaperConfig); in play()
DIRingtonePlayer.aidl31 … oneway void play(IBinder token, in Uri uri, in AudioAttributes aa, float volume, boolean looping); in play() argument
33 float volume, boolean looping, in @nullable VolumeShaper.Configuration volumeShaperConfig); in playWithVolumeShaping() argument
36 oneway void setPlaybackProperties(IBinder token, float volume, boolean looping); in setPlaybackProperties() argument
DVolumeShaper.java722 private static void checkValidVolumeAndThrowException(float volume, boolean log) { in checkValidVolumeAndThrowException() argument
724 if (!(volume <= 0.f) /* handle nan */) { in checkValidVolumeAndThrowException()
728 if (!(volume >= 0.f) || !(volume <= 1.f) /* handle nan */) { in checkValidVolumeAndThrowException()
983 public @NonNull Builder scaleToEndVolume(float volume) { in scaleToEndVolume() argument
986 checkValidVolumeAndThrowException(volume, log); in scaleToEndVolume()
991 final float offset = volume - startVolume; in scaleToEndVolume()
997 final float scale = (volume - startVolume) / (endVolume - startVolume); in scaleToEndVolume()
1017 public @NonNull Builder scaleToStartVolume(float volume) { in scaleToStartVolume() argument
1020 checkValidVolumeAndThrowException(volume, log); in scaleToStartVolume()
1025 final float offset = volume - startVolume; in scaleToStartVolume()
[all …]
/frameworks/av/media/libaudioprocessing/include/media/
DAudioResampler.h147 inline float clampFloatVol(float volume) { in clampFloatVol() argument
148 if (volume > UNITY_GAIN_FLOAT) { in clampFloatVol()
150 } else if (volume >= 0.) { in clampFloatVol()
151 return volume; in clampFloatVol()
/frameworks/wilhelm/src/itf/
DIDeviceVolume.cpp49 static SLresult IDeviceVolume_SetVolume(SLDeviceVolumeItf self, SLuint32 deviceID, SLint32 volume) in IDeviceVolume_SetVolume() argument
64 thiz->mVolume[~deviceID] = volume; in IDeviceVolume_SetVolume()
96 SLint32 volume = thiz->mVolume[~deviceID]; in IDeviceVolume_GetVolume() local
98 *pVolume = volume; in IDeviceVolume_GetVolume()
/frameworks/base/core/java/android/hardware/hdmi/
DHdmiAudioSystemClient.java91 public void sendReportAudioStatusCecCommand(boolean isMuteAdjust, int volume, int maxVolume, in sendReportAudioStatusCecCommand() argument
96 mService.reportAudioStatus(getDeviceType(), volume, maxVolume, isMute); in sendReportAudioStatusCecCommand() local
103 mLastVolume = volume; in sendReportAudioStatusCecCommand()
108 mService.reportAudioStatus(getDeviceType(), volume, maxVolume, isMute); in sendReportAudioStatusCecCommand() local
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java61 public AppCollector(Context context, @NonNull VolumeInfo volume) { in AppCollector() argument
62 Preconditions.checkNotNull(volume); in AppCollector()
65 volume, in AppCollector()
104 BackgroundHandler(Looper looper, @NonNull VolumeInfo volume, in BackgroundHandler() argument
107 mVolume = volume; in BackgroundHandler()
/frameworks/av/media/libaudiohal/impl/
DDeviceHalLocal.cpp48 status_t DeviceHalLocal::setVoiceVolume(float volume) { in setVoiceVolume() argument
49 return mDev->set_voice_volume(mDev, volume); in setVoiceVolume()
52 status_t DeviceHalLocal::setMasterVolume(float volume) { in setMasterVolume() argument
54 return mDev->set_master_volume(mDev, volume); in setMasterVolume()
57 status_t DeviceHalLocal::getMasterVolume(float *volume) { in getMasterVolume() argument
59 return mDev->get_master_volume(mDev, volume); in getMasterVolume()
/frameworks/base/services/core/java/com/android/server/
DDynamicSystemService.java93 for (StorageVolume volume : volumes) { in startInstallation()
94 if (volume.isEmulated()) continue; in startInstallation()
95 if (!volume.isRemovable()) continue; in startInstallation()
96 if (!Environment.MEDIA_MOUNTED.equals(volume.getState())) continue; in startInstallation()
97 File sdCard = volume.getPathFile(); in startInstallation()

12345678