Lines Matching refs:profile
55 * or offline mode). In online mode, user interactions with the profile
56 * checkboxes will also toggle the profile's connectivity. In offline mode,
58 * profile.
97 // Add a preference for each profile
127 for (Profile profile : mCachedDevice.getConnectableProfiles()) {
128 Preference pref = createProfilePreference(profile);
134 * Creates a checkbox preference for the particular profile. The key will be
135 * the profile's name.
137 * @param profile The profile for which the preference controls.
138 * @return A preference that allows the user to choose whether this profile
141 private CheckBoxPreference createProfilePreference(Profile profile) {
143 pref.setKey(profile.toString());
144 pref.setTitle(profile.localizedString);
149 .getProfileManager(mManager, profile);
156 refreshProfilePreference(pref, profile);
169 Profile profile = getProfileOf(preference);
170 if (profile == null) return false;
171 onProfileCheckedStateChanged(profile, (Boolean) newValue);
181 private void onProfileCheckedStateChanged(Profile profile, boolean checked) {
184 mCachedDevice.connect(profile);
186 mCachedDevice.disconnect(profile);
191 .getProfileManager(mManager, profile);
241 for (Profile profile : mCachedDevice.getConnectableProfiles()) {
243 (CheckBoxPreference) findPreference(profile.toString());
245 profilePref = createProfilePreference(profile);
248 refreshProfilePreference(profilePref, profile);
253 private void refreshProfilePreference(CheckBoxPreference profilePref, Profile profile) {
256 .getProfileManager(mManager, profile);
264 profilePref.setSummary(getProfileSummary(profileManager, profile, device,
283 Profile profile, BluetoothDevice device, int connectionStatus, boolean onlineMode) {
285 return getProfileSummaryForSettingPreference(profile);
292 * Gets the summary that describes when checked, it will become a preferred profile.
294 * @param profile The profile to get the summary for.
297 private static final int getProfileSummaryForSettingPreference(Profile profile) {
298 switch (profile) {