/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | PowerProfileTest.java | 34 private PowerProfile mProfile; field in PowerProfileTest 38 mProfile = new PowerProfile(InstrumentationRegistry.getContext(), true); in setUp() 43 assertEquals(2, mProfile.getNumCpuClusters()); in testPowerProfile() 44 assertEquals(4, mProfile.getNumCoresInCpuCluster(0)); in testPowerProfile() 45 assertEquals(4, mProfile.getNumCoresInCpuCluster(1)); in testPowerProfile() 46 assertEquals(5.0, mProfile.getAveragePower(PowerProfile.POWER_CPU_SUSPEND)); in testPowerProfile() 47 assertEquals(1.11, mProfile.getAveragePower(PowerProfile.POWER_CPU_IDLE)); in testPowerProfile() 48 assertEquals(2.55, mProfile.getAveragePower(PowerProfile.POWER_CPU_ACTIVE)); in testPowerProfile() 49 assertEquals(2.11, mProfile.getAveragePowerForCpuCluster(0)); in testPowerProfile() 50 assertEquals(2.22, mProfile.getAveragePowerForCpuCluster(1)); in testPowerProfile() [all …]
|
/frameworks/opt/net/voip/src/java/android/net/sip/ |
D | SipProfile.java | 81 private SipProfile mProfile = new SipProfile(); field in SipProfile.Builder 101 mProfile = (SipProfile) profile.clone(); in Builder() 105 mProfile.mAddress = null; in Builder() 110 mProfile.mPort = profile.getPort(); in Builder() 129 mProfile.mDomain = mUri.getHost(); in Builder() 148 mProfile.mDomain = serverDomain; in Builder() 164 mProfile.mAuthUserName = name; in setAuthUserName() 175 mProfile.mProfileName = name; in setProfileName() 201 mProfile.mPort = port; in setPort() 223 mProfile.mProtocol = protocol; in setProtocol() [all …]
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | A2dpProfileTest.java | 62 private A2dpProfile mProfile; field in A2dpProfileTest 69 mProfile = new A2dpProfile(mContext, mDeviceManager, mProfileManager); in setUp() 78 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isTrue(); in supportsHighQualityAudio() 82 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isFalse(); in supportsHighQualityAudio() 86 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isFalse(); in supportsHighQualityAudio() 93 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue(); in isHighQualityAudioEnabled() 97 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isFalse(); in isHighQualityAudioEnabled() 110 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isFalse(); in isHighQualityAudioEnabled() 114 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue(); in isHighQualityAudioEnabled() 123 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue(); in isHighQualityAudioEnabled() [all …]
|
D | HeadsetProfileTest.java | 41 private HeadsetProfile mProfile; field in HeadsetProfileTest 52 mProfile = new HeadsetProfile(context, mDeviceManager, mProfileManager); in setUp() 60 assertThat(mProfile.isAudioOn()).isTrue(); in bluetoothProfile_shouldReturnTheAudioStatusFromBlueToothHeadsetService() 63 assertThat(mProfile.isAudioOn()).isFalse(); in bluetoothProfile_shouldReturnTheAudioStatusFromBlueToothHeadsetService() 70 assertThat(mProfile.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState() 75 assertThat(mProfile.getAudioState(mBluetoothDevice)). in testHeadsetProfile_shouldReturnAudioState()
|
D | SapProfileTest.java | 54 private SapProfile mProfile; field in SapProfileTest 61 mProfile = new SapProfile(RuntimeEnvironment.application, mDeviceManager, mProfileManager); in setUp() 68 mProfile.connect(mBluetoothDevice); in connect_shouldConnectBluetoothSap() 74 mProfile.disconnect(mBluetoothDevice); in disconnect_shouldDisconnectBluetoothSap() 82 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | HfpClientProfileTest.java | 54 private HfpClientProfile mProfile; field in HfpClientProfileTest 61 mProfile = new HfpClientProfile(RuntimeEnvironment.application, in setUp() 69 mProfile.connect(mBluetoothDevice); in connect_shouldConnectBluetoothHeadsetClient() 75 mProfile.disconnect(mBluetoothDevice); in disconnect_shouldDisconnectBluetoothHeadsetClient() 83 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | MapClientProfileTest.java | 54 private MapClientProfile mProfile; field in MapClientProfileTest 61 mProfile = new MapClientProfile(RuntimeEnvironment.application, in setUp() 69 mProfile.connect(mBluetoothDevice); in connect_shouldConnectBluetoothMapClient() 75 mProfile.disconnect(mBluetoothDevice); in disconnect_shouldDisconnectBluetoothMapClient() 83 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | PbapClientProfileTest.java | 54 private PbapClientProfile mProfile; field in PbapClientProfileTest 61 mProfile = new PbapClientProfile(RuntimeEnvironment.application, in setUp() 69 mProfile.connect(mBluetoothDevice); in connect_shouldConnectBluetoothPbapClient() 75 mProfile.disconnect(mBluetoothDevice); in disconnect_shouldDisconnectBluetoothPbapClient() 83 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | HidDeviceProfileTest.java | 54 private HidDeviceProfile mProfile; field in HidDeviceProfileTest 61 mProfile = new HidDeviceProfile(RuntimeEnvironment.application, in setUp() 69 assertThat(mProfile.connect(mBluetoothDevice)).isFalse(); in connect_shouldReturnFalse() 74 mProfile.disconnect(mBluetoothDevice); in disconnect_shouldDisconnectBluetoothHidDevice() 82 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | A2dpSinkProfileTest.java | 54 private A2dpSinkProfile mProfile; field in A2dpSinkProfileTest 61 mProfile = new A2dpSinkProfile(RuntimeEnvironment.application, in setUp() 69 mProfile.connect(mBluetoothDevice); in connect_shouldConnectBluetoothA2dpSink() 75 mProfile.disconnect(mBluetoothDevice); in disconnect_shouldDisconnectBluetoothA2dpSink() 83 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioInputDescriptor.cpp | 33 : mProfile(profile) in AudioInputDescriptor() 46 if (mProfile == 0) { in getModuleHandle() 49 return mProfile->getModuleHandle(); in getModuleHandle() 65 ALOG_ASSERT(mProfile != 0, in toAudioPortConfig() 85 ALOG_ASSERT(mProfile != 0, "toAudioPort() called on input with null profile %d", mIoHandle); in toAudioPort() 87 mProfile->toAudioPort(port); in toAudioPort() 216 mDevice->toString().c_str(), mProfile.get(), mProfile->getName().string()); in open() 220 status_t status = mClientInterface->openInput(mProfile->getModuleHandle(), in open() 240 mProfile->curOpenCount++; in open() 249 if (!mProfile->canStartNewIo()) { in start() [all …]
|
D | AudioOutputDescriptor.cpp | 257 mProfile(profile), mIoHandle(AUDIO_IO_HANDLE_NONE), mLatency(0), in SwAudioOutputDescriptor() 304 return mProfile->getSupportedDevices(); in supportedDevices() 329 return mProfile->deviceSupportsEncodedFormats(device); in deviceSupportsEncodedFormats() 470 if ((mProfile->getFlags() & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) && in open() 486 mDevices.toString().c_str(), mProfile.get(), mProfile->getName().string()); in open() 488 status_t status = mClientInterface->openOutput(mProfile->getModuleHandle(), in open() 508 mProfile->curOpenCount++; in open() 529 if (!mProfile->canStartNewIo()) { in start() 532 mProfile->curActiveCount++; in start() 546 LOG_ALWAYS_FATAL_IF(mProfile->curActiveCount < 1, in stop() [all …]
|
/frameworks/base/core/java/com/android/internal/os/ |
D | CpuPowerCalculator.java | 26 private final PowerProfile mProfile; field in CpuPowerCalculator 29 mProfile = profile; in CpuPowerCalculator() 36 final int numClusters = mProfile.getNumCpuClusters(); in calculateApp() 40 final int speedsForCluster = mProfile.getNumSpeedStepsInCpuCluster(cluster); in calculateApp() 44 mProfile.getAveragePowerForCpuCore(cluster, speed); in calculateApp() 53 cpuPowerMaUs += u.getCpuActiveTime() * 1000 * mProfile.getAveragePower( in calculateApp() 60 cpuClusterTimes[i] * 1000 * mProfile.getAveragePowerForCpuCluster(i); in calculateApp()
|
/frameworks/av/include/media/ |
D | MediaCodecInfo.h | 47 uint32_t mProfile; member 50 return mProfile < o.mProfile || (mProfile == o.mProfile && mLevel < o.mLevel);
|
/frameworks/av/media/libmedia/include/media/ |
D | MediaCodecInfo.h | 47 uint32_t mProfile; member 50 return mProfile < o.mProfile || (mProfile == o.mProfile && mLevel < o.mLevel);
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/ |
D | AudioInputDescriptor.h | 51 return mProfile != nullptr ? mProfile->getSupportedDevices() : DeviceVector(); } in supportedDevices() 57 const sp<IOProfile> mProfile; // I/O profile this output derives from variable 61 virtual sp<AudioPort> getAudioPort() const { return mProfile; } in getAudioPort()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/ |
D | MediaEncoderFilter.java | 100 private CamcorderProfile mProfile = null; field in MediaEncoderFilter 236 if (mProfile != null) { in updateMediaRecorderParams() 237 mMediaRecorder.setProfile(mProfile); in updateMediaRecorderParams() 238 mFps = mProfile.videoFrameRate; in updateMediaRecorderParams() 300 if (mProfile != null && !widthHeightSpecified) { in startRecording() 301 width = mProfile.videoFrameWidth; in startRecording() 302 height = mProfile.videoFrameHeight; in startRecording()
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVp8Enc.cpp | 28 : C2SoftVpxEnc(name, id, intfImpl), mDCTPartitions(0), mProfile(1) {} in C2SoftVp8Enc() 35 switch (mProfile) { in setCodecSpecificConfiguration()
|
D | C2SoftVp9Enc.cpp | 29 mProfile(1), in C2SoftVp9Enc() 40 switch (mProfile) { in setCodecSpecificConfiguration()
|
D | C2SoftVp8Enc.h | 53 int32_t mProfile; member
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 263 final LocalBluetoothProfile mProfile; field in LocalBluetoothProfileManager.StateChangedHandler 266 mProfile = profile; in StateChangedHandler() 283 Log.i(TAG, "Failed to connect " + mProfile + " device"); in onReceiveInternal() 287 mProfile instanceof HearingAidProfile && in onReceiveInternal() 297 cachedDevice.onProfileStateChanged(mProfile, newState); in onReceiveInternal() 304 mProfile.getProfileId()); in onReceiveInternal() 326 cachedDevice.onProfileStateChanged(mProfile, BluetoothProfile.STATE_CONNECTED); in onReceiveInternal() 344 PanProfile panProfile = (PanProfile) mProfile; in onReceive()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 72 private final VpnProfile mProfile; field in LockdownVpnTracker 95 mProfile = Preconditions.checkNotNull(profile); in LockdownVpnTracker() 155 if (mProfile.isValidLockdownProfile()) { in handleStateChangedLocked() 164 mVpn.startLegacyVpnPrivileged(mProfile, KeyStore.getInstance(), egressProp); in handleStateChangedLocked()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 737 … mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) ? asString_AACObject(pl.mProfile) : in dumpCodecDetails() 738 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) ? asString_MPEG2Profile(pl.mProfile) : in dumpCodecDetails() 739 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_H263) ? asString_H263Profile(pl.mProfile) : in dumpCodecDetails() 740 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG4) ? asString_MPEG4Profile(pl.mProfile) : in dumpCodecDetails() 741 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_AVC) ? asString_AVCProfile(pl.mProfile) : in dumpCodecDetails() 742 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_VP8) ? asString_VP8Profile(pl.mProfile) : in dumpCodecDetails() 743 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_HEVC) ? asString_HEVCProfile(pl.mProfile) : in dumpCodecDetails() 744 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_VP9) ? asString_VP9Profile(pl.mProfile) : in dumpCodecDetails() 745 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_AV1) ? asString_AV1Profile(pl.mProfile) :"??"; in dumpCodecDetails() 758 pl.mProfile, pl.mLevel, niceProfile, niceLevel)); in dumpCodecDetails()
|
/frameworks/wilhelm/src/android/ |
D | VideoCodec_to_android.cpp | 99 if (profileLevel.mProfile == XA_VIDEOPROFILE_AVC_BASELINE) { in android_videoCodec_expose() 189 mProfileLevels.itemAt(plIndex).mProfile); in android_videoCodec_getProfileLevelCombination()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhone.java | 66 private SipProfile mProfile; field in SipPhone 77 mProfile = profile; in SipPhone() 86 return mProfile.getUriString().equals(that.mProfile.getUriString()); in equals() 90 return mProfile.getUriString(); in getSipUri() 126 if (localUri.equals(mProfile.getUriString())) { in takeIncomingCall() 499 String replaceStr = Pattern.quote(mProfile.getUserName() + "@"); in dial() 500 calleeSipUri = mProfile.getUriString().replaceFirst(replaceStr, in dial() 880 mSipAudioCall = mSipManager.makeAudioCall(mProfile, mPeer, null, in dial()
|