Home
last modified time | relevance | path

Searched refs:distractionFlags (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/core/java/android/content/pm/
DPackageUserState.java57 public int distractionFlags; field in PackageUserState
96 distractionFlags = o.distractionFlags; in PackageUserState()
227 if (distractionFlags != oldState.distractionFlags) { in equals()
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
DPackageUserStateTest.java234 assertThat(userState1.distractionFlags, is(PackageManager.RESTRICTION_NONE)); in testPackageUserState06()
235 userState1.distractionFlags = PackageManager.RESTRICTION_HIDE_FROM_SUGGESTIONS; in testPackageUserState06()
238 assertThat(userState1.distractionFlags, is(copyOfUserState1.distractionFlags)); in testPackageUserState06()
242 userState2.distractionFlags = PackageManager.RESTRICTION_HIDE_NOTIFICATIONS; in testPackageUserState06()
DPackageManagerSettingsTests.java293 assertThat(readPus1.distractionFlags, is(distractionFlags1)); in testReadWritePackageRestrictions_distractionFlags()
297 assertThat(readPus2.distractionFlags, is(distractionFlags2)); in testReadWritePackageRestrictions_distractionFlags()
301 assertThat(readPus3.distractionFlags, is(distractionFlags3)); in testReadWritePackageRestrictions_distractionFlags()
744 assertThat(userState.distractionFlags, is(0)); in verifyUserState()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageSettingBase.java397 return readUserState(userId).distractionFlags; in getDistractionFlags()
400 void setDistractionFlags(int distractionFlags, int userId) { in setDistractionFlags() argument
401 modifyUserState(userId).distractionFlags = distractionFlags; in setDistractionFlags()
435 boolean notLaunched, boolean hidden, int distractionFlags, boolean suspended, in setUserState() argument
450 state.distractionFlags = distractionFlags; in setUserState()
470 otherState.distractionFlags, otherState.suspended, otherState.suspendingPackage, in setUserState()
633 proto.write(PackageProto.UserInfoProto.DISTRACTION_FLAGS, state.distractionFlags); in writeUsersInfoToProto()
DSettings.java1625 final int distractionFlags = XmlUtils.readIntAttribute(parser, in readPackageRestrictionsLPr() local
1705 hidden, distractionFlags, suspended, suspendingPackage, in readPackageRestrictionsLPr()
2001 if (ustate.distractionFlags != 0) { in writePackageRestrictionsLPr()
2003 Integer.toString(ustate.distractionFlags)); in writePackageRestrictionsLPr()
DPackageManagerService.java12962 int distractionFlags) {
12966 extras.putInt(Intent.EXTRA_DISTRACTION_RESTRICTIONS, distractionFlags);
/frameworks/base/core/java/android/app/
DApplicationPackageManager.java2333 public String[] setDistractingPackageRestrictions(String[] packages, int distractionFlags) { in setDistractingPackageRestrictions() argument
2335 return mPM.setDistractingPackageRestrictionsAsUser(packages, distractionFlags, in setDistractingPackageRestrictions()