Home
last modified time | relevance | path

Searched refs:profile (Results 1 – 25 of 64) 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/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/
DConfigDialog.java77 VpnProfile profile, boolean editing, boolean exists) { in ConfigDialog() argument
81 mProfile = profile; in ConfigDialog()
368 VpnProfile profile = new VpnProfile(mProfile.key); in getProfile() local
369 profile.name = mName.getText().toString(); in getProfile()
370 profile.type = mType.getSelectedItemPosition(); in getProfile()
371 profile.server = mServer.getText().toString().trim(); in getProfile()
372 profile.username = mUsername.getText().toString(); in getProfile()
373 profile.password = mPassword.getText().toString(); in getProfile()
374 profile.searchDomains = mSearchDomains.getText().toString().trim(); in getProfile()
375 profile.dnsServers = mDnsServers.getText().toString().trim(); in getProfile()
[all …]
DConfigDialogFragment.java57 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument
61 args.putParcelable(ARG_PROFILE, profile); in show()
95 VpnProfile profile = (VpnProfile) args.getParcelable(ARG_PROFILE); in onCreateDialog() local
99 return new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog()
105 VpnProfile profile = dialog.getProfile(); in onClick() local
109 KeyStore.getInstance().put(Credentials.VPN + profile.key, profile.encode(), in onClick()
113 disconnect(profile); in onClick()
118 connect(profile); in onClick()
125 disconnect(profile); in onClick()
129 keyStore.delete(Credentials.VPN + profile.key, KeyStore.UID_SELF); in onClick()
[all …]
DVpnSettings.java147 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected() local
148 ConfigDialogFragment.show(this, profile, true /* editing */, false /* exists */); in onOptionsItemSelected()
217 for (VpnProfile profile : loadVpnProfiles(mKeyStore)) { in handleMessage()
219 profile); in handleMessage()
221 mConfigPreferences.put(profile.key, pref); in handleMessage()
249 for (UserHandle profile : mUserManager.getUserProfiles()) { in handleMessage()
250 VpnConfig cfg = mConnectivityService.getVpnConfig(profile.getIdentifier()); in handleMessage()
252 final String key = getVpnIdentifier(profile.getIdentifier(), cfg.user); in handleMessage()
270 VpnProfile profile = ((ConfigPreference) preference).getProfile(); in onPreferenceClick() local
271 if (mConnectedLegacyVpn != null && profile.key.equals(mConnectedLegacyVpn.key) && in onPreferenceClick()
[all …]
DLockdownConfigFragment.java83 for (VpnProfile profile : mProfiles) { in initProfiles()
84 if (TextUtils.equals(profile.key, lockdownKey)) { in initProfiles()
87 mTitles.add(profile.name); in initProfiles()
119 final VpnProfile profile = mProfiles.get(newIndex - 1); in onCreateDialog()
120 if (!profile.isValidLockdownProfile()) { in onCreateDialog()
125 keyStore.put(Credentials.LOCKDOWN_VPN, profile.key.getBytes(), in onCreateDialog()
DConfigPreference.java37 ConfigPreference(Context context, OnClickListener onManage, VpnProfile profile) { in ConfigPreference() argument
39 setProfile(profile); in ConfigPreference()
46 public void setProfile(VpnProfile profile) { in setProfile() argument
47 mProfile = profile; in setProfile()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipSettings.java175 SipProfile profile = intent.getParcelableExtra(KEY_SIP_PROFILE); in onActivityResult() local
177 if (VERBOSE) log("onActivityResult, new: " + profile.getProfileName()); in onActivityResult()
178 addProfile(profile); in onActivityResult()
201 private String getProfileName(SipProfile profile) { in getProfileName() argument
202 String profileName = profile.getProfileName(); in getProfileName()
204 profileName = profile.getUserName() + "@" + profile.getSipDomain(); in getProfileName()
250 SipProfile profile = getProfileFromList(activeProfile); in processActiveProfilesFromSipService() local
251 if (profile == null) { in processActiveProfilesFromSipService()
254 profile.setCallingUid(activeProfile.getCallingUid()); in processActiveProfilesFromSipService()
285 private void handleProfileClick(final SipProfile profile) { in handleProfileClick() argument
[all …]
DSipConnectionService.java49 void onFound(SipProfile profile); in onFound() argument
116 public void onFound(SipProfile profile) { in onCreateOutgoingConnection()
117 if (profile == null) { in onCreateOutgoingConnection()
123 createConnectionForProfile(profile, request); in onCreateOutgoingConnection()
191 SipProfile profile, in createConnectionForProfile() argument
193 SipPhone phone = findPhoneForProfile(profile); in createConnectionForProfile()
195 phone = createPhoneForProfile(profile); in createConnectionForProfile()
216 for (SipProfile profile : profileList) { in findProfile()
217 if (Objects.equals(profileName, profile.getProfileName())) { in findProfile()
218 profileToUse = profile; in findProfile()
[all …]
DSipAccountRegistry.java40 AccountEntry(SipProfile profile) { in AccountEntry() argument
41 mProfile = profile; in AccountEntry()
134 SipProfile profile = profileDb.retrieveSipProfileFromName(profileName); in verifyAndPurgeInvalidPhoneAccounts() local
135 if (profile == null) { in verifyAndPurgeInvalidPhoneAccounts()
242 for (SipProfile profile : sipProfileList) { in startSipProfiles()
245 if (sipProfileName == null || sipProfileName.equals(profile.getProfileName())) { in startSipProfiles()
246 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile); in startSipProfiles()
251 startSipServiceForProfile(profile, sipManager, context, isReceivingCalls); in startSipProfiles()
272 private void startSipServiceForProfile(SipProfile profile, SipManager sipManager, in startSipServiceForProfile() argument
274 removeSipProfile(profile.getUriString()); in startSipServiceForProfile()
[all …]
DSipUtil.java107 static PhoneAccount createPhoneAccount(Context context, SipProfile profile) { in createPhoneAccount() argument
111 String sipAddress = profile.getUserName() + "@" + profile.getSipDomain(); in createPhoneAccount()
112 Uri sipUri = Uri.parse(profile.getUriString()); in createPhoneAccount()
115 SipUtil.createAccountHandle(context, profile.getProfileName()); in createPhoneAccount()
123 PhoneAccount.Builder builder = PhoneAccount.builder(accountHandle, profile.getDisplayName()) in createPhoneAccount()
/packages/apps/Launcher3/src/com/android/launcher3/
DFocusHelper.java188 DeviceProfile profile = ((Launcher) v.getContext()).getDeviceProfile(); in handleHotseatButtonKeyEvent() local
193 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleHotseatButtonKeyEvent()
223 !profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent()
225 true /* hotseat horizontal */, profile.inv.hotseatAllAppsRank, in handleHotseatButtonKeyEvent()
226 iconRank == profile.inv.hotseatAllAppsRank /* include all apps icon */); in handleHotseatButtonKeyEvent()
232 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent()
234 false /* hotseat horizontal */, profile.inv.hotseatAllAppsRank, in handleHotseatButtonKeyEvent()
235 iconRank == profile.inv.hotseatAllAppsRank /* include all apps icon */); in handleHotseatButtonKeyEvent()
241 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent()
289 DeviceProfile profile = launcher.getDeviceProfile(); in handleIconKeyEvent() local
[all …]
DLauncherBackupHelper.java258 mBackupDataWasUpdated = (in.profile == null) in performBackup()
259 || !Arrays.equals(DeviceProfieData.toByteArray(in.profile), in performBackup()
289 DeviceProfieData oldProfile = oldState.profile; in isBackupCompatible()
426 journal.profile = mDeviceProfileData; in getCurrentStateJournal()
439 private DeviceProfieData initDeviceProfileData(InvariantDeviceProfile profile) { in initDeviceProfileData() argument
441 data.desktopRows = profile.numRows; in initDeviceProfileData()
442 data.desktopCols = profile.numColumns; in initDeviceProfileData()
443 data.hotseatCount = profile.numHotseatIcons; in initDeviceProfileData()
444 data.allappsRank = profile.hotseatAllAppsRank; in initDeviceProfileData()
/packages/apps/Camera2/src/com/android/camera/
DCameraActivity.java1431 Profile profile = mProfiler.create("CameraActivity.onCreateTasks").start(); in onCreateTasks() local
1449 profile.mark(); in onCreateTasks()
1462 profile.mark("Glide.setup"); in onCreateTasks()
1477 profile.mark("OneCameraManager.get"); in onCreateTasks()
1504 profile.mark(); in onCreateTasks()
1511 profile.mark("computePictureSizes"); in onCreateTasks()
1526 profile.mark(); in onCreateTasks()
1528 profile.mark("setContentView()"); in onCreateTasks()
1605 profile.mark("Configure Camera UI"); in onCreateTasks()
1624 profile.mark(); in onCreateTasks()
[all …]
DVideoModule.java810 CamcorderProfile profile, Point previewScreenSize) { in getDesiredPreviewSize() argument
813 return new Point(profile.videoFrameWidth, profile.videoFrameHeight); in getDesiredPreviewSize()
823 preferred = new Size(profile.videoFrameWidth, profile.videoFrameHeight); in getDesiredPreviewSize()
839 if (size.width() == profile.videoFrameWidth in getDesiredPreviewSize()
840 && size.height() == profile.videoFrameHeight) { in getDesiredPreviewSize()
843 return new Point(profile.videoFrameWidth, profile.videoFrameHeight); in getDesiredPreviewSize()
848 (double) profile.videoFrameWidth / profile.videoFrameHeight); in getDesiredPreviewSize()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterProperties.java338 int getProfileConnectionState(int profile) { in getProfileConnectionState() argument
340 Pair<Integer, Integer> p = mProfileConnectionState.get(profile); in getProfileConnectionState()
352 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument
365 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange()
444 private void updateProfileConnectionState(int profile, int newState, int oldState) { in updateProfileConnectionState() argument
464 Pair<Integer, Integer> stateNumDev = mProfileConnectionState.get(profile); in updateProfileConnectionState()
490 mProfileConnectionState.put(profile, new Pair<Integer, Integer>(newHashState, in updateProfileConnectionState()
DAdapterService.java272 public void addProfile(ProfileService profile) { in addProfile() argument
274 mProfiles.add(profile); in addProfile()
278 public void removeProfile(ProfileService profile) { in removeProfile() argument
280 mProfiles.remove(profile); in removeProfile()
982 public int getProfileConnectionState(int profile) { in getProfileConnectionState() argument
990 return service.getProfileConnectionState(profile); in getProfileConnectionState()
1218 device, int profile, int state, int prevState) { in sendConnectionStateChange() argument
1221 service.sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange()
1483 int getProfileConnectionState(int profile) { in getProfileConnectionState() argument
1486 return mAdapterProperties.getProfileConnectionState(profile); in getProfileConnectionState()
[all …]
/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/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/Settings/src/com/android/settings/applications/
DAppStateAppOpsBridge.java164 for (final UserHandle profile : mProfiles) { in getEntries()
166 final int profileId = profile.getIdentifier(); in getEntries()
172 final PermissionState newEntry = new PermissionState(packageName, profile); in getEntries()
193 for (final UserHandle profile : mProfiles) { in loadPermissionsStates()
194 final int profileId = profile.getIdentifier(); in loadPermissionsStates()
/packages/apps/Settings/src/com/android/settings/
DUtils.java574 final Cursor profile = cr.query(Profile.CONTENT_URI, in getProfileDisplayName() local
576 if (profile == null) return null; in getProfileDisplayName()
579 if (!profile.moveToFirst()) { in getProfileDisplayName()
582 return profile.getString(0); in getProfileDisplayName()
584 profile.close(); in getProfileDisplayName()
737 final UserHandle profile = userProfiles.get(i); in getManagedProfile() local
738 if (profile.getIdentifier() == userManager.getUserHandle()) { in getManagedProfile()
741 final UserInfo userInfo = userManager.getUserInfo(profile.getIdentifier()); in getManagedProfile()
743 return profile; in getManagedProfile()
DTrustedCredentialsSettings.java333 final UserHandle profile = getGroup(groupPosition); in getGroupView() local
334 final UserInfo userInfo = mUserManager.getUserInfo(profile.getIdentifier()); in getGroupView()
442 UserHandle profile = profiles.get(i); in doInBackground() local
443 int profileId = profile.getIdentifier(); in doInBackground()
445 profile); in doInBackground()
457 UserHandle profile = profiles.get(i); in doInBackground() local
458 int profileId = profile.getIdentifier(); in doInBackground()

123