/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageHelperTests.java | 164 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/ |
D | AudioMixerOps.h | 49 TO MixMul(TI value, TV volume); 52 inline int32_t MixMul<int32_t, int16_t, int16_t>(int16_t value, int16_t volume) { 53 return value * volume; 57 inline int32_t MixMul<int32_t, int32_t, int16_t>(int32_t value, int16_t volume) { 58 return (value >> 12) * volume; 62 inline int32_t MixMul<int32_t, int16_t, int32_t>(int16_t value, int32_t volume) { 63 return value * (volume >> 16); 67 inline int32_t MixMul<int32_t, int32_t, int32_t>(int32_t value, int32_t volume) { 68 return (value >> 12) * (volume >> 16); 72 inline float MixMul<float, float, int16_t>(float value, int16_t volume) { [all …]
|
/frameworks/rs/tests/java_api/VrDemo/src/com/example/android/rs/vr/engine/ |
D | vr.rscript | 96 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 …]
|
D | bricked.rscript | 24 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/ |
D | MtpStorage.java | 37 public MtpStorage(StorageVolume volume, int storageId) { in MtpStorage() argument 39 mPath = volume.getPath(); in MtpStorage() 40 mDescription = volume.getDescription(null); in MtpStorage() 41 mRemovable = volume.isRemovable(); in MtpStorage() 42 mMaxFileSize = volume.getMaxFileSize(); in MtpStorage() 43 mVolumeName = volume.getMediaStoreVolumeName(); in MtpStorage()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 93 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/ |
D | RemoteDisplay.java | 122 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/ |
D | VolumeShaper.h | 198 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 …]
|
/frameworks/av/media/libaudioclient/tests/ |
D | track_test_output_v1.0_ref_walleye.txt | 5 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/SettingsLib/src/com/android/settingslib/deviceinfo/ |
D | StorageManagerVolumeProvider.java | 53 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/ |
D | VolumeControlAction.java | 58 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/packages/ExternalStorageProvider/src/com/android/externalstorage/ |
D | ExternalStorageProvider.java | 169 for (VolumeInfo volume : volumes) { in updateVolumesLocked() 170 if (!volume.isMountedReadable() || volume.getMountUserId() != userId) continue; in updateVolumesLocked() 175 if (volume.getType() == VolumeInfo.TYPE_EMULATED) { in updateVolumesLocked() 178 if (DEBUG) Log.d(TAG, "Found primary volume: " + volume); in updateVolumesLocked() 181 if (volume.isPrimaryEmulatedForUser(userId)) { in updateVolumesLocked() 198 final VolumeInfo privateVol = mStorageManager.findPrivateForEmulated(volume); in updateVolumesLocked() 202 } else if (volume.getType() == VolumeInfo.TYPE_PUBLIC in updateVolumesLocked() 203 || volume.getType() == VolumeInfo.TYPE_STUB) { in updateVolumesLocked() 204 rootId = volume.getFsUuid(); in updateVolumesLocked() 205 title = mStorageManager.getBestVolumeDescription(volume); in updateVolumesLocked() [all …]
|
/frameworks/base/media/java/android/media/ |
D | RemoteDisplayState.java | 110 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()
|
D | MediaRouterClientState.java | 93 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()
|
D | IMediaRouterService.aidl | 44 void requestSetVolume(IMediaRouterClient client, String routeId, int volume); in requestSetVolume() argument 58 void setRouteVolumeWithRouter2(IMediaRouter2 router, in MediaRoute2Info route, int volume); in setRouteVolumeWithRouter2() argument 67 void setSessionVolumeWithRouter2(IMediaRouter2 router, String sessionId, int volume); in setSessionVolumeWithRouter2() argument 75 in MediaRoute2Info route, int volume); in setRouteVolumeWithManager() argument 86 String sessionId, int volume); in setSessionVolumeWithManager() argument
|
D | Ringtone.java | 179 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()
|
D | IRingtonePlayer.aidl | 31 … 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
|
/frameworks/av/media/libaudioprocessing/include/media/ |
D | AudioResampler.h | 147 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/ |
D | IDeviceVolume.cpp | 49 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/ |
D | HdmiAudioSystemClient.java | 91 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/packages/CarSystemUI/src/com/android/systemui/car/volume/ |
D | CarVolumeDialogComponent.java | 17 package com.android.systemui.car.volume; 24 import com.android.systemui.volume.VolumeDialogComponent; 25 import com.android.systemui.volume.VolumeDialogControllerImpl;
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | SystemMediaRoute2Provider.java | 213 public void setRouteVolume(long requestId, String routeId, int volume) { in setRouteVolume() argument 217 mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, volume, 0); in setRouteVolume() 221 public void setSessionVolume(long requestId, String sessionId, int volume) { in setSessionVolume() argument 393 int volume = mAudioManager.getStreamVolume(AudioManager.STREAM_MUSIC); in updateVolume() local 395 if (mDefaultRoute.getVolume() != volume) { in updateVolume() 397 .setVolume(volume) in updateVolume() 401 if (mBtRouteProvider != null && mBtRouteProvider.updateVolumeForDevices(devices, volume)) { in updateVolume() 404 if (mDeviceVolume != volume) { in updateVolume() 405 mDeviceVolume = volume; in updateVolume() 407 .setVolume(volume) in updateVolume()
|
/frameworks/base/media/tests/MediaRouter/src/com/android/mediaroutertest/ |
D | StubMediaRoute2ProviderService.java | 191 public void onSetRouteVolume(long requestId, String routeId, int volume) { in onSetRouteVolume() argument 194 proxy.onSetRouteVolume(routeId, volume, requestId); in onSetRouteVolume() 202 volume = Math.max(0, Math.min(volume, route.getVolumeMax())); in onSetRouteVolume() 204 .setVolume(volume) in onSetRouteVolume() 210 public void onSetSessionVolume(long requestId, String sessionId, int volume) { in onSetSessionVolume() argument 215 volume = Math.max(0, Math.min(volume, sessionInfo.getVolumeMax())); in onSetSessionVolume() 217 .setVolume(volume) in onSetSessionVolume() 392 public void onSetRouteVolume(String routeId, int volume, long requestId) {} in onSetRouteVolume() argument
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | AppCollector.java | 61 public AppCollector(Context context, @NonNull VolumeInfo volume) { in AppCollector() argument 62 Objects.requireNonNull(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/ |
D | DeviceHalLocal.cpp | 48 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()
|