/packages/services/Car/service/src/com/android/car/ |
D | CarBluetoothUserService.java | 79 for (int profile : sProfilesToConnect) { in CarBluetoothUserService() 80 mBluetoothProfileStatus.put(profile, false); in CarBluetoothUserService() 106 for (int profile : sProfilesToConnect) { in setupBluetoothConnectionProxies() 107 logd("Creating proxy for " + Utils.getProfileName(profile)); in setupBluetoothConnectionProxies() 109 mProfileListener, profile); in setupBluetoothConnectionProxies() local 153 public void onServiceConnected(int profile, BluetoothProfile proxy) { 154 logd("onServiceConnected profile: " + Utils.getProfileName(profile)); 160 switch (profile) { 177 logd("Unhandled profile connected: " + Utils.getProfileName(profile)); 181 if (!mBluetoothProfileStatus.get(profile, false)) { [all …]
|
D | BluetoothProfileInhibitManager.java | 95 public BluetoothConnection(Integer profile, BluetoothDevice device) { in BluetoothConnection() argument 96 mBluetoothProfile = profile; in BluetoothConnection() 164 Integer profile; in decode() local 166 profile = Integer.valueOf(parts[1]); in decode() 168 profile = null; in decode() 171 return new BluetoothConnection(profile, device); in decode() 309 boolean requestProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in requestProfileInhibit() argument 310 logd("Request profile inhibit: profile " + Utils.getProfileName(profile) in requestProfileInhibit() 312 BluetoothConnection params = new BluetoothConnection(profile, device); in requestProfileInhibit() 327 boolean releaseProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in releaseProfileInhibit() argument [all …]
|
D | CarBluetoothService.java | 397 public List<BluetoothDevice> getProfileDevicePriorityList(int profile) { in getProfileDevicePriorityList() argument 401 (BluetoothProfileDeviceManager) mProfileDeviceManagers.get(profile); in getProfileDevicePriorityList() 416 public int getDeviceConnectionPriority(int profile, BluetoothDevice device) { in getDeviceConnectionPriority() argument 420 (BluetoothProfileDeviceManager) mProfileDeviceManagers.get(profile); in getDeviceConnectionPriority() 435 public void setDeviceConnectionPriority(int profile, BluetoothDevice device, int priority) { in setDeviceConnectionPriority() argument 439 (BluetoothProfileDeviceManager) mProfileDeviceManagers.get(profile); in setDeviceConnectionPriority() 457 boolean requestProfileInhibit(BluetoothDevice device, int profile, IBinder token) { in requestProfileInhibit() argument 458 logd("Request profile inhibit: profile " + Utils.getProfileName(profile) in requestProfileInhibit() 462 return mInhibitManager.requestProfileInhibit(device, profile, token); in requestProfileInhibit() 476 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.isEnabled(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() 126 VpnProfile profile = dialog.getProfile(); in onClick() local 135 if (shouldConnect && !isConnected(profile) && in onClick() 138 opts.putParcelable(ARG_PROFILE, profile); in onClick() 142 connect(profile, shouldLockdown); in onClick() [all …]
|
D | ConfigDialog.java | 94 VpnProfile profile, boolean editing, boolean exists) { in ConfigDialog() argument 98 mProfile = profile; in ConfigDialog() 303 VpnProfile profile = getProfile(); in updateUiControls() local 306 if (profile.isValidLockdownProfile()) { in updateUiControls() 312 if (!profile.isTypeValidForLockdown()) { in updateUiControls() 314 } else if (isLegacyType(profile.type) && !profile.isServerAddressNumeric()) { in updateUiControls() 316 } else if (isLegacyType(profile.type) && !profile.hasDns()) { in updateUiControls() 318 } else if (isLegacyType(profile.type) && !profile.areDnsAddressesNumeric()) { in updateUiControls() 566 VpnProfile profile = new VpnProfile(mProfile.key); in getProfile() local 567 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() 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 …]
|
/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).setEnabled(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 | 56 private void setProfileState(Class profile, int state) throws TimeoutException { in setProfileState() argument 57 Intent startIntent = new Intent(InstrumentationRegistry.getTargetContext(), profile); in setProfileState() 65 for (Class profile : mProfiles) { in setAllProfilesState() 66 setProfileState(profile, state); in setAllProfilesState() 73 for (Class profile : mProfiles) { in setAllProfilesState() 76 if (arg.getClass().getName().equals(profile.getName())) { in setAllProfilesState() 147 for (Class profile : mProfiles) { in testEnableDisableInterleaved() 148 setProfileState(profile, BluetoothAdapter.STATE_ON); in testEnableDisableInterleaved() 149 setProfileState(profile, BluetoothAdapter.STATE_OFF); in testEnableDisableInterleaved() 178 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 | 169 SipProfile profile = intent.getParcelableExtra(KEY_SIP_PROFILE); in onActivityResult() local 171 if (VERBOSE) log("onActivityResult, new: " + profile.getProfileName()); in onActivityResult() 172 addProfile(profile); in onActivityResult() 195 private String getProfileName(SipProfile profile) { in getProfileName() argument 196 String profileName = profile.getProfileName(); in getProfileName() 198 profileName = profile.getUserName() + "@" + profile.getSipDomain(); in getProfileName() 249 SipProfile profile = getProfileFromList(activeProfile); in processActiveProfilesFromSipService() local 250 if (profile == null) { in processActiveProfilesFromSipService() 253 profile.setCallingUid(activeProfile.getCallingUid()); in processActiveProfilesFromSipService() 284 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() 244 for (SipProfile profile : sipProfileList) { in startSipProfiles() 247 if (sipProfileName == null || sipProfileName.equals(profile.getProfileName())) { in startSipProfiles() 248 PhoneAccount phoneAccount = SipUtil.createPhoneAccount(context, profile); in startSipProfiles() 253 startSipServiceForProfile(profile, sipManager, context, isReceivingCalls); in startSipProfiles() 268 private void startSipServiceForProfile(SipProfile profile, SipManager sipManager, in startSipServiceForProfile() argument 270 removeSipProfile(profile.getUriString()); in startSipServiceForProfile() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | BluetoothDetailsProfilesControllerTest.java | 183 LocalBluetoothProfile profile = new FakeBluetoothProfile(mContext, profileNameResId); in addFakeProfile() local 184 profile.setEnabled(mDevice, deviceIsPreferred); in addFakeProfile() 185 mConnectableProfiles.add(profile); in addFakeProfile() 186 when(mProfileManager.getProfileByName(eq(profile.toString()))).thenReturn(profile); in addFakeProfile() 187 return profile; in addFakeProfile() 349 A2dpProfile profile = mock(A2dpProfile.class); in addMockA2dpProfile() local 350 when(mProfileManager.getProfileByName(eq(profile.toString()))).thenReturn(profile); in addMockA2dpProfile() 351 when(profile.getNameResource(mDevice)).thenReturn(R.string.bluetooth_profile_a2dp); in addMockA2dpProfile() 352 when(profile.getHighQualityAudioOptionLabel(mDevice)).thenReturn( in addMockA2dpProfile() 354 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 | 274 DeviceProfile profile = new DeviceProfile(context, inv, originalIdp, mwSize, mwSize, in getMultiWindowProfile() local 278 float workspaceCellPaddingY = profile.getCellSize().y - profile.iconSizePx in getMultiWindowProfile() 279 - iconDrawablePaddingPx - profile.iconTextSizePx; in getMultiWindowProfile() 280 if (workspaceCellPaddingY < profile.iconDrawablePaddingPx * 2) { in getMultiWindowProfile() 281 profile.adjustToHideWorkspaceLabels(); in getMultiWindowProfile() 286 float appWidgetScaleX = (float) profile.getCellSize().x / getCellSize().x; in getMultiWindowProfile() 287 float appWidgetScaleY = (float) profile.getCellSize().y / getCellSize().y; in getMultiWindowProfile() 288 profile.appWidgetScale.set(appWidgetScaleX, appWidgetScaleY); in getMultiWindowProfile() 289 profile.updateWorkspacePadding(); in getMultiWindowProfile() 291 return profile; in getMultiWindowProfile()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/ |
D | AdapterService.java | 249 public void addProfile(ProfileService profile) { in addProfile() argument 250 mHandler.obtainMessage(MESSAGE_PROFILE_SERVICE_REGISTERED, profile).sendToTarget(); in addProfile() 258 public void removeProfile(ProfileService profile) { in removeProfile() argument 259 mHandler.obtainMessage(MESSAGE_PROFILE_SERVICE_UNREGISTERED, profile).sendToTarget(); in removeProfile() 268 public void onProfileServiceStateChanged(ProfileService profile, int state) { in onProfileServiceStateChanged() argument 273 m.obj = profile; in onProfileServiceStateChanged() 303 private void registerProfileService(ProfileService profile) { in registerProfileService() argument 304 if (mRegisteredProfiles.contains(profile)) { in registerProfileService() 305 Log.e(TAG, profile.getName() + " already registered."); in registerProfileService() 308 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 0 /* deprecated */, profile, mService.obfuscateAddress(device), in sendConnectionStateChange() 589 "PROFILE_CONNECTION_STATE_CHANGE: unexpected transition for profile=" + profile in sendConnectionStateChange() 592 sendConnectionStateChange(device, profile, state, prevState); in sendConnectionStateChange() 595 void sendConnectionStateChange(BluetoothDevice device, int profile, int state, int prevState) { in sendConnectionStateChange() argument 607 updateProfileConnectionState(profile, state, prevState); in sendConnectionStateChange() 623 + 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/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothDeviceProfilesPreferenceController.java | 41 LocalBluetoothProfile profile = profilePref.getProfile(); 42 profile.setEnabled(profilePref.getCachedDevice().getDevice(), isChecked); 58 for (LocalBluetoothProfile profile : getCachedDevice().getProfiles()) { in updateState() 59 Preference profilePref = preferenceGroup.findPreference(profile.toString()); in updateState() 61 profilePref = new BluetoothDeviceProfilePreference(getContext(), profile, in updateState()
|
/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 …]
|