/frameworks/base/tests/net/java/android/net/ |
D | Ikev2VpnProfileTest.java | 102 final Ikev2VpnProfile profile = builder.build(); in testBuildValidProfileWithOptions() local 103 assertNotNull(profile); in testBuildValidProfileWithOptions() 106 assertEquals(SERVER_ADDR_STRING, profile.getServerAddr()); in testBuildValidProfileWithOptions() 107 assertEquals(IDENTITY_STRING, profile.getUserIdentity()); in testBuildValidProfileWithOptions() 108 assertEquals(mProxy, profile.getProxyInfo()); in testBuildValidProfileWithOptions() 109 assertTrue(profile.isBypassable()); in testBuildValidProfileWithOptions() 110 assertTrue(profile.isMetered()); in testBuildValidProfileWithOptions() 111 assertEquals(TEST_MTU, profile.getMaxMtu()); in testBuildValidProfileWithOptions() 112 assertEquals(Ikev2VpnProfile.DEFAULT_ALGORITHMS, profile.getAllowedAlgorithms()); in testBuildValidProfileWithOptions() 120 final Ikev2VpnProfile profile = builder.build(); in testBuildUsernamePasswordProfile() local [all …]
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | DisplayColorProfileTest.cpp | 199 auto profile = ProfileFactory().setHasWideColorGamut(false).build(); in TEST_F() local 201 EXPECT_FALSE(profile.hasWideColorGamut()); in TEST_F() 205 auto profile = ProfileFactory().setHasWideColorGamut(true).build(); in TEST_F() local 207 EXPECT_TRUE(profile.hasWideColorGamut()); in TEST_F() 213 auto profile = ProfileFactory().setPerFrameMetadata(0).build(); in TEST_F() local 215 EXPECT_EQ(0, profile.getSupportedPerFrameMetadata()); in TEST_F() 219 impl::DisplayColorProfile profile = ProfileFactory().setPerFrameMetadata(123).build(); in TEST_F() local 221 EXPECT_EQ(123, profile.getSupportedPerFrameMetadata()); in TEST_F() 229 auto profile = ProfileFactory().build(); in TEST_F() local 231 EXPECT_FALSE(profile.hasHDR10PlusSupport()); in TEST_F() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/ |
D | ImsCallSessionListener.java | 57 public void callSessionProgressing(ImsStreamMediaProfile profile) { in callSessionProgressing() argument 59 mListener.callSessionProgressing(profile); in callSessionProgressing() 70 public void callSessionInitiated(ImsCallProfile profile) { in callSessionInitiated() argument 72 mListener.callSessionInitiated(profile); in callSessionInitiated() 114 public void callSessionHeld(ImsCallProfile profile) { in callSessionHeld() argument 116 mListener.callSessionHeld(profile); in callSessionHeld() 140 public void callSessionHoldReceived(ImsCallProfile profile) { in callSessionHoldReceived() argument 142 mListener.callSessionHoldReceived(profile); in callSessionHoldReceived() 154 public void callSessionResumed(ImsCallProfile profile) { in callSessionResumed() argument 156 mListener.callSessionResumed(profile); in callSessionResumed() [all …]
|
D | ImsCallSession.java | 105 ImsStreamMediaProfile profile) { in callSessionProgressing() argument 115 ImsCallProfile profile) { in callSessionStarted() argument 145 ImsCallProfile profile) { in callSessionHeld() argument 164 ImsCallProfile profile) { in callSessionHoldReceived() argument 173 ImsCallProfile profile) { in callSessionResumed() argument 192 ImsCallProfile profile) { in callSessionResumeReceived() argument 204 ImsCallSession newSession, ImsCallProfile profile) { in callSessionMergeStarted() argument 231 ImsCallProfile profile) { in callSessionUpdated() argument 250 ImsCallProfile profile) { in callSessionUpdateReceived() argument 262 ImsCallSession newSession, ImsCallProfile profile) { in callSessionConferenceExtended() argument [all …]
|
/frameworks/base/core/java/android/net/ |
D | Ikev2VpnProfile.java | 400 final VpnProfile profile = new VpnProfile("" /* Key; value unused by IKEv2VpnProfile(s) */, in toVpnProfile() local 402 profile.type = mType; in toVpnProfile() 403 profile.server = mServerAddr; in toVpnProfile() 404 profile.ipsecIdentifier = mUserIdentity; in toVpnProfile() 405 profile.proxy = mProxyInfo; in toVpnProfile() 406 profile.setAllowedAlgorithms(mAllowedAlgorithms); in toVpnProfile() 407 profile.isBypassable = mIsBypassable; in toVpnProfile() 408 profile.isMetered = mIsMetered; in toVpnProfile() 409 profile.maxMtu = mMaxMtu; in toVpnProfile() 410 profile.areAuthParamsInline = true; in toVpnProfile() [all …]
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDevice.java | 113 private String describe(LocalBluetoothProfile profile) { in describe() argument 116 if (profile != null) { in describe() 117 sb.append(" Profile:").append(profile); in describe() 123 void onProfileStateChanged(LocalBluetoothProfile profile, int newProfileState) { in onProfileStateChanged() argument 125 Log.d(TAG, "onProfileStateChanged: profile " + profile + ", device=" + mDevice in onProfileStateChanged() 138 if (profile instanceof MapProfile) { in onProfileStateChanged() 139 profile.setEnabled(mDevice, true); in onProfileStateChanged() 141 if (!mProfiles.contains(profile)) { in onProfileStateChanged() 142 mRemovedProfiles.remove(profile); in onProfileStateChanged() 143 mProfiles.add(profile); in onProfileStateChanged() [all …]
|
D | LocalBluetoothProfileManager.java | 225 private void addHeadsetProfile(LocalBluetoothProfile profile, String profileName, in addHeadsetProfile() argument 228 profile, audioStateChangedAction, audioDisconnectedState); in addHeadsetProfile() 231 mProfileNameMap.put(profileName, profile); in addHeadsetProfile() 237 private void addProfile(LocalBluetoothProfile profile, in addProfile() argument 239 mEventManager.addProfileHandler(stateChangedAction, new StateChangedHandler(profile)); in addProfile() 240 mProfileNameMap.put(profileName, profile); in addProfile() 243 private void addPanProfile(LocalBluetoothProfile profile, in addPanProfile() argument 246 new PanStateChangedHandler(profile)); in addPanProfile() 247 mProfileNameMap.put(profileName, profile); in addPanProfile() 266 StateChangedHandler(LocalBluetoothProfile profile) { in StateChangedHandler() argument [all …]
|
/frameworks/av/services/audiopolicy/common/managerdefinitions/src/ |
D | AudioProfileVectorHelper.cpp | 44 const sp<AudioProfile> &profile) in addAudioProfileAndSort() argument 46 ssize_t ret = audioProfileVector.add(profile); in addAudioProfileAndSort() 55 for (const auto &profile : audioProfileVector) { in getAudioProfileForFormat() local 56 if (profile->getFormat() == format) { in getAudioProfileForFormat() 57 return profile; in getAudioProfileForFormat() 67 for (const auto &profile : audioProfileVector) { in setSampleRatesForAudioProfiles() local 68 if (profile->getFormat() == format && profile->isDynamicRate()) { in setSampleRatesForAudioProfiles() 69 if (profile->hasValidRates()) { in setSampleRatesForAudioProfiles() 72 format, profile->getChannels(), sampleRateSet); in setSampleRatesForAudioProfiles() 76 profile->setSampleRates(sampleRateSet); in setSampleRatesForAudioProfiles() [all …]
|
D | HwModule.cpp | 47 sp<IOProfile> profile = new OutputProfile(name); in addOutputProfile() local 49 profile->addAudioProfile(new AudioProfile(config->format, config->channel_mask, in addOutputProfile() 56 profile->addSupportedDevice(devDesc); in addOutputProfile() 58 return addOutputProfile(profile); in addOutputProfile() 61 status_t HwModule::addOutputProfile(const sp<IOProfile> &profile) in addOutputProfile() argument 63 profile->attach(this); in addOutputProfile() 64 mOutputProfiles.add(profile); in addOutputProfile() 65 mPorts.add(profile); in addOutputProfile() 69 status_t HwModule::addInputProfile(const sp<IOProfile> &profile) in addInputProfile() argument 71 profile->attach(this); in addInputProfile() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/aidl/ |
D | IImsCallSessionListener.aidl | 37 void callSessionProgressing(in ImsStreamMediaProfile profile); in callSessionProgressing() argument 38 void callSessionInitiated(in ImsCallProfile profile); in callSessionInitiated() argument 45 void callSessionHeld(in ImsCallProfile profile); in callSessionHeld() argument 47 void callSessionHoldReceived(in ImsCallProfile profile); in callSessionHoldReceived() argument 48 void callSessionResumed(in ImsCallProfile profile); in callSessionResumed() argument 50 void callSessionResumeReceived(in ImsCallProfile profile); in callSessionResumeReceived() argument 55 void callSessionMergeStarted(IImsCallSession newSession, in ImsCallProfile profile); in callSessionMergeStarted() argument 62 void callSessionUpdated(in ImsCallProfile profile); in callSessionUpdated() argument 64 void callSessionUpdateReceived(in ImsCallProfile profile); in callSessionUpdateReceived() argument 69 void callSessionConferenceExtended(IImsCallSession newSession, in ImsCallProfile profile); in callSessionConferenceExtended() argument [all …]
|
/frameworks/av/media/libaudiofoundation/ |
D | AudioProfile.cpp | 171 ssize_t AudioProfileVector::add(const sp<AudioProfile> &profile) in add() argument 174 push_back(profile); in add() 192 for (const auto &profile : *this) { in getFirstValidProfile() 193 if (profile->isValid()) { in getFirstValidProfile() 194 return profile; in getFirstValidProfile() 202 for (const auto &profile : *this) { in getFirstValidProfileFor() 203 if (profile->isValid() && profile->getFormat() == format) { in getFirstValidProfileFor() 204 return profile; in getFirstValidProfileFor() 213 for (const auto &profile : *this) { in getSupportedFormats() 214 if (profile->hasValidFormat()) { in getSupportedFormats() [all …]
|
/frameworks/base/telephony/java/android/telephony/ims/stub/ |
D | ImsCallSessionImplBase.java | 161 public void start(String callee, ImsCallProfile profile) { 162 ImsCallSessionImplBase.this.start(callee, profile); 166 public void startConference(String[] participants, ImsCallProfile profile) throws 168 ImsCallSessionImplBase.this.startConference(participants, profile); 172 public void accept(int callType, ImsStreamMediaProfile profile) { 173 ImsCallSessionImplBase.this.accept(callType, profile); 204 public void hold(ImsStreamMediaProfile profile) { 205 ImsCallSessionImplBase.this.hold(profile); 209 public void resume(ImsStreamMediaProfile profile) { 210 ImsCallSessionImplBase.this.resume(profile); [all …]
|
/frameworks/base/tests/net/java/com/android/internal/net/ |
D | VpnProfileTest.java | 130 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testSetInvalidAlgorithmValueDelimiter() local 133 profile.setAllowedAlgorithms( in testSetInvalidAlgorithmValueDelimiter() 142 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testSetInvalidAlgorithmListDelimiter() local 145 profile.setAllowedAlgorithms( in testSetInvalidAlgorithmListDelimiter() 154 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testEncodeDecode() local 155 final VpnProfile decoded = VpnProfile.decode(DUMMY_PROFILE_KEY, profile.encode()); in testEncodeDecode() 156 assertEquals(profile, decoded); in testEncodeDecode() 161 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testEncodeDecodeTooManyValues() local 163 (new String(profile.encode()) + VpnProfile.VALUE_DELIMITER + "invalid").getBytes(); in testEncodeDecodeTooManyValues() 207 final VpnProfile profile = getSampleIkev2Profile(DUMMY_PROFILE_KEY); in testEncodeDecodeLoginsNotSaved() local [all …]
|
/frameworks/base/core/java/com/android/internal/net/ |
D | VpnProfile.java | 263 VpnProfile profile = new VpnProfile(key, isRestrictedToTestNetworks); in decode() local 264 profile.name = values[0]; in decode() 265 profile.type = Integer.parseInt(values[1]); in decode() 266 if (profile.type < 0 || profile.type > TYPE_MAX) { in decode() 269 profile.server = values[2]; in decode() 270 profile.username = values[3]; in decode() 271 profile.password = values[4]; in decode() 272 profile.dnsServers = values[5]; in decode() 273 profile.searchDomains = values[6]; in decode() 274 profile.routes = values[7]; in decode() [all …]
|
/frameworks/base/telephony/java/com/android/ims/internal/ |
D | IImsCallSessionListener.aidl | 38 void callSessionProgressing(in IImsCallSession session, in ImsStreamMediaProfile profile); in callSessionProgressing() argument 40 void callSessionStarted(in IImsCallSession session, in ImsCallProfile profile); in callSessionStarted() argument 50 void callSessionHeld(in IImsCallSession session, in ImsCallProfile profile); in callSessionHeld() argument 54 void callSessionHoldReceived(in IImsCallSession session, in ImsCallProfile profile); in callSessionHoldReceived() argument 56 void callSessionResumed(in IImsCallSession session, in ImsCallProfile profile); in callSessionResumed() argument 60 void callSessionResumeReceived(in IImsCallSession session, in ImsCallProfile profile); in callSessionResumeReceived() argument 67 in IImsCallSession newSession, in ImsCallProfile profile); in callSessionMergeStarted() argument 79 in ImsCallProfile profile); in callSessionUpdated() argument 83 in ImsCallProfile profile); in callSessionUpdateReceived() argument 89 in IImsCallSession newSession, in ImsCallProfile profile); in callSessionConferenceExtended() argument [all …]
|
D | IImsCallSession.aidl | 113 void start(String callee, in ImsCallProfile profile); in start() argument 126 void startConference(in String[] participants, in ImsCallProfile profile); in startConference() argument 135 void accept(int callType, in ImsStreamMediaProfile profile); in accept() argument 181 void hold(in ImsStreamMediaProfile profile); in hold() argument 190 void resume(in ImsStreamMediaProfile profile); in resume() argument 210 void update(int callType, in ImsStreamMediaProfile profile); in update() argument
|
/frameworks/av/media/libmedia/ |
D | MediaProfiles.cpp | 395 MediaProfiles::CamcorderProfile *profile = new MediaProfiles::CamcorderProfile; in createCamcorderProfile() local 396 profile->mCameraId = cameraId; in createCamcorderProfile() 400 profile->mFileFormat = static_cast<output_format>(fileFormat); in createCamcorderProfile() 401 profile->mQuality = static_cast<camcorder_quality>(quality); in createCamcorderProfile() 402 profile->mDuration = atoi(atts[5]); in createCamcorderProfile() 403 return profile; in createCamcorderProfile() 609 std::unique_ptr<CamcorderProfile> profile = in checkAndAddRequiredProfilesIfNecessary() local 616 profile->mQuality = CAMCORDER_QUALITY_LOW; in checkAndAddRequiredProfilesIfNecessary() 619 profile->mQuality = CAMCORDER_QUALITY_HIGH; in checkAndAddRequiredProfilesIfNecessary() 622 profile->mQuality = CAMCORDER_QUALITY_TIME_LAPSE_LOW; in checkAndAddRequiredProfilesIfNecessary() [all …]
|
/frameworks/base/core/java/android/bluetooth/ |
D | BluetoothManager.java | 113 public int getConnectionState(BluetoothDevice device, int profile) { in getConnectionState() argument 116 List<BluetoothDevice> connectedDevices = getConnectedDevices(profile); in getConnectionState() 140 public List<BluetoothDevice> getConnectedDevices(int profile) { in getConnectedDevices() argument 142 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { in getConnectedDevices() 143 throw new IllegalArgumentException("Profile not supported: " + profile); in getConnectedDevices() 181 public List<BluetoothDevice> getDevicesMatchingConnectionStates(int profile, int[] states) { in getDevicesMatchingConnectionStates() argument 184 if (profile != BluetoothProfile.GATT && profile != BluetoothProfile.GATT_SERVER) { in getDevicesMatchingConnectionStates() 185 throw new IllegalArgumentException("Profile not supported: " + profile); in getDevicesMatchingConnectionStates()
|
/frameworks/native/opengl/tools/glgen2/registry/ |
D | genheaders.py | 37 profile = False variable 63 profile = True variable 273 profile = 'compatibility', 292 profile = 'core', 311 profile = 'common', 330 profile = 'common', 349 profile = 'common', 368 profile = 'common', 387 profile = 'common', 406 profile = 'common', [all …]
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 232 profile = 'common', 236 profile = 'common', 242 profile = 'common', 246 profile = 'common', 262 profile = 'common'), 265 profile = 'common', 282 profile = 'common'), 285 profile = 'common'), 288 profile = 'common', 293 profile = 'common', [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | UserManagerServiceCreateProfileTest.java | 78 UserInfo profile = addProfile(secondaryUser); in testGetProfiles() local 92 assertTrue("Missing profile user id", users.get(0).id == profile.id in testGetProfiles() 93 || users.get(1).id == profile.id); in testGetProfiles() 129 UserInfo profile = addProfile(system); in testProfileBadgeUnique() local 130 profile.profileBadge = nextBadge; in testProfileBadgeUnique() 138 UserInfo profile = addProfile(secondaryUser); in testProfileBadgeReuse() local 140 mUserManagerService.addRemovingUserIdLocked(profile.id); in testProfileBadgeReuse() 228 UserInfo profile = new UserInfo( in addProfile() local 230 profile.profileGroupId = user.id; in addProfile() 231 mUserManagerService.putUserInfo(profile); in addProfile() [all …]
|
/frameworks/base/tools/powermodel/src/com/android/powermodel/component/ |
D | ModemAppActivity.java | 48 public ModemAppPower applyProfile(ActivityReport activityReport, PowerProfile profile) { in applyProfile() argument 50 final ModemProfile modemProfile = (ModemProfile)profile.getComponent(Component.MODEM); in applyProfile() 77 static final double getAverageModemPowerMa(ModemProfile profile) { in getAverageModemPowerMa() argument 78 double sumMa = profile.getRxMa(); in getAverageModemPowerMa() 79 for (float powerAtTxLevelMa: profile.getTxMa()) { in getAverageModemPowerMa() 82 return sumMa / (profile.getTxMa().length + 1); in getAverageModemPowerMa()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | Vpn.java | 574 final VpnProfile profile; in setAlwaysOnPackageInternal() local 577 profile = getVpnProfilePrivileged(packageName, keyStore); in setAlwaysOnPackageInternal() 584 (profile == null) ? VpnManager.TYPE_VPN_SERVICE : VpnManager.TYPE_VPN_PLATFORM; in setAlwaysOnPackageInternal() 701 VpnProfile profile = getVpnProfilePrivileged(alwaysOnPackage, keyStore); in startAlwaysOnVpn() local 702 if (profile != null) { in startAlwaysOnVpn() 703 startVpnProfilePrivileged(profile, alwaysOnPackage, in startAlwaysOnVpn() 1905 public void startLegacyVpn(VpnProfile profile, KeyStore keyStore, LinkProperties egress) { 1909 startLegacyVpnPrivileged(profile, keyStore, egress); 1921 public void startLegacyVpnPrivileged(VpnProfile profile, KeyStore keyStore, 1939 if (!profile.ipsecUserCert.isEmpty()) { [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
D | MediaRecorderStressTestRunner.java | 36 public static CamcorderProfile profile = CamcorderProfile.get(mCameraId, mProfileQuality); field in MediaRecorderStressTestRunner 38 public static int mVideoEncoder = profile.videoCodec; 39 public static int mAudioEncoder = profile.audioCodec; 40 public static int mFrameRate = profile.videoFrameRate; 41 public static int mVideoWidth = profile.videoFrameWidth; 42 public static int mVideoHeight = profile.videoFrameHeight; 43 public static int mBitRate = profile.videoBitRate;
|
/frameworks/base/core/java/com/android/internal/os/ |
D | WifiPowerEstimator.java | 33 public WifiPowerEstimator(PowerProfile profile) { in WifiPowerEstimator() argument 34 mWifiPowerPerPacket = getWifiPowerPerPacket(profile); in WifiPowerEstimator() 35 mWifiPowerOn = profile.getAveragePower(PowerProfile.POWER_WIFI_ON); in WifiPowerEstimator() 36 mWifiPowerScan = profile.getAveragePower(PowerProfile.POWER_WIFI_SCAN); in WifiPowerEstimator() 37 mWifiPowerBatchScan = profile.getAveragePower(PowerProfile.POWER_WIFI_BATCHED_SCAN); in WifiPowerEstimator() 43 private static double getWifiPowerPerPacket(PowerProfile profile) { in getWifiPowerPerPacket() argument 45 final double WIFI_POWER = profile.getAveragePower(PowerProfile.POWER_WIFI_ACTIVE) in getWifiPowerPerPacket()
|