/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 | 82 private SipProfile mProfile = new SipProfile(); field in SipProfile.Builder 102 mProfile = (SipProfile) profile.clone(); in Builder() 106 mProfile.mAddress = null; in Builder() 111 mProfile.mPort = profile.getPort(); in Builder() 130 mProfile.mDomain = mUri.getHost(); in Builder() 149 mProfile.mDomain = serverDomain; in Builder() 165 mProfile.mAuthUserName = name; in setAuthUserName() 176 mProfile.mProfileName = name; in setProfileName() 202 mProfile.mPort = port; in setPort() 224 mProfile.mProtocol = protocol; in setProtocol() [all …]
|
/frameworks/base/identity/java/android/security/identity/ |
D | AccessControlProfile.java | 55 private AccessControlProfile mProfile; field in AccessControlProfile.Builder 68 mProfile = new AccessControlProfile(); in Builder() 69 mProfile.mAccessControlProfileId = accessControlProfileId; in Builder() 85 mProfile.mUserAuthenticationRequired = userAuthenticationRequired; in setUserAuthenticationRequired() 103 mProfile.mUserAuthenticationTimeout = userAuthenticationTimeoutMillis; in setUserAuthenticationTimeout() 118 mProfile.mReaderCertificate = readerCertificate; in setReaderCertificate() 128 return mProfile; in build()
|
/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() 79 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isTrue(); in supportsHighQualityAudio() 83 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isFalse(); in supportsHighQualityAudio() 87 assertThat(mProfile.supportsHighQualityAudio(mDevice)).isFalse(); in supportsHighQualityAudio() 94 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue(); in isHighQualityAudioEnabled() 98 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isFalse(); in isHighQualityAudioEnabled() 111 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isFalse(); in isHighQualityAudioEnabled() 115 assertThat(mProfile.isHighQualityAudioEnabled(mDevice)).isTrue(); in isHighQualityAudioEnabled() 124 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() 81 assertThat(mProfile.setActiveDevice(null)).isTrue(); in setActiveDevice_returnTrue() 82 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
|
D | HearingAidProfileTest.java | 56 private HearingAidProfile mProfile; field in HearingAidProfileTest 67 mProfile = new HearingAidProfile(context, mDeviceManager, mProfileManager); in setUp() 74 assertThat(mProfile.setActiveDevice(null)).isTrue(); in setActiveDevice_returnTrue() 75 assertThat(mProfile.setActiveDevice(mBluetoothDevice)).isTrue(); in setActiveDevice_returnTrue()
|
D | HfpClientProfileTest.java | 53 private HfpClientProfile mProfile; field in HfpClientProfileTest 60 mProfile = new HfpClientProfile(RuntimeEnvironment.application, in setUp() 70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | HidDeviceProfileTest.java | 53 private HidDeviceProfile mProfile; field in HidDeviceProfileTest 60 mProfile = new HidDeviceProfile(RuntimeEnvironment.application, in setUp() 70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | SapProfileTest.java | 53 private SapProfile mProfile; field in SapProfileTest 60 mProfile = new SapProfile(RuntimeEnvironment.application, mDeviceManager, mProfileManager); in setUp() 69 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | PbapClientProfileTest.java | 53 private PbapClientProfile mProfile; field in PbapClientProfileTest 60 mProfile = new PbapClientProfile(RuntimeEnvironment.application, in setUp() 70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | MapClientProfileTest.java | 53 private MapClientProfile mProfile; field in MapClientProfileTest 60 mProfile = new MapClientProfile(RuntimeEnvironment.application, in setUp() 70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
D | A2dpSinkProfileTest.java | 53 private A2dpSinkProfile mProfile; field in A2dpSinkProfileTest 60 mProfile = new A2dpSinkProfile(RuntimeEnvironment.application, in setUp() 70 assertThat(mProfile.getConnectionStatus(mBluetoothDevice)). in getConnectionStatus_shouldReturnConnectionState()
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioInputDescriptor.cpp | 32 : mProfile(profile) in AudioInputDescriptor() 45 if (mProfile == 0) { in getModuleHandle() 48 return mProfile->getModuleHandle(); in getModuleHandle() 77 ALOG_ASSERT(mProfile != 0, in toAudioPortConfig() 97 ALOG_ASSERT(mProfile != 0, "toAudioPort() called on input with null profile %d", mIoHandle); in toAudioPort() 99 mProfile->toAudioPort(port); in toAudioPort() 228 mDevice->toString().c_str(), mProfile.get(), mProfile->getName().c_str()); in open() 232 status_t status = mClientInterface->openInput(mProfile->getModuleHandle(), in open() 252 mProfile->curOpenCount++; in open() 261 if (!mProfile->canStartNewIo()) { in start() [all …]
|
D | AudioOutputDescriptor.cpp | 275 mProfile(profile), mIoHandle(AUDIO_IO_HANDLE_NONE), mLatency(0), in SwAudioOutputDescriptor() 322 return mProfile->getSupportedDevices(); in supportedDevices() 347 return mProfile->devicesSupportEncodedFormats(deviceTypes); in devicesSupportEncodedFormats() 491 if ((mProfile->getFlags() & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) && in open() 507 mDevices.toString().c_str(), mProfile.get(), mProfile->getName().c_str()); in open() 509 status_t status = mClientInterface->openOutput(mProfile->getModuleHandle(), in open() 527 mProfile->curOpenCount++; in open() 548 if (!mProfile->canStartNewIo()) { in start() 551 mProfile->curActiveCount++; in start() 565 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/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 | 55 return mProfile != nullptr ? mProfile->getSupportedDevices() : DeviceVector(); } in supportedDevices() 61 const sp<IOProfile> mProfile; // I/O profile this output derives from variable 65 return mProfile; in getPolicyAudioPort() 73 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/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | LocalBluetoothProfileManager.java | 264 final LocalBluetoothProfile mProfile; field in LocalBluetoothProfileManager.StateChangedHandler 267 mProfile = profile; in StateChangedHandler() 284 Log.i(TAG, "Failed to connect " + mProfile + " device"); in onReceiveInternal() 288 mProfile instanceof HearingAidProfile && in onReceiveInternal() 298 cachedDevice.onProfileStateChanged(mProfile, newState); in onReceiveInternal() 305 mProfile.getProfileId()); in onReceiveInternal() 327 cachedDevice.onProfileStateChanged(mProfile, BluetoothProfile.STATE_CONNECTED); in onReceiveInternal() 345 PanProfile panProfile = (PanProfile) mProfile; in onReceive()
|
/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()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | LockdownVpnTracker.java | 72 @NonNull private final VpnProfile mProfile; field in LockdownVpnTracker 97 mProfile = Objects.requireNonNull(profile); in LockdownVpnTracker() 157 if (mProfile.isValidLockdownProfile()) { in handleStateChangedLocked() 166 mVpn.startLegacyVpnPrivileged(mProfile, KeyStore.getInstance(), egressProp); in handleStateChangedLocked()
|
/frameworks/av/media/tests/benchmark/MediaBenchmarkTest/src/androidTest/java/com/android/media/benchmark/tests/ |
D | EncoderTest.java | 84 private int mProfile; field in EncoderTest 138 this.mProfile = profile; in EncoderTest() 255 if (mProfile != -1 && mLevel != -1) { in testEncoder() 256 encodeFormat.setInteger(MediaFormat.KEY_PROFILE, mProfile); in testEncoder() 306 mColorFormat, mIFrameInterval, mWidth, mHeight, mProfile, mLevel, in testNativeEncoder()
|
/frameworks/av/cmds/stagefright/ |
D | stagefright.cpp | 736 … mediaType.equalsIgnoreCase(MIMETYPE_AUDIO_AAC) ? asString_AACObject(pl.mProfile) : in dumpCodecDetails() 737 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG2) ? asString_MPEG2Profile(pl.mProfile) : in dumpCodecDetails() 738 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_H263) ? asString_H263Profile(pl.mProfile) : in dumpCodecDetails() 739 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_MPEG4) ? asString_MPEG4Profile(pl.mProfile) : in dumpCodecDetails() 740 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_AVC) ? asString_AVCProfile(pl.mProfile) : in dumpCodecDetails() 741 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_VP8) ? asString_VP8Profile(pl.mProfile) : in dumpCodecDetails() 742 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_HEVC) ? asString_HEVCProfile(pl.mProfile) : in dumpCodecDetails() 743 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_VP9) ? asString_VP9Profile(pl.mProfile) : in dumpCodecDetails() 744 … mediaType.equalsIgnoreCase(MIMETYPE_VIDEO_AV1) ? asString_AV1Profile(pl.mProfile) :"??"; in dumpCodecDetails() 757 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()
|