/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | DeviceProfilesSettings.java | 173 for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) { in addPreferencesForProfiles() 174 CheckBox pref = createProfilePreference(profile); in addPreferencesForProfiles() 177 if (profile instanceof A2dpProfile) { in addPreferencesForProfiles() 179 A2dpProfile a2dpProfile = (A2dpProfile) profile; in addPreferencesForProfiles() 189 refreshProfilePreference(pref, profile); in addPreferencesForProfiles() 232 private CheckBox createProfilePreference(LocalBluetoothProfile profile) { in createProfilePreference() argument 234 pref.setTag(profile.toString()); in createProfilePreference() 235 pref.setText(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference() 238 refreshProfilePreference(pref, profile); in createProfilePreference() 251 private void onProfileClicked(LocalBluetoothProfile profile, CheckBox profilePref) { in onProfileClicked() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ConfigDialogFragment.java | 68 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument 72 args.putParcelable(ARG_PROFILE, profile); in show() 112 VpnProfile profile = (VpnProfile) args.getParcelable(ARG_PROFILE); in onCreateDialog() local 116 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog() 138 VpnProfile profile = (VpnProfile) options.getParcelable(ARG_PROFILE); in onConfirmLockdown() local 139 connect(profile, isAlwaysOn); in onConfirmLockdown() 146 VpnProfile profile = dialog.getProfile(); in onClick() local 155 if (shouldConnect && !isConnected(profile) && in onClick() 158 opts.putParcelable(ARG_PROFILE, profile); in onClick() 162 connect(profile, shouldLockdown); in onClick() [all …]
|
D | ConfigDialog.java | 82 VpnProfile profile, boolean editing, boolean exists) { in ConfigDialog() argument 86 mProfile = profile; in ConfigDialog() 277 VpnProfile profile = getProfile(); in updateUiControls() local 280 if (profile.isValidLockdownProfile()) { in updateUiControls() 286 if (!profile.isTypeValidForLockdown()) { in updateUiControls() 288 } else if (!profile.isServerAddressNumeric()) { in updateUiControls() 290 } else if (!profile.hasDns()) { in updateUiControls() 292 } else if (!profile.areDnsAddressesNumeric()) { in updateUiControls() 439 VpnProfile profile = new VpnProfile(mProfile.key); in getProfile() local 440 profile.name = mName.getText().toString(); in getProfile() [all …]
|
D | VpnSettings.java | 162 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected() local 163 ConfigDialogFragment.show(this, profile, true /* editing */, false /* exists */); in onOptionsItemSelected() 294 for (VpnProfile profile : vpnProfiles) { in run() 295 LegacyVpnPreference p = mSettings.findOrCreatePreference(profile, true); in run() 296 if (connectedLegacyVpns.containsKey(profile.key)) { in run() 297 p.setState(connectedLegacyVpns.get(profile.key).state); in run() 301 p.setAlwaysOn(lockdownVpnKey != null && lockdownVpnKey.equals(profile.key)); in run() 363 VpnProfile profile = pref.getProfile(); in onPreferenceClick() local 364 if (mConnectedLegacyVpn != null && profile.key.equals(mConnectedLegacyVpn.key) && in onPreferenceClick() 373 ConfigDialogFragment.show(this, profile, false /* editing */, true /* exists */); in onPreferenceClick() [all …]
|
D | LegacyVpnPreference.java | 44 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/Settings/tests/app/src/com/android/settings/vpn2/ |
D | VpnTests.java | 159 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 …]
|
D | VpnProfileParser.java | 61 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 …]
|
/packages/services/Car/service/src/com/android/car/ |
D | BluetoothDeviceConnectionPolicy.java | 155 for (Integer profile: mProfilesToConnect) { in BluetoothDeviceConnectionPolicy() 156 switch (profile) { in BluetoothDeviceConnectionPolicy() 202 public ConnectionParams(Integer profile) { in ConnectionParams() argument 203 mBluetoothProfile = profile; in ConnectionParams() 206 public ConnectionParams(Integer profile, BluetoothDevice device) { in ConnectionParams() argument 207 mBluetoothProfile = profile; in ConnectionParams() 216 public void setBluetoothProfile(Integer profile) { in setBluetoothProfile() argument 217 mBluetoothProfile = profile; in setBluetoothProfile() 340 for (Integer profile : mProfilesToConnect) { in setProfilePriorities() 341 setBluetoothProfilePriorityIfUuidFound(uuids, profile, device, priority); in setProfilePriorities() [all …]
|
D | CarBluetoothUserService.java | 67 for (Integer profile : mProfilesToConnect) { in setupBluetoothConnectionProxy() 69 profile); in setupBluetoothConnectionProxy() local 107 public boolean isBluetoothConnectionProxyAvailable(int profile) { in isBluetoothConnectionProxyAvailable() argument 108 switch (profile) { in isBluetoothConnectionProxyAvailable() 134 public void bluetoothConnectToProfile(int profile, BluetoothDevice device) { in bluetoothConnectToProfile() argument 135 if (!isBluetoothConnectionProxyAvailable(profile)) { in bluetoothConnectToProfile() 140 Log.d(TAG, "Trying to connect to " + device.getName() + " Profile: " + profile); in bluetoothConnectToProfile() 142 switch (profile) { in bluetoothConnectToProfile() 173 public void setProfilePriority(int profile, BluetoothDevice device, int priority) { in setProfilePriority() argument 174 if (!isBluetoothConnectionProxyAvailable(profile)) { in setProfilePriority() [all …]
|
D | BluetoothDevicesInfo.java | 74 public ConnectionInfo(int profile) { in ConnectionInfo() argument 76 this(profile, 1); in ConnectionInfo() 79 public ConnectionInfo(int profile, int numConnectionsSupported) { in ConnectionInfo() argument 80 mProfile = profile; in ConnectionInfo() 120 public BluetoothDevicesInfo(int profile) { in BluetoothDevicesInfo() argument 122 mConnectionInfo = new ConnectionInfo(profile); in BluetoothDevicesInfo() 125 public BluetoothDevicesInfo(int profile, int numConnectionsSupported) { in BluetoothDevicesInfo() argument 127 mConnectionInfo = new ConnectionInfo(profile, numConnectionsSupported); in BluetoothDevicesInfo()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | Config.java | 112 private static boolean isProfileDisabled(Context context, Class profile) { in isProfileDisabled() argument 113 final int profileIndex = getProfileIndex(profile); in isProfileDisabled() 128 private static int getProfileIndex(Class profile) { in getProfileIndex() argument 131 if (profile == HeadsetService.class) { in getProfileIndex() 133 } else if (profile == A2dpService.class) { in getProfileIndex() 135 } else if (profile == A2dpSinkService.class) { in getProfileIndex() 137 } else if (profile == HidService.class) { in getProfileIndex() 139 } else if (profile == HealthService.class) { in getProfileIndex() 141 } else if (profile == PanService.class) { in getProfileIndex() 143 } else if (profile == GattService.class) { in getProfileIndex() [all …]
|
D | AdapterProperties.java | 420 int getProfileConnectionState(int profile) { in getProfileConnectionState() argument 422 Pair<Integer, Integer> p = mProfileConnectionState.get(profile); in getProfileConnectionState() 436 private void sendConnectionStateChange(int profile, Intent connIntent) { in sendConnectionStateChange() argument 440 sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() 442 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 455 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange() 534 private void updateProfileConnectionState(int profile, int newState, int oldState) { in updateProfileConnectionState() argument 554 Pair<Integer, Integer> stateNumDev = mProfileConnectionState.get(profile); in updateProfileConnectionState() 580 mProfileConnectionState.put(profile, new Pair<Integer, Integer>(newHashState, in updateProfileConnectionState()
|
D | AdapterService.java | 227 public void addProfile(ProfileService profile) { in addProfile() argument 229 if (!mProfiles.contains(profile)) { in addProfile() 230 mProfiles.add(profile); in addProfile() 235 public void removeProfile(ProfileService profile) { in removeProfile() argument 237 mProfiles.remove(profile); in removeProfile() 976 public int getProfileConnectionState(int profile) { in getProfileConnectionState() argument 984 return service.getProfileConnectionState(profile); in getProfileConnectionState() 1236 device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 1239 service.sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() 1528 int getProfileConnectionState(int profile) { in getProfileConnectionState() argument [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipConnectionService.java | 48 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 …]
|
D | SipSettings.java | 168 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 …]
|
D | SipAccountRegistry.java | 39 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 …]
|
D | SipUtil.java | 110 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()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ShortcutAndWidgetContainer.java | 91 DeviceProfile profile = mLauncher.getDeviceProfile(); in setupLp() local 93 profile.appWidgetScale.x, profile.appWidgetScale.y); in setupLp() 112 final DeviceProfile profile = mLauncher.getDeviceProfile(); in measureChild() local 116 profile.appWidgetScale.x, profile.appWidgetScale.y); in measureChild() 123 int cellPaddingX = (int) (profile.edgeMarginPx / 2f); in measureChild() 153 DeviceProfile profile = mLauncher.getDeviceProfile(); in onLayout() local 154 float scaleX = profile.appWidgetScale.x; in onLayout() 155 float scaleY = profile.appWidgetScale.y; in onLayout()
|
D | FocusHelper.java | 208 final DeviceProfile profile = launcher.getDeviceProfile(); in handleHotseatButtonKeyEvent() local 213 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleHotseatButtonKeyEvent() 241 !profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent() 242 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent() 246 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent() 247 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent() 251 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent() 337 DeviceProfile profile = launcher.getDeviceProfile(); in handleIconKeyEvent() local 341 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleIconKeyEvent() 364 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && !profile.isVerticalBarLayout()) { in handleIconKeyEvent() [all …]
|
D | DeviceProfile.java | 223 DeviceProfile profile = new DeviceProfile(context, inv, mwSize, mwSize, mwSize.x, mwSize.y, in getMultiWindowProfile() local 227 profile.iconTextSizePx = 0; in getMultiWindowProfile() 228 profile.cellHeightPx = profile.iconSizePx + profile.iconDrawablePaddingPx in getMultiWindowProfile() 229 + Utilities.calculateTextHeight(profile.iconTextSizePx); in getMultiWindowProfile() 232 profile.hotseatBarBottomPaddingPx = profile.hotseatBarTopPaddingPx; in getMultiWindowProfile() 236 float appWidgetScaleX = (float) profile.getCellSize().x / getCellSize().x; in getMultiWindowProfile() 237 float appWidgetScaleY = (float) profile.getCellSize().y / getCellSize().y; in getMultiWindowProfile() 238 profile.appWidgetScale.set(appWidgetScaleX, appWidgetScaleY); in getMultiWindowProfile() 240 return profile; in getMultiWindowProfile()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/ |
D | BluetoothHeadsetFragment.java | 230 public void onServiceConnected(int profile, BluetoothProfile proxy) { in onServiceConnected() argument 231 Log.d(TAG, "Proxy connected for profile: " + profile); in onServiceConnected() 232 switch (profile) { in onServiceConnected() 237 Log.w(TAG, "onServiceConnected not supported profile: " + profile); in onServiceConnected() 242 public void onServiceDisconnected(int profile) { in onServiceDisconnected() argument 243 Log.d(TAG, "Proxy disconnected for profile: " + profile); in onServiceDisconnected() 244 switch (profile) { in onServiceDisconnected() 249 Log.w(TAG, "onServiceDisconnected not supported profile: " + profile); in onServiceDisconnected()
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 447 final Cursor profile = cr.query(Profile.CONTENT_URI, in getProfileDisplayName() local 449 if (profile == null) return null; in getProfileDisplayName() 452 if (!profile.moveToFirst()) { in getProfileDisplayName() 455 return profile.getString(0); in getProfileDisplayName() 457 profile.close(); in getProfileDisplayName() 613 final UserHandle profile = userProfiles.get(i); in getManagedProfile() local 614 if (profile.getIdentifier() == userManager.getUserHandle()) { in getManagedProfile() 617 final UserInfo userInfo = userManager.getUserInfo(profile.getIdentifier()); in getManagedProfile() 619 return profile; in getManagedProfile() 639 final UserInfo profile = profiles.get(i); in getManagedProfileWithDisabled() local [all …]
|
/packages/apps/Camera2/src/com/android/camera/ |
D | CameraActivity.java | 1431 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 …]
|
/packages/apps/Settings/src/com/android/settings/network/ |
D | TetherPreferenceController.java | 61 public void onServiceConnected(int profile, BluetoothProfile proxy) { 66 public void onServiceDisconnected(int profile) { 159 final BluetoothProfile profile = mBluetoothPan.getAndSet(null); in onDestroy() local 160 if (profile != null && mBluetoothAdapter != null) { in onDestroy() 161 mBluetoothAdapter.closeProfileProxy(BluetoothProfile.PAN, profile); in onDestroy()
|
/packages/apps/Camera2/src/com/android/camera/data/ |
D | VideoDataFactory.java | 56 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()
|