Home
last modified time | relevance | path

Searched refs:mProfile (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DPowerProfileTest.java34 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/
DSipProfile.java81 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/av/services/audiopolicy/common/managerdefinitions/src/
DAudioInputDescriptor.cpp34 mProfile(profile), mPatchHandle(AUDIO_PATCH_HANDLE_NONE), mId(0), in AudioInputDescriptor()
47 if (mProfile == 0) { in getModuleHandle()
50 return mProfile->getModuleHandle(); in getModuleHandle()
71 ALOG_ASSERT(mProfile != 0, in toAudioPortConfig()
91 ALOG_ASSERT(mProfile != 0, "toAudioPort() called on input with null profile %d", mIoHandle); in toAudioPort()
93 mProfile->toAudioPort(port); in toAudioPort()
212 mDevice, address.string(), mProfile.get(), mProfile->getName().string()); in open()
214 status_t status = mClientInterface->openInput(mProfile->getModuleHandle(), in open()
234 mProfile->curOpenCount++; in open()
243 if (!mProfile->canStartNewIo()) { in start()
[all …]
DAudioOutputDescriptor.cpp225 mProfile(profile), mIoHandle(AUDIO_IO_HANDLE_NONE), mLatency(0), in SwAudioOutputDescriptor()
279 return mProfile->getSupportedDevicesType(); in supportedDevices()
408 if ((mProfile->getFlags() & AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD) && in open()
424 mDevice, address.string(), mProfile.get(), mProfile->getName().string()); in open()
426 status_t status = mClientInterface->openOutput(mProfile->getModuleHandle(), in open()
446 mProfile->curOpenCount++; in open()
467 if (!mProfile->canStartNewIo()) { in start()
470 mProfile->curActiveCount++; in start()
484 LOG_ALWAYS_FATAL_IF(mProfile->curActiveCount < 1, in stop()
486 __func__, mProfile->curActiveCount); in stop()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DA2dpProfileTest.java55 A2dpProfile mProfile; field in A2dpProfileTest
69 mProfile = new A2dpProfile(mContext, mAdapter, mDeviceManager, mProfileManager); in setUp()
71 mProfile.setBluetoothA2dpWrapper(mBluetoothA2dpWrapper); 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()
[all …]
DHeadsetProfileTest.java40 private HeadsetProfile mProfile; field in HeadsetProfileTest
53 mProfile = new HeadsetProfile(context, mAdapter, 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()
/frameworks/base/core/java/com/android/internal/os/
DCpuPowerCalculator.java26 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/
DMediaCodecInfo.h45 uint32_t mProfile; member
48 return mProfile < o.mProfile || (mProfile == o.mProfile && mLevel < o.mLevel);
/frameworks/av/include/media/
DMediaCodecInfo.h45 uint32_t mProfile; member
48 return mProfile < o.mProfile || (mProfile == o.mProfile && mLevel < o.mLevel);
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosink/
DMediaEncoderFilter.java100 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/
DLocalBluetoothProfileManager.java339 final LocalBluetoothProfile mProfile; field in LocalBluetoothProfileManager.StateChangedHandler
342 mProfile = profile; in StateChangedHandler()
360 Log.i(TAG, "Failed to connect " + mProfile + " device"); in onReceiveInternal()
364 mProfile instanceof HearingAidProfile && in onReceiveInternal()
379 mProfile.getProfileId()); in onReceiveInternal()
380 cachedDevice.onProfileStateChanged(mProfile, newState); in onReceiveInternal()
402 cachedDevice.onProfileStateChanged(mProfile, BluetoothProfile.STATE_CONNECTED); in onReceiveInternal()
420 PanProfile panProfile = (PanProfile) mProfile; in onReceive()
/frameworks/av/services/audiopolicy/common/managerdefinitions/include/
DAudioInputDescriptor.h48 const sp<IOProfile> mProfile; // I/O profile this output derives from variable
52 virtual sp<AudioPort> getAudioPort() const { return mProfile; } in getAudioPort()
DAudioOutputDescriptor.h140 const sp<IOProfile> mProfile; // I/O profile this output derives from variable
/frameworks/base/services/core/java/com/android/server/net/
DLockdownVpnTracker.java78 private final VpnProfile mProfile; field in LockdownVpnTracker
101 mProfile = Preconditions.checkNotNull(profile); in LockdownVpnTracker()
161 if (mProfile.isValidLockdownProfile()) { in handleStateChangedLocked()
170 mVpn.startLegacyVpnPrivileged(mProfile, KeyStore.getInstance(), egressProp); in handleStateChangedLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhone.java66 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()
/frameworks/wilhelm/src/android/
DVideoCodec_to_android.cpp99 if (profileLevel.mProfile == XA_VIDEOPROFILE_AVC_BASELINE) { in android_videoCodec_expose()
189 mProfileLevels.itemAt(plIndex).mProfile); in android_videoCodec_getProfileLevelCombination()
/frameworks/av/media/libmedia/
DMediaCodecInfo.cpp63 profileLevel.mProfile = static_cast<uint32_t>(parcel.readInt32()); in FromParcel()
91 parcel->writeInt32(mProfileLevels.itemAt(i).mProfile); in writeToParcel()
117 profileLevel.mProfile = profile; in addProfileLevel()
/frameworks/av/media/libstagefright/omx/include/media/stagefright/omx/
DSimpleSoftOMXComponent.h33 OMX_U32 mProfile; member
/frameworks/base/media/jni/
Dandroid_media_MediaCodecList.cpp226 env->SetIntField(profileLevelObj, profileField, src.mProfile); in android_media_MediaCodecList_getCodecCapabilities()
/frameworks/av/services/audiopolicy/managerdefault/
DAudioPolicyManager.cpp718 if (activeDesc->mProfile->getSupportedDevices().types() & in setForceUse()
957 if (!desc->isDuplicated() && (profile == desc->mProfile)) { in getOutputForDevice()
1090 int commonFlags = popcount(outputDesc->mProfile->getFlags() & flags); in selectOutput()
1106 if (outputDesc->mProfile->getFlags() & AUDIO_OUTPUT_FLAG_PRIMARY) { in selectOutput()
1715 if ((profile == desc->mProfile) && in getInputForDevice()
2929 if (!outputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
2986 if (!inputDesc->mProfile->isCompatibleProfile(devDesc->type(), in createAudioPatch()
3625 if (!desc->isDuplicated() && desc->mProfile == profile) { in getSurroundFormats()
4213 desc->mProfile->getSupportedDeviceByAddress(device, address); in loadConfig()
4280 if (!desc->isDuplicated() && desc->mProfile == profile) { in loadConfig()
[all …]
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothTestUtils.java214 private int mProfile; field in BluetoothTestUtils.ConnectProfileReceiver
221 mProfile = profile; in ConnectProfileReceiver()
223 switch (mProfile) { in ConnectProfileReceiver()
/frameworks/av/media/libstagefright/omx/
DSoftVideoDecoderOMXComponent.cpp400 profileLevel->eProfile = mProfileLevels[profileLevel->nProfileIndex].mProfile; in internalGetParameter()
DSoftVideoEncoderOMXComponent.cpp368 profileLevel->eProfile = mProfileLevels[profileLevel->nProfileIndex].mProfile; in internalGetParameter()
/frameworks/av/cmds/stagefright/
Dstagefright.cpp678 profileLevel.mProfile, profileLevel.mLevel); in dumpCodecProfiles()
/frameworks/base/core/java/android/view/
DViewRootImpl.java588 private boolean mProfile = false;
595 mProfile = true;
1456 if (mProfile) {
1462 if (mProfile) {
1464 mProfile = false;

12