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

1234

/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);
H A DICarBluetooth.aidl25 boolean isPriorityDevicePresent(in int profile, in int priorityToCheck);
26 String getDeviceNameWithPriority(in int profile, in int priorityToCheck);
H A DCarBluetoothManager.java58 * Bluetooth profile, every new Auto Connect attempt would start with trying to connect to
59 * *that* device. This priority is set at a Bluetooth profile granularity.
78 * Unset the Auto Connect priority for the given profile
97 * profile.
99 * @param profile - BluetoothProfile
105 public boolean isPriorityDevicePresent(int profile, @PriorityType int priorityToCheck) argument
108 return mService.isPriorityDevicePresent(profile, priorityToCheck);
117 * for the given profile.
119 * @param profile - BluetoothProfile
125 public String getDeviceNameWithPriority(int profile, argument
[all...]
/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/bluetooth/
H A DBluetoothDetailsProfilesController.java76 * Creates a switch preference for the particular profile.
79 * @param profile The profile for which the preference controls.
80 * @return A preference that allows the user to choose whether this profile
84 LocalBluetoothProfile profile) {
86 pref.setKey(profile.toString());
87 pref.setTitle(profile.getNameResource(mCachedDevice.getDevice()));
93 * Refreshes the state for an existing SwitchPreference for a profile.
96 LocalBluetoothProfile profile) {
99 if (profile instanceo
83 createProfilePreference(Context context, LocalBluetoothProfile profile) argument
95 refreshProfilePreference(SwitchPreference profilePref, LocalBluetoothProfile profile) argument
132 enableProfile(LocalBluetoothProfile profile, BluetoothDevice device, SwitchPreference profilePref) argument
149 disableProfile(LocalBluetoothProfile profile, BluetoothDevice device, SwitchPreference profilePref) argument
220 maybeAddHighQualityAudioPref(LocalBluetoothProfile profile) argument
[all...]
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/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.java83 * For every profile, the policy attempts to connect to the last connected device first. The policy
84 * maintains a list of connect-able devices for every profile, in the order of how recently they
85 * connected. The device that successfully connects on a profile is moved to the top of the list
86 * of devices for that profile, so the next time a connection attempt is made, the policy starts
99 // The main data structure that holds on to the {profile:list of known and connectible devices}
168 // connections each profile supports currently.
170 for (Integer profile : mProfilesToConnect) {
171 switch (profile) {
217 public ConnectionParams(Integer profile) { argument
218 mBluetoothProfile = profile;
221 ConnectionParams(Integer profile, BluetoothDevice device) argument
231 setBluetoothProfile(Integer profile) argument
361 setBluetoothProfilePriorityIfUuidFound(ParcelUuid[] uuids, int profile, BluetoothDevice device, int priority) argument
741 getBluetoothDevicesInfo(int profile) argument
771 addProfile(Integer profile) argument
808 addDeviceToProfile(BluetoothDevice device, Integer profile) argument
826 removeDeviceFromProfile(BluetoothDevice device, Integer profile) argument
953 connectToNextDeviceInQueueLocked(Integer profile) argument
1147 canRetryConnection(Integer profile) argument
1424 readAndTagDeviceWithPriorityFromSettings(int profile, int priority) argument
1466 tagDeviceWithPriority(BluetoothDevice device, int profile, int priority) argument
[all...]
H A DCarBluetoothService.java48 * connect for a specific profile.
79 * This priority is set at a Bluetooth profile granularity
111 * Unset the Auto connect priority for the given profile
135 * profile.
137 * @param profile - BluetoothProfile
141 public boolean isPriorityDevicePresent(int profile, int priorityToCheck) { argument
142 String deviceName = getDeviceNameWithPriority(profile, priorityToCheck);
149 "No device present for priority: " + priorityToCheck + " profile: "
150 + profile);
158 * for the given profile
164 getDeviceNameWithPriority(int profile, int priorityToCheck) argument
212 getKeyForProfile(int profile, int priority) 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
/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/Launcher3/src/com/android/launcher3/folder/
H A DFolderIconPreviewVerifier.java36 public FolderIconPreviewVerifier(InvariantDeviceProfile profile) { argument
37 mMaxGridCountX = profile.numFolderColumns;
38 mMaxGridCountY = profile.numFolderRows;
/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() +
136 SipProfile profile
267 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...]
/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);
124 ? profile.workspaceCellPaddingXPx
125 : (int) (profile.edgeMarginPx / 2f);
155 DeviceProfile profile = mLauncher.getDeviceProfile();
156 float scaleX = profile
[all...]
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
H A DBluetoothProfileLineItem.java44 public BluetoothProfileLineItem(Context context, LocalBluetoothProfile profile, argument
46 super(context.getText(profile.getNameResource(cachedBluetoothDevice.getDevice())));
49 mProfile = profile;
/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.");

Completed in 572 milliseconds

1234