Home
last modified time | relevance | path

Searched refs:mPref (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/widget/
DActionButtonsPreferenceTest.java47 private ActionButtonsPreference mPref; field in ActionButtonsPreferenceTest
55 mPref = new ActionButtonsPreference(mContext); in setUp()
60 mPref.setButton1Text(com.android.settingslib.R.string.install_other_apps); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
61 mPref.setButton2Text(com.android.settingslib.R.string.install_other_apps); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
62 mPref.setButton3Text(com.android.settingslib.R.string.install_other_apps); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
63 mPref.setButton4Text(com.android.settingslib.R.string.install_other_apps); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
65 mPref.onBindViewHolder(mHolder); in onBindViewHolder_setTitle_shouldShowButtonByDefault()
79 mPref.setButton1Icon(com.android.internal.R.drawable.ic_plus); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
80 mPref.setButton2Icon(com.android.internal.R.drawable.ic_plus); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
81 mPref.setButton3Icon(com.android.internal.R.drawable.ic_plus); in onBindViewHolder_setIcon_shouldShowButtonByDefault()
[all …]
DAppPreferenceTest.java39 private AppPreference mPref; field in AppPreferenceTest
47 mPref = new AppPreference(mContext); in setUp()
52 mPref.setProgress(1); in setProgress_showProgress()
53 mPref.onBindViewHolder(mHolder); in setProgress_showProgress()
/frameworks/base/services/core/java/com/android/server/pm/
DPreferredIntentResolver.java38 return packageName.equals(filter.mPref.mComponent.getPackageName()); in isPackageForFilter()
44 filter.mPref.dump(out, prefix, filter); in dumpFilter()
57 if (!pa.mPref.mAlways) { in shouldAddPreferredActivity()
63 if (cur.mPref.mAlways in shouldAddPreferredActivity()
64 && cur.mPref.mMatch == (pa.mPref.mMatch & IntentFilter.MATCH_CATEGORY_MASK) in shouldAddPreferredActivity()
65 && cur.mPref.sameSet(pa.mPref)) { in shouldAddPreferredActivity()
DPreferredActivity.java38 final PreferredComponent mPref; field in PreferredActivity
57 mPref = new PreferredComponent(this, match, set, activity, always);
69 mPref = f.mPref;
74 mPref = new PreferredComponent(this, parser);
79 mPref.writeToXml(serializer, full);
105 mPref.dump(out, prefix, filter);
111 + " " + mPref.mComponent.flattenToShortString() + "}";
DPreferredActivityHelper.java271 if (!cur.mPref.mAlways) {
274 Slog.i(TAG, " -- CUR: mMatch=" + cur.mPref.mMatch);
276 + Arrays.toString(cur.mPref.mSetComponents));
277 Slog.i(TAG, " -- CUR: mComponent=" + cur.mPref.mShortComponent);
284 if (cur.mPref.mAlways && cur.mPref.mComponent.equals(activity)
285 && cur.mPref.mMatch == (match & IntentFilter.MATCH_CATEGORY_MASK)
286 && cur.mPref.sameSet(set)) {
290 + cur.mPref.mShortComponent + " for user "
671 final String prefPackageName = pa.mPref.mComponent.getPackageName();
673 || (prefPackageName.equals(packageName) && pa.mPref.mAlways)) {
[all …]
DComputerEngine.java3346 + "\n component=" + pa.mPref.mComponent); in findPreferredActivityBody()
3349 if (pa.mPref.mMatch != match) { in findPreferredActivityBody()
3352 + Integer.toHexString(pa.mPref.mMatch)); in findPreferredActivityBody()
3358 if (always && !pa.mPref.mAlways) { in findPreferredActivityBody()
3363 pa.mPref.mComponent, flags | MATCH_DISABLED_COMPONENTS in findPreferredActivityBody()
3391 + pa.mPref.mComponent); in findPreferredActivityBody()
3410 Slog.v(TAG, "Removing match " + pa.mPref.mComponent); in findPreferredActivityBody()
3422 && !pa.mPref.sameSet(query, excludeSetupWizardHomeActivity, userId)) { in findPreferredActivityBody()
3423 if (pa.mPref.isSuperset(query, excludeSetupWizardHomeActivity)) { in findPreferredActivityBody()
3436 pa.mPref.mMatch, in findPreferredActivityBody()
[all …]
DSettings.java1673 if (pa.mPref.getParseError() == null) {
1681 + pa.mPref.getParseError() + " at "
3658 Slog.i(TAG, "Removing preferred activity " + pa.mPref.mComponent + ":");
3908 if (tmpPa.mPref.getParseError() == null) {
3910 pmInternal, tmpPa.getIntentFilter(), tmpPa.mPref.mComponent, userId);
3914 + tmpPa.mPref.getParseError() + " at "
6532 || (pa.mPref.mComponent.getPackageName().equals(packageName)
6533 && pa.mPref.mAlways)) {
6630 if (!resolver.isActivityDefined(pa.mPref.mComponent)) {
6638 + pa.mPref.mComponent);
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/pm/
DPreferredComponentTest.java92 assertTrue(pa.mPref.sameSet(query, true /* excludeSetupWizardPackage */, userId)); in testPreferredComponent_sameSet_withAppInstalledByDeviceSetup()
125 assertFalse(pa.mPref.sameSet(query, true /* excludeSetupWizardPackage */, userId)); in testPreferredComponent_notSameSet_withAppNotInstalledByDeviceSetup()