Searched refs:profile (Results 1 - 25 of 68) sorted by relevance

123

/packages/services/Car/car-lib/src/android/car/
H A DICarBluetoothUserService.aidl25 boolean isBluetoothConnectionProxyAvailable(in int profile);
26 void bluetoothConnectToProfile(in int profile, in BluetoothDevice device);
27 void setProfilePriority(in int profile, in BluetoothDevice device, in int priority);
/packages/apps/Camera2/src/com/android/camera/stats/profiler/
H A DLoggingProfiler.java32 LoggingProfile profile = new LoggingProfile(mWriter, name);
33 profile.start();
34 return profile;
/packages/apps/Settings/src/com/android/settings/vpn2/
H A DConfigDialogFragment.java52 private static final String ARG_PROFILE = "profile";
68 public static void show(VpnSettings parent, VpnProfile profile, boolean edit, boolean exists) { argument
72 args.putParcelable(ARG_PROFILE, profile);
112 VpnProfile profile = (VpnProfile) args.getParcelable(ARG_PROFILE);
116 final Dialog dialog = new ConfigDialog(getActivity(), this, profile, editing, exists);
138 VpnProfile profile = (VpnProfile) options.getParcelable(ARG_PROFILE);
139 connect(profile, isAlwaysOn);
146 VpnProfile profile = dialog.getProfile();
155 if (shouldConnect && !isConnected(profile) &&
158 opts.putParcelable(ARG_PROFILE, profile);
191 updateLockdownVpn(boolean isVpnAlwaysOn, VpnProfile profile) argument
213 save(VpnProfile profile, boolean lockdown) argument
224 connect(VpnProfile profile, boolean lockdown) argument
247 disconnect(VpnProfile profile) argument
259 isConnected(VpnProfile profile) argument
[all...]
H A DLegacyVpnPreference.java29 * {@link android.support.v7.preference.Preference} tracks the underlying legacy vpn profile and
44 public void setProfile(VpnProfile profile) { argument
46 final String newLabel = (profile != null ? profile.name : null);
51 mProfile = profile;
H A DConfigDialog.java82 VpnProfile profile, boolean editing, boolean exists) {
86 mProfile = profile;
119 // Second, copy values from the profile.
181 // Create a button to forget the profile if it has already been saved..
187 // Create a button to save the profile.
277 VpnProfile profile = getProfile();
280 if (profile.isValidLockdownProfile()) {
286 if (!profile.isTypeValidForLockdown()) {
288 } else if (!profile.isServerAddressNumeric()) {
290 } else if (!profile
81 ConfigDialog(Context context, DialogInterface.OnClickListener listener, VpnProfile profile, boolean editing, boolean exists) argument
[all...]
H A DVpnSettings.java162 VpnProfile profile = new VpnProfile(Long.toHexString(millis));
163 ConfigDialogFragment.show(this, profile, true /* editing */, false /* exists */);
294 for (VpnProfile profile : vpnProfiles) {
295 LegacyVpnPreference p = mSettings.findOrCreatePreference(profile, true);
296 if (connectedLegacyVpns.containsKey(profile.key)) {
297 p.setState(connectedLegacyVpns.get(profile.key).state);
301 p.setAlwaysOn(lockdownVpnKey != null && lockdownVpnKey.equals(profile.key));
363 VpnProfile profile = pref.getProfile();
364 if (mConnectedLegacyVpn != null && profile.key.equals(mConnectedLegacyVpn.key) &&
373 ConfigDialogFragment.show(this, profile, fals
439 findOrCreatePreference(VpnProfile profile, boolean update) argument
[all...]
/packages/services/Car/service/src/com/android/car/
H A DCarBluetoothUserService.java56 * Setup connections to the profile proxy object to talk to the Bluetooth profile services
67 for (Integer profile : mProfilesToConnect) {
69 profile);
74 * Close connections to the profile proxy object
84 // Close those profile proxy objects for profiles that have not yet disconnected
101 * Check if a proxy is available for the given profile to talk to the Profile's bluetooth
103 * @param profile - Bluetooth profile to check for
107 public boolean isBluetoothConnectionProxyAvailable(int profile) { argument
134 bluetoothConnectToProfile(int profile, BluetoothDevice device) argument
173 setProfilePriority(int profile, BluetoothDevice device, int priority) argument
[all...]
H A DBluetoothDeviceConnectionPolicy.java79 * For every profile, the policy attempts to connect to the last connected device first. The policy
80 * maintains a list of connect-able devices for every profile, in the order of how recently they
81 * connected. The device that successfully connects on a profile is moved to the top of the list
82 * of devices for that profile, so the next time a connection attempt is made, the policy starts
95 // The main data structure that holds on to the {profile:list of known and connectible devices}
153 // connections each profile supports currently.
155 for (Integer profile: mProfilesToConnect) {
156 switch (profile) {
202 public ConnectionParams(Integer profile) { argument
203 mBluetoothProfile = profile;
206 ConnectionParams(Integer profile, BluetoothDevice device) argument
216 setBluetoothProfile(Integer profile) argument
346 setBluetoothProfilePriorityIfUuidFound(ParcelUuid[] uuids, int profile, BluetoothDevice device, int priority) argument
724 addProfile(Integer profile) argument
761 addDeviceToProfile(BluetoothDevice device, Integer profile) argument
779 removeDeviceFromProfile(BluetoothDevice device, Integer profile) argument
907 connectToNextDeviceInQueueLocked(Integer profile) argument
1101 canRetryConnection(Integer profile) argument
[all...]
H A DBluetoothDevicesInfo.java32 * profile.
34 * a) profile
38 * e) Number of devices that have been previously paired and connected on this profile.
42 * a connection on for a profile. The policy also updates this object with the connection
56 * This class holds on to information regarding this bluetooth profile's connection state.
59 // which bluetooth profile this Device Info is for
62 // 1. no device has been paired to connect on this profile
69 // Current number of active connections on this profile
74 public ConnectionInfo(int profile) { argument
76 this(profile,
79 ConnectionInfo(int profile, int numConnectionsSupported) argument
120 BluetoothDevicesInfo(int profile) argument
125 BluetoothDevicesInfo(int profile, int numConnectionsSupported) argument
[all...]
/packages/services/Telecomm/src/com/android/server/telecom/
H A DBluetoothAdapterProxy.java34 int profile) {
38 return mBluetoothAdapter.getProfileProxy(context, listener, profile);
33 getProfileProxy(Context context, BluetoothProfile.ServiceListener listener, int profile) argument
H A DRingtoneFactory.java56 // Use the default ringtone of the work profile if the contact is a work profile contact.
69 // ringtone for user or profile.
96 for (UserInfo profile : profiles) {
97 UserHandle profileUserHandle = profile.getUserHandle();
98 if (profileUserHandle != userHandle && profile.isManagedProfile()) {
100 workprofile = profile;
108 // info to determine which profile is the work profile. Just use the default.
/packages/apps/Settings/src/com/android/settings/bluetooth/
H A DDeviceProfilesSettings.java173 for (LocalBluetoothProfile profile : mCachedDevice.getConnectableProfiles()) {
174 CheckBox pref = createProfilePreference(profile);
177 if (profile instanceof A2dpProfile) {
179 A2dpProfile a2dpProfile = (A2dpProfile) profile;
189 refreshProfilePreference(pref, profile);
225 * Creates a checkbox preference for the particular profile. The key will be
226 * the profile's name.
228 * @param profile The profile for which the preference controls.
229 * @return A preference that allows the user to choose whether this profile
232 createProfilePreference(LocalBluetoothProfile profile) argument
251 onProfileClicked(LocalBluetoothProfile profile, CheckBox profilePref) argument
286 askDisconnect(Context context, final LocalBluetoothProfile profile) argument
352 findProfile(String profile) argument
356 refreshProfilePreference(CheckBox profilePref, LocalBluetoothProfile profile) argument
[all...]
/packages/apps/Settings/tests/app/src/com/android/settings/vpn2/
H A DVpnTests.java59 * adb shell am instrument -e class com.android.settings.vpn2.VpnTests -e profile foo.xml
63 * Push the profile (foo.xml) to the external storage, e.g adb push foo.xml /sdcard/ before running
66 * A typical profile looks like the following:
111 String PROFILE_NAME = arguments.getString("profile");
112 Assert.assertNotNull("Push profile to external storage and load with"
113 + "'-e profile <filename>'", PROFILE_NAME);
159 private void printVpnProfile(VpnProfile profile) { argument
160 Log.v(TAG, "profile: ");
161 Log.v(TAG, "key: " + profile.key);
162 Log.v(TAG, "name: " + profile
179 printKeyStore(VpnProfile profile) argument
207 connect(VpnProfile profile) argument
273 validateVpnConnection(VpnProfile profile) argument
280 validateVpnConnection(VpnProfile profile, boolean pingTestFlag) argument
336 installCertificatesFromFile(VpnProfile profile, String fileName, String password) argument
[all...]
H A DVpnProfileParser.java61 VpnProfile profile = null;
69 //create a new VPN profile
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
[all...]
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
H A DConfig.java49 * List of profile services.
61 * Resource flag to indicate whether profile is supported or not.
112 private static boolean isProfileDisabled(Context context, Class profile) { argument
113 final int profileIndex = getProfileIndex(profile);
116 Log.w(TAG, "Could not find profile bit mask");
128 private static int getProfileIndex(Class profile) { argument
131 if (profile == HeadsetService.class) {
133 } else if (profile == A2dpService.class) {
135 } else if (profile == A2dpSinkService.class) {
137 } else if (profile
[all...]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
H A DSipConnectionService.java48 void onFound(SipProfile profile); argument
110 // The ID used for SIP-based phone account is the SIP profile Uri. Use it to find
111 // the actual profile.
115 public void onFound(SipProfile profile) {
116 if (profile == null) {
118 DisconnectCause.OUTGOING_FAILURE, "SIP profile not found."));
122 createConnectionForProfile(profile, request);
190 SipProfile profile,
192 SipPhone phone = findPhoneForProfile(profile);
194 phone = createPhoneForProfile(profile);
189 createConnectionForProfile( SipProfile profile, ConnectionRequest request) argument
234 findPhoneForProfile(SipProfile profile) argument
249 createPhoneForProfile(SipProfile profile) argument
[all...]
H A DSipPhoneAccountSettingsActivity.java30 * translates the incoming phone account to a SIP profile and opens the corresponding
31 * PreferenceActivity for said profile.
51 SipProfile profile = profileDb.retrieveSipProfileFromName(profileName);
52 if (profile != null) {
54 settingsIntent.putExtra(SipSettings.KEY_SIP_PROFILE, (Parcelable) profile);
H A DSipAccountRegistry.java39 AccountEntry(SipProfile profile) { argument
40 mProfile = profile;
48 * Starts the SIP service associated with the SIP profile.
58 if (VERBOSE) log("startSipService, profile: " + mProfile);
60 // Stop the Sip service for the profile if it is already running. This is important
64 // Start the sip service for the profile.
76 log("startSipService, profile: " + mProfile.getProfileName() +
83 * Stops the SIP service associated with the SIP profile. The {@code SipAccountRegistry} is
95 log("stopSipService, stop failed for profile: " + mProfile.getUriString() +
133 SipProfile profile
264 startSipServiceForProfile(SipProfile profile, SipManager sipManager, Context context, boolean isReceivingCalls) argument
[all...]
H A DSipSettings.java52 * The PreferenceActivity class for managing sip profile preferences.
68 private SipProfile mProfile; // profile that's being edited
97 log("SipPreference.updateSummary, profile uid: " + profileUid +
168 SipProfile profile = intent.getParcelableExtra(KEY_SIP_PROFILE);
170 if (VERBOSE) log("onActivityResult, new: " + profile.getProfileName());
171 addProfile(profile);
175 log("onActivityResult, can not handle the profile: " + e);
194 private String getProfileName(SipProfile profile) { argument
195 String profileName = profile.getProfileName();
197 profileName = profile
283 handleProfileClick(final SipProfile profile) argument
337 startSipEditor(final SipProfile profile) argument
[all...]
H A DSipUtil.java78 * Creates a {@link PhoneAccountHandle} from the specified SIP profile name.
86 * Determines the SIP profile name for a specified {@link PhoneAccountHandle}.
89 * @return The SIP profile name.
107 * @param profile The SipProfile.
110 static PhoneAccount createPhoneAccount(Context context, SipProfile profile) { argument
114 String sipAddress = profile.getUserName() + "@" + profile.getSipDomain();
115 Uri sipUri = Uri.parse(profile.getUriString());
118 SipUtil.createAccountHandle(context, profile.getProfileName());
126 PhoneAccount.Builder builder = PhoneAccount.builder(accountHandle, profile
[all...]
/packages/apps/Launcher3/src/com/android/launcher3/
H A DShortcutAndWidgetContainer.java91 DeviceProfile profile = mLauncher.getDeviceProfile();
93 profile.appWidgetScale.x, profile.appWidgetScale.y);
112 final DeviceProfile profile = mLauncher.getDeviceProfile();
116 profile.appWidgetScale.x, profile.appWidgetScale.y);
123 int cellPaddingX = (int) (profile.edgeMarginPx / 2f);
153 DeviceProfile profile = mLauncher.getDeviceProfile();
154 float scaleX = profile.appWidgetScale.x;
155 float scaleY = profile
[all...]
H A DFocusHelper.java208 final DeviceProfile profile = launcher.getDeviceProfile();
213 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout()));
241 !profile.isVerticalBarLayout()) {
242 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile);
246 profile.isVerticalBarLayout()) {
247 matrix = FocusLogic.createSparseMatrixWithHotseat(iconLayout, hotseatLayout, profile);
251 profile.isVerticalBarLayout()) {
337 DeviceProfile profile = launcher.getDeviceProfile();
341 KeyEvent.keyCodeToString(keyCode), profile.isVerticalBarLayout()));
364 if (keyCode == KeyEvent.KEYCODE_DPAD_DOWN && !profile
[all...]
/packages/apps/Camera2/src/com/android/camera/data/
H A DVideoDataFactory.java55 " to camera profile");
56 CamcorderProfile profile = CamcorderProfile.get(CamcorderProfile.QUALITY_HIGH);
57 if(profile != null) {
58 dimensions = new Size(profile.videoFrameWidth, profile.videoFrameHeight);
60 Log.w(TAG, "Video profile was null, defaulting to unknown width and height.");
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/bluetooth/
H A DBluetoothHeadsetFragment.java87 // Connect profile
95 // Disonnect profile
230 public void onServiceConnected(int profile, BluetoothProfile proxy) { argument
231 Log.d(TAG, "Proxy connected for profile: " + profile);
232 switch (profile) {
237 Log.w(TAG, "onServiceConnected not supported profile: " + profile);
242 public void onServiceDisconnected(int profile) { argument
243 Log.d(TAG, "Proxy disconnected for profile
[all...]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothProfileLineItem.java45 public BluetoothProfileLineItem(Context context, LocalBluetoothProfile profile, argument
47 super(context.getText(profile.getNameResource(cachedBluetoothDevice.getDevice())));
49 mProfile = profile;

Completed in 618 milliseconds

123