/packages/services/Car/service/src/com/android/car/ |
D | CarBluetoothUserService.java | 80 for (int profile : sProfilesToConnect) { in CarBluetoothUserService() 81 mBluetoothProfileStatus.put(profile, false); in CarBluetoothUserService() 104 for (int profile : sProfilesToConnect) { in setupBluetoothConnectionProxies() 105 if (mBluetoothProfileStatus.get(profile, false)) { in setupBluetoothConnectionProxies() 106 logd(Utils.getProfileName(profile) + " is already connected"); in setupBluetoothConnectionProxies() 109 logd("Connecting " + Utils.getProfileName(profile)); in setupBluetoothConnectionProxies() 111 mProfileListener, profile); in setupBluetoothConnectionProxies() local 184 public void onServiceConnected(int profile, BluetoothProfile proxy) { 185 logd("OnServiceConnected profile: " + Utils.getProfileName(profile)); 190 switch (profile) { [all …]
|
D | BluetoothProfileInhibitManager.java | 93 public BluetoothConnection(Integer profile, BluetoothDevice device) { in BluetoothConnection() argument 94 mBluetoothProfile = profile; in BluetoothConnection() 162 Integer profile; in decode() local 164 profile = Integer.valueOf(parts[1]); in decode() 166 profile = null; in decode() 169 return new BluetoothConnection(profile, device); in decode() 307 boolean requestProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in requestProfileInhibit() argument 308 logd("Request profile inhibit: profile " + Utils.getProfileName(profile) in requestProfileInhibit() 310 BluetoothConnection params = new BluetoothConnection(profile, device); in requestProfileInhibit() 325 boolean releaseProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in releaseProfileInhibit() argument [all …]
|
D | CarBluetoothService.java | 351 public List<BluetoothDevice> getProfileDevicePriorityList(int profile) { in getProfileDevicePriorityList() argument 355 (BluetoothProfileDeviceManager) mProfileDeviceManagers.get(profile); in getProfileDevicePriorityList() 370 public int getDeviceConnectionPriority(int profile, BluetoothDevice device) { in getDeviceConnectionPriority() argument 374 (BluetoothProfileDeviceManager) mProfileDeviceManagers.get(profile); in getDeviceConnectionPriority() 389 public void setDeviceConnectionPriority(int profile, BluetoothDevice device, int priority) { in setDeviceConnectionPriority() argument 393 (BluetoothProfileDeviceManager) mProfileDeviceManagers.get(profile); in setDeviceConnectionPriority() 411 synchronized boolean requestProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in requestProfileInhibit() argument 412 logd("Request profile inhibit: profile " + Utils.getProfileName(profile) in requestProfileInhibit() 415 return mInhibitManager.requestProfileInhibit(device, profile, token); in requestProfileInhibit() 428 synchronized boolean releaseProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in releaseProfileInhibit() argument [all …]
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesController.java | 86 LocalBluetoothProfile profile) { in createProfilePreference() argument 88 pref.setKey(profile.toString()); in createProfilePreference() 89 pref.setTitle(profile.getNameResource(mCachedDevice.getDevice())); in createProfilePreference() 91 pref.setOrder(profile.getOrdinal()); in createProfilePreference() 99 LocalBluetoothProfile profile) { in refreshProfilePreference() argument 102 if (profile instanceof MapProfile) { in refreshProfilePreference() 105 } else if (profile instanceof PbapServerProfile) { in refreshProfilePreference() 108 } else if (profile instanceof PanProfile) { in refreshProfilePreference() 109 profilePref.setChecked(profile.getConnectionStatus(device) == in refreshProfilePreference() 112 profilePref.setChecked(profile.isPreferred(device)); in refreshProfilePreference() [all …]
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
D | ConfigDialogFragment.java | 65 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument 69 args.putParcelable(ARG_PROFILE, profile); in show() 88 VpnProfile profile = (VpnProfile) args.getParcelable(ARG_PROFILE); in onCreateDialog() local 92 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog() 114 VpnProfile profile = (VpnProfile) options.getParcelable(ARG_PROFILE); in onConfirmLockdown() local 115 connect(profile, isAlwaysOn); in onConfirmLockdown() 122 VpnProfile profile = dialog.getProfile(); in onClick() local 131 if (shouldConnect && !isConnected(profile) && in onClick() 134 opts.putParcelable(ARG_PROFILE, profile); in onClick() 138 connect(profile, shouldLockdown); in onClick() [all …]
|
D | ConfigDialog.java | 88 VpnProfile profile, boolean editing, boolean exists) { in ConfigDialog() argument 92 mProfile = profile; in ConfigDialog() 300 VpnProfile profile = getProfile(); in updateUiControls() local 303 if (profile.isValidLockdownProfile()) { in updateUiControls() 309 if (!profile.isTypeValidForLockdown()) { in updateUiControls() 311 } else if (!profile.isServerAddressNumeric()) { in updateUiControls() 313 } else if (!profile.hasDns()) { in updateUiControls() 315 } else if (!profile.areDnsAddressesNumeric()) { in updateUiControls() 483 VpnProfile profile = new VpnProfile(mProfile.key); in getProfile() local 484 profile.name = mName.getText().toString(); in getProfile() [all …]
|
D | VpnSettings.java | 163 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected() local 164 ConfigDialogFragment.show(this, profile, true /* editing */, false /* exists */); in onOptionsItemSelected() 295 for (VpnProfile profile : vpnProfiles) { in run() 296 LegacyVpnPreference p = mSettings.findOrCreatePreference(profile, true); in run() 297 if (connectedLegacyVpns.containsKey(profile.key)) { in run() 298 p.setState(connectedLegacyVpns.get(profile.key).state); in run() 302 p.setAlwaysOn(lockdownVpnKey != null && lockdownVpnKey.equals(profile.key)); in run() 364 VpnProfile profile = pref.getProfile(); in onPreferenceClick() local 365 if (mConnectedLegacyVpn != null && profile.key.equals(mConnectedLegacyVpn.key) && in onPreferenceClick() 374 ConfigDialogFragment.show(this, profile, false /* editing */, true /* exists */); in onPreferenceClick() [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/ |
D | ConfigDialogFragment.java | 65 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { in show() argument 69 args.putParcelable(ARG_PROFILE, profile); in show() 88 VpnProfile profile = (VpnProfile) args.getParcelable(ARG_PROFILE); in onCreateDialog() local 92 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists); in onCreateDialog() 114 VpnProfile profile = (VpnProfile) options.getParcelable(ARG_PROFILE); in onConfirmLockdown() local 115 connect(profile, isAlwaysOn); in onConfirmLockdown() 122 VpnProfile profile = dialog.getProfile(); in onClick() local 131 if (shouldConnect && !isConnected(profile) && in onClick() 134 opts.putParcelable(ARG_PROFILE, profile); in onClick() 138 connect(profile, shouldLockdown); in onClick() [all …]
|
D | ConfigDialog.java | 88 VpnProfile profile, boolean editing, boolean exists) { in ConfigDialog() argument 92 mProfile = profile; in ConfigDialog() 300 VpnProfile profile = getProfile(); in updateUiControls() local 303 if (profile.isValidLockdownProfile()) { in updateUiControls() 309 if (!profile.isTypeValidForLockdown()) { in updateUiControls() 311 } else if (!profile.isServerAddressNumeric()) { in updateUiControls() 313 } else if (!profile.hasDns()) { in updateUiControls() 315 } else if (!profile.areDnsAddressesNumeric()) { in updateUiControls() 483 VpnProfile profile = new VpnProfile(mProfile.key); in getProfile() local 484 profile.name = mName.getText().toString(); in getProfile() [all …]
|
D | VpnSettings.java | 163 VpnProfile profile = new VpnProfile(Long.toHexString(millis)); in onOptionsItemSelected() local 164 ConfigDialogFragment.show(this, profile, true /* editing */, false /* exists */); in onOptionsItemSelected() 295 for (VpnProfile profile : vpnProfiles) { in run() 296 LegacyVpnPreference p = mSettings.findOrCreatePreference(profile, true); in run() 297 if (connectedLegacyVpns.containsKey(profile.key)) { in run() 298 p.setState(connectedLegacyVpns.get(profile.key).state); in run() 302 p.setAlwaysOn(lockdownVpnKey != null && lockdownVpnKey.equals(profile.key)); in run() 364 VpnProfile profile = pref.getProfile(); in onPreferenceClick() local 365 if (mConnectedLegacyVpn != null && profile.key.equals(mConnectedLegacyVpn.key) && in onPreferenceClick() 374 ConfigDialogFragment.show(this, profile, false /* editing */, true /* exists */); in onPreferenceClick() [all …]
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilesPreferenceControllerTest.java | 143 LocalBluetoothProfile profile = mock(LocalBluetoothProfile.class); in refreshUi_profiles_showsPreference() local 144 when(profile.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in refreshUi_profiles_showsPreference() 145 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in refreshUi_profiles_showsPreference() 163 LocalBluetoothProfile profile = mock(LocalBluetoothProfile.class); in profileChecked_setsProfilePreferred() local 164 when(profile.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in profileChecked_setsProfilePreferred() 165 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileChecked_setsProfilePreferred() 173 verify(profile).setPreferred(mDevice, true); in profileChecked_setsProfilePreferred() 178 LocalBluetoothProfile profile = mock(LocalBluetoothProfile.class); in profileChecked_connectsToProfile() local 179 when(profile.getNameResource(mDevice)).thenReturn(R.string.bt_profile_name); in profileChecked_connectsToProfile() 180 when(mCachedDevice.getProfiles()).thenReturn(Collections.singletonList(profile)); in profileChecked_connectsToProfile() [all …]
|
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/ |
D | ProfileServiceTest.java | 55 private void setProfileState(Class profile, int state) throws TimeoutException { in setProfileState() argument 56 Intent startIntent = new Intent(InstrumentationRegistry.getTargetContext(), profile); in setProfileState() 64 for (Class profile : mProfiles) { in setAllProfilesState() 65 setProfileState(profile, state); in setAllProfilesState() 72 for (Class profile : mProfiles) { in setAllProfilesState() 75 if (arg.getClass().getName().equals(profile.getName())) { in setAllProfilesState() 143 for (Class profile : mProfiles) { in testEnableDisableInterleaved() 144 setProfileState(profile, BluetoothAdapter.STATE_ON); in testEnableDisableInterleaved() 145 setProfileState(profile, BluetoothAdapter.STATE_OFF); in testEnableDisableInterleaved() 174 for (Class profile : mProfiles) { in testRepeatedEnableDisableSingly() [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipConnectionService.java | 49 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 …]
|
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() 136 SipProfile profile = profileDb.retrieveSipProfileFromName(profileName); in verifyAndPurgeInvalidPhoneAccounts() local 137 if (profile == null) { in verifyAndPurgeInvalidPhoneAccounts() 243 for (SipProfile profile : sipProfileList) { in startSipProfiles() 246 if (sipProfileName == null || sipProfileName.equals(profile.getProfileName())) { in startSipProfiles() 247 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile); in startSipProfiles() 252 startSipServiceForProfile(profile, sipManager, context, isReceivingCalls); in startSipProfiles() 267 private void startSipServiceForProfile(SipProfile profile, SipManager sipManager, in startSipServiceForProfile() argument 269 removeSipProfile(profile.getUriString()); in startSipServiceForProfile() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 193 LocalBluetoothProfile profile = new FakeBluetoothProfile(mContext, profileNameResId); in addFakeProfile() local 194 profile.setPreferred(mDevice, deviceIsPreferred); in addFakeProfile() 195 mConnectableProfiles.add(profile); in addFakeProfile() 196 when(mProfileManager.getProfileByName(eq(profile.toString()))).thenReturn(profile); in addFakeProfile() 197 return profile; in addFakeProfile() 359 A2dpProfile profile = mock(A2dpProfile.class); in addMockA2dpProfile() local 360 when(mProfileManager.getProfileByName(eq(profile.toString()))).thenReturn(profile); in addMockA2dpProfile() 361 when(profile.getNameResource(mDevice)).thenReturn(R.string.bluetooth_profile_a2dp); in addMockA2dpProfile() 362 when(profile.getHighQualityAudioOptionLabel(mDevice)).thenReturn( in addMockA2dpProfile() 364 when(profile.supportsHighQualityAudio(mDevice)).thenReturn(supportsHighQualityAudio); in addMockA2dpProfile() [all …]
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | ShortcutAndWidgetContainer.java | 96 DeviceProfile profile = mActivity.getWallpaperDeviceProfile(); in setupLp() local 98 profile.appWidgetScale.x, profile.appWidgetScale.y); in setupLp() 116 final DeviceProfile profile = mActivity.getWallpaperDeviceProfile(); in measureChild() local 120 profile.appWidgetScale.x, profile.appWidgetScale.y); in measureChild() 128 ? profile.workspaceCellPaddingXPx in measureChild() 129 : (int) (profile.edgeMarginPx / 2f); in measureChild() 153 DeviceProfile profile = mActivity.getDeviceProfile(); in onLayout() local 154 float scaleX = profile.appWidgetScale.x; in onLayout() 155 float scaleY = profile.appWidgetScale.y; in onLayout()
|
D | FocusHelper.java | 211 final DeviceProfile profile = launcher.getDeviceProfile(); in handleHotseatButtonKeyEvent() local 216 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleHotseatButtonKeyEvent() 244 !profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent() 245 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent() 249 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent() 250 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile); in handleHotseatButtonKeyEvent() 254 profile.isVerticalBarLayout()) { in handleHotseatButtonKeyEvent() 326 DeviceProfile profile = launcher.getDeviceProfile(); in handleIconKeyEvent() local 330 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout())); in handleIconKeyEvent() 353 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && !profile.isVerticalBarLayout()) { in handleIconKeyEvent() [all …]
|
D | DeviceProfile.java | 251 DeviceProfile profile = new DeviceProfile(context, inv, mwSize, mwSize, mwSize.x, mwSize.y, in getMultiWindowProfile() local 255 float workspaceCellPaddingY = profile.getCellSize().y - profile.iconSizePx in getMultiWindowProfile() 256 - iconDrawablePaddingPx - profile.iconTextSizePx; in getMultiWindowProfile() 257 if (workspaceCellPaddingY < profile.iconDrawablePaddingPx * 2) { in getMultiWindowProfile() 258 profile.adjustToHideWorkspaceLabels(); in getMultiWindowProfile() 263 float appWidgetScaleX = (float) profile.getCellSize().x / getCellSize().x; in getMultiWindowProfile() 264 float appWidgetScaleY = (float) profile.getCellSize().y / getCellSize().y; in getMultiWindowProfile() 265 profile.appWidgetScale.set(appWidgetScaleX, appWidgetScaleY); in getMultiWindowProfile() 266 profile.updateWorkspacePadding(); in getMultiWindowProfile() 268 return profile; in getMultiWindowProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilesPreferenceController.java | 41 LocalBluetoothProfile profile = profilePref.getProfile(); 42 profile.setPreferred(profilePref.getCachedDevice().getDevice(), isChecked); 44 getCachedDevice().connectProfile(profile); 46 getCachedDevice().disconnect(profile); 63 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState() 64 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() 66 profilePref = new BluetoothDeviceProfilePreference(getContext(), profile, in updateState()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 206 public void addProfile(ProfileService profile) { in addProfile() argument 207 mHandler.obtainMessage(MESSAGE_PROFILE_SERVICE_REGISTERED, profile).sendToTarget(); in addProfile() 215 public void removeProfile(ProfileService profile) { in removeProfile() argument 216 mHandler.obtainMessage(MESSAGE_PROFILE_SERVICE_UNREGISTERED, profile).sendToTarget(); in removeProfile() 225 public void onProfileServiceStateChanged(ProfileService profile, int state) { in onProfileServiceStateChanged() argument 230 m.obj = profile; in onProfileServiceStateChanged() 260 private void registerProfileService(ProfileService profile) { in registerProfileService() argument 261 if (mRegisteredProfiles.contains(profile)) { in registerProfileService() 262 Log.e(TAG, profile.getName() + " already registered."); in registerProfileService() 265 mRegisteredProfiles.add(profile); in registerProfileService() [all …]
|
D | AdapterProperties.java | 558 int getProfileConnectionState(int profile) { in getProfileConnectionState() argument 560 Pair<Integer, Integer> p = mProfileConnectionState.get(profile); in getProfileConnectionState() 576 private void sendConnectionStateChange(int profile, Intent connIntent) { in sendConnectionStateChange() argument 581 "PROFILE_CONNECTION_STATE_CHANGE: profile=" + profile + ", device=" + device + ", " in sendConnectionStateChange() 584 profile, mService.obfuscateAddress(device)); in sendConnectionStateChange() 588 "PROFILE_CONNECTION_STATE_CHANGE: unexpected transition for profile=" + profile in sendConnectionStateChange() 591 sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() 594 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 606 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange() 622 + profile + ", device=" + device + ", " + prevState + " -> " + state); in sendConnectionStateChange() [all …]
|
/packages/services/Car/car-lib/src/android/car/ |
D | ICarBluetoothUserService.aidl | 25 boolean isBluetoothConnectionProxyAvailable(in int profile); in isBluetoothConnectionProxyAvailable() argument 26 boolean bluetoothConnectToProfile(in int profile, in BluetoothDevice device); in bluetoothConnectToProfile() argument 27 boolean bluetoothDisconnectFromProfile(in int profile, in BluetoothDevice device); in bluetoothDisconnectFromProfile() argument 28 int getProfilePriority(in int profile, in BluetoothDevice device); in getProfilePriority() argument 29 void setProfilePriority(in int profile, in BluetoothDevice device, in int priority); in setProfilePriority() argument
|
/packages/apps/Settings/src/com/android/settings/ |
D | Utils.java | 367 final Cursor profile = cr.query(Profile.CONTENT_URI, in getProfileDisplayName() local 369 if (profile == null) return null; in getProfileDisplayName() 372 if (!profile.moveToFirst()) { in getProfileDisplayName() 375 return profile.getString(0); in getProfileDisplayName() 377 profile.close(); in getProfileDisplayName() 392 for (UserHandle profile : userProfiles) { in getManagedProfile() 393 if (profile.getIdentifier() == userManager.getUserHandle()) { in getManagedProfile() 396 final UserInfo userInfo = userManager.getUserInfo(profile.getIdentifier()); in getManagedProfile() 398 return profile; in getManagedProfile() 418 final UserInfo profile = profiles.get(i); in getManagedProfileWithDisabled() local [all …]
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | Utils.java | 372 final Cursor profile = cr.query(Profile.CONTENT_URI, in getProfileDisplayName() local 374 if (profile == null) return null; in getProfileDisplayName() 377 if (!profile.moveToFirst()) { in getProfileDisplayName() 380 return profile.getString(0); in getProfileDisplayName() 382 profile.close(); in getProfileDisplayName() 397 for (UserHandle profile : userProfiles) { in getManagedProfile() 398 if (profile.getIdentifier() == userManager.getUserHandle()) { in getManagedProfile() 401 final UserInfo userInfo = userManager.getUserInfo(profile.getIdentifier()); in getManagedProfile() 403 return profile; in getManagedProfile() 423 final UserInfo profile = profiles.get(i); in getManagedProfileWithDisabled() local [all …]
|