Home
last modified time | relevance | path

Searched refs:profile (Results 1 – 25 of 61) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/bluetooth/
DDeviceProfilesSettings.java175 for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) { in addPreferencesForProfiles()
176 CheckBox pref = createProfilePreference(profile); in addPreferencesForProfiles()
219 private CheckBox createProfilePreference(LocalBluetoothProfile profile) { in createProfilePreference() argument
221 pref.setTag(profile.toString()); in createProfilePreference()
222 pref.setText(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference()
225 refreshProfilePreference(pref, profile); in createProfilePreference()
238 private void onProfileClicked(LocalBluetoothProfile profile, CheckBox profilePref) { in onProfileClicked() argument
253 askDisconnect(mManager.getForegroundActivity(), profile); in onProfileClicked() local
255 if (profile instanceof MapProfile) { in onProfileClicked()
258 if (profile.isPreferred(device)) { in onProfileClicked()
[all …]
DDockService.java776 LocalBluetoothProfile profile, int startId) { in handleUnexpectedDisconnect() argument
794 cachedDevice.connectProfile(profile); in handleUnexpectedDisconnect()
807 for (LocalBluetoothProfile profile : profiles) { in connectIfEnabled()
808 if (profile.getPreferred(device) == BluetoothProfile.PRIORITY_AUTO_CONNECT) { in connectIfEnabled()
855 LocalBluetoothProfile profile = mProfiles[i]; in applyBtSettings() local
856 if (DEBUG) Log.d(TAG, profile.toString() + " = " + mCheckedItems[i]); in applyBtSettings()
863 int status = profile.getConnectionStatus(cachedDevice.getDevice()); in applyBtSettings()
869 profile.setPreferred(device, mCheckedItems[i]); in applyBtSettings()
871 if (mCheckedItems[i] != profile.isPreferred(device)) { in applyBtSettings()
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
DVpnTests.java159 private void printVpnProfile(VpnProfile profile) { in printVpnProfile() argument
161 Log.v(TAG, "key: " + profile.key); in printVpnProfile()
162 Log.v(TAG, "name: " + profile.name); in printVpnProfile()
163 Log.v(TAG, "type: " + profile.type); in printVpnProfile()
164 Log.v(TAG, "server: " + profile.server); in printVpnProfile()
165 Log.v(TAG, "username: " + profile.username); in printVpnProfile()
166 Log.v(TAG, "password: " + profile.password); in printVpnProfile()
167 Log.v(TAG, "dnsServers: " + profile.dnsServers); in printVpnProfile()
168 Log.v(TAG, "searchDomains: " + profile.searchDomains); in printVpnProfile()
169 Log.v(TAG, "routes: " + profile.routes); in printVpnProfile()
[all …]
DVpnProfileParser.java61 VpnProfile profile = null;
70 profile = new VpnProfile(Long.toHexString(System.currentTimeMillis()));
71 vpnInfo = new VpnInfo(profile);
129 mVpnPool.put(profile.type, vpnInfo);
137 profile.name = strValue;
145 profile.type = t;
150 profile.server = strValue;
154 profile.username = strValue;
158 profile.password = strValue;
162 profile.dnsServers = strValue;
[all …]
DCertInstallerHelper.java172 public void installCertificate(VpnProfile profile, String certFile, String password) { in installCertificate() argument
180 String key = Credentials.USER_PRIVATE_KEY + profile.ipsecUserCert; in installCertificate()
191 String certName = Credentials.USER_CERTIFICATE + profile.ipsecUserCert; in installCertificate()
202 String caListName = Credentials.CA_CERTIFICATE + profile.ipsecCaCert; in installCertificate()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java58 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument
62 args.putParcelable(ARG_PROFILE, profile); in show()
96 VpnProfile profile = (VpnProfile) args.getParcelable(ARG_PROFILE); in onCreateDialog() local
100 return new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog()
106 VpnProfile profile = dialog.getProfile(); in onClick() local
110 KeyStore.getInstance().put(Credentials.VPN + profile.key, profile.encode(), in onClick()
114 disconnect(profile); in onClick()
116 updateLockdownVpn(dialog.isVpnAlwaysOn(), profile); in onClick() local
119 if (!dialog.isEditing() && !VpnUtils.isVpnLockdown(profile.key)) { in onClick()
121 connect(profile); in onClick()
[all …]
DVpnSettings.java155 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected() local
156 ConfigDialogFragment.show(this, profile, true /* editing */, false /* exists */); in onOptionsItemSelected()
231 for (VpnProfile profile : vpnProfiles) { in handleMessage()
232 LegacyVpnPreference p = findOrCreatePreference(profile); in handleMessage()
233 if (connectedLegacyVpns.containsKey(profile.key)) { in handleMessage()
234 p.setState(connectedLegacyVpns.get(profile.key).state); in handleMessage()
238 p.setAlwaysOn(lockdownVpnKey != null && lockdownVpnKey.equals(profile.key)); in handleMessage()
281 VpnProfile profile = pref.getProfile(); in onPreferenceClick() local
282 if (mConnectedLegacyVpn != null && profile.key.equals(mConnectedLegacyVpn.key) && in onPreferenceClick()
291 ConfigDialogFragment.show(this, profile, false /* editing */, true /* exists */); in onPreferenceClick()
[all …]
DConfigDialog.java81 VpnProfile profile, boolean editing, boolean exists) { in ConfigDialog() argument
85 mProfile = profile; in ConfigDialog()
406 VpnProfile profile = new VpnProfile(mProfile.key); in getProfile() local
407 profile.name = mName.getText().toString(); in getProfile()
408 profile.type = mType.getSelectedItemPosition(); in getProfile()
409 profile.server = mServer.getText().toString().trim(); in getProfile()
410 profile.username = mUsername.getText().toString(); in getProfile()
411 profile.password = mPassword.getText().toString(); in getProfile()
412 profile.searchDomains = mSearchDomains.getText().toString().trim(); in getProfile()
413 profile.dnsServers = mDnsServers.getText().toString().trim(); in getProfile()
[all …]
DLegacyVpnPreference.java44 public void setProfile(VpnProfile profile) { in setProfile() argument
46 final String newLabel = (profile != null ? profile.name : null); in setProfile()
51 mProfile = profile; in setProfile()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DConfig.java113 private static boolean isProfileDisabled(Context context, Class profile) { in isProfileDisabled() argument
116 if (profile == HeadsetService.class) { in isProfileDisabled()
118 } else if (profile == A2dpService.class) { in isProfileDisabled()
120 } else if (profile == A2dpSinkService.class) { in isProfileDisabled()
122 } else if (profile == HidService.class) { in isProfileDisabled()
124 } else if (profile == HealthService.class) { in isProfileDisabled()
126 } else if (profile == PanService.class) { in isProfileDisabled()
128 } else if (profile == GattService.class) { in isProfileDisabled()
130 } else if (profile == BluetoothMapService.class) { in isProfileDisabled()
132 } else if (profile == HeadsetClientService.class) { in isProfileDisabled()
[all …]
DAdapterProperties.java312 int getProfileConnectionState(int profile) { in getProfileConnectionState() argument
314 Pair<Integer, Integer> p = mProfileConnectionState.get(profile); in getProfileConnectionState()
324 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument
337 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange()
416 private void updateProfileConnectionState(int profile, int newState, int oldState) { in updateProfileConnectionState() argument
436 Pair<Integer, Integer> stateNumDev = mProfileConnectionState.get(profile); in updateProfileConnectionState()
462 mProfileConnectionState.put(profile, new Pair<Integer, Integer>(newHashState, in updateProfileConnectionState()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java48 void onFound(SipProfile profile); in onFound() argument
115 public void onFound(SipProfile profile) { in onCreateOutgoingConnection()
116 if (profile == null) { in onCreateOutgoingConnection()
122 createConnectionForProfile(profile, request); in onCreateOutgoingConnection()
190 SipProfile profile, in createConnectionForProfile() argument
192 SipPhone phone = findPhoneForProfile(profile); in createConnectionForProfile()
194 phone = createPhoneForProfile(profile); in createConnectionForProfile()
215 for (SipProfile profile : profileList) { in findProfile()
216 if (Objects.equals(profileName, profile.getProfileName())) { in findProfile()
217 profileToUse = profile; in findProfile()
[all …]
DSipSettings.java168 SipProfile profile = intent.getParcelableExtra(KEY_SIP_PROFILE); in onActivityResult() local
170 if (VERBOSE) log("onActivityResult, new: " + profile.getProfileName()); in onActivityResult()
171 addProfile(profile); in onActivityResult()
194 private String getProfileName(SipProfile profile) { in getProfileName() argument
195 String profileName = profile.getProfileName(); in getProfileName()
197 profileName = profile.getUserName() + "@" + profile.getSipDomain(); in getProfileName()
248 SipProfile profile = getProfileFromList(activeProfile); in processActiveProfilesFromSipService() local
249 if (profile == null) { in processActiveProfilesFromSipService()
252 profile.setCallingUid(activeProfile.getCallingUid()); in processActiveProfilesFromSipService()
283 private void handleProfileClick(final SipProfile profile) { in handleProfileClick() argument
[all …]
DSipAccountRegistry.java39 AccountEntry(SipProfile profile) { in AccountEntry() argument
40 mProfile = profile; in AccountEntry()
133 SipProfile profile = profileDb.retrieveSipProfileFromName(profileName); in verifyAndPurgeInvalidPhoneAccounts() local
134 if (profile == null) { in verifyAndPurgeInvalidPhoneAccounts()
240 for (SipProfile profile : sipProfileList) { in startSipProfiles()
243 if (sipProfileName == null || sipProfileName.equals(profile.getProfileName())) { in startSipProfiles()
244 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile); in startSipProfiles()
249 startSipServiceForProfile(profile, sipManager, context, isReceivingCalls); in startSipProfiles()
264 private void startSipServiceForProfile(SipProfile profile, SipManager sipManager, in startSipServiceForProfile() argument
266 removeSipProfile(profile.getUriString()); in startSipServiceForProfile()
[all …]
DSipUtil.java110 static PhoneAccount createPhoneAccount(Context context, SipProfile profile) { in createPhoneAccount() argument
114 String sipAddress = profile.getUserName() + "@" + profile.getSipDomain(); in createPhoneAccount()
115 Uri sipUri = Uri.parse(profile.getUriString()); in createPhoneAccount()
118 SipUtil.createAccountHandle(context, profile.getProfileName()); in createPhoneAccount()
126 PhoneAccount.Builder builder = PhoneAccount.builder(accountHandle, profile.getDisplayName()) in createPhoneAccount()
DSipPhoneAccountSettingsActivity.java51 SipProfile profile = profileDb.retrieveSipProfileFromName(profileName); in onCreate() local
52 if (profile != null) { in onCreate()
54 settingsIntent.putExtra(SipSettings.KEY_SIP_PROFILE, (Parcelable) profile); in onCreate()
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java205 final DeviceProfile profile = launcher.getDeviceProfile(); in handleHotseatButtonKeyEvent() local
210 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleHotseatButtonKeyEvent()
238 !profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent()
240 true /* hotseat horizontal */, profile.inv.hotseatAllAppsRank); in handleHotseatButtonKeyEvent()
244 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent()
246 false /* hotseat horizontal */, profile.inv.hotseatAllAppsRank); in handleHotseatButtonKeyEvent()
250 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent()
344 DeviceProfile profile = launcher.getDeviceProfile(); in handleIconKeyEvent() local
348 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleIconKeyEvent()
371 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && !profile.isVerticalBarLayout()) { in handleIconKeyEvent()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/a2dpsink/mbs/
DA2dpMediaBrowserService.java160 public void onServiceConnected(int profile, BluetoothProfile proxy) {
162 if (profile == BluetoothProfile.AVRCP_CONTROLLER) {
172 public void onServiceDisconnected(int profile) {
173 Log.d(TAG, "onServiceDisconnected " + profile);
174 if (profile == BluetoothProfile.AVRCP_CONTROLLER) {
289 private void msgProfileConnect(BluetoothProfile profile) { in msgProfileConnect() argument
291 if (profile != null) { in msgProfileConnect()
292 mAvrcpProfile = (BluetoothAvrcpController) profile; in msgProfileConnect()
/packages/apps/Camera2/src/com/android/camera/data/
DVideoDataFactory.java56 CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH); in fromCursor() local
57 if(profile != null) { in fromCursor()
58 dimensions = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in fromCursor()
/packages/apps/Camera2/src/com/android/camera/stats/profiler/
DLoggingProfiler.java32 LoggingProfile profile = new LoggingProfile(mWriter, name); in create() local
33 profile.start(); in create()
34 return profile; in create()
/packages/services/Telecomm/src/com/android/server/telecom/
DRingtoneFactory.java85 for (UserInfo profile : profiles) { in getWorkProfileContextForUser()
86 UserHandle profileUserHandle = profile.getUserHandle(); in getWorkProfileContextForUser()
87 if (profileUserHandle != userHandle && profile.isManagedProfile()) { in getWorkProfileContextForUser()
89 workprofile = profile; in getWorkProfileContextForUser()
DBluetoothAdapterProxy.java34 int profile) { in getProfileProxy() argument
38 return mBluetoothAdapter.getProfileProxy(context, listener, profile); in getProfileProxy()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/
DPreBootListener.java135 for (UserInfo profile : profiles) { in resetCrossProfileIntentFilters()
136 if (!profile.isManagedProfile()) { in resetCrossProfileIntentFilters()
139 mPackageManager.clearCrossProfileIntentFilters(profile.id); in resetCrossProfileIntentFilters()
141 mPackageManager, userId, profile.id); in resetCrossProfileIntentFilters()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetCell.java106 DeviceProfile profile = mLauncher.getDeviceProfile(); in setContainerWidth() local
107 cellSize = (int) (profile.cellWidthPx * WIDTH_SCALE); in setContainerWidth()
144 InvariantDeviceProfile profile = in applyFromAppWidgetProviderInfo() local
149 int hSpan = Math.min(info.spanX, profile.numColumns); in applyFromAppWidgetProviderInfo()
150 int vSpan = Math.min(info.spanY, profile.numRows); in applyFromAppWidgetProviderInfo()
/packages/apps/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java163 for (final UserHandle profile : mProfiles) { in getEntries()
165 final int profileId = profile.getIdentifier(); in getEntries()
171 final PermissionState newEntry = new PermissionState(packageName, profile); in getEntries()
192 for (final UserHandle profile : mProfiles) { in loadPermissionsStates()
193 final int profileId = profile.getIdentifier(); in loadPermissionsStates()

123