use of android.content.pm.PackageUserState in project android_frameworks_base by ParanoidAndroid.
the class PackageSettingBase method disableComponentLPw.
boolean disableComponentLPw(String componentClassName, int userId) {
PackageUserState state = modifyUserStateComponents(userId, true, false);
boolean changed = state.enabledComponents != null ? state.enabledComponents.remove(componentClassName) : false;
changed |= state.disabledComponents.add(componentClassName);
return changed;
}
use of android.content.pm.PackageUserState in project android_frameworks_base by ResurrectionRemix.
the class PackageSettingBase method restoreComponentLPw.
boolean restoreComponentLPw(String componentClassName, int userId) {
PackageUserState state = modifyUserStateComponents(userId, true, true);
boolean changed = state.disabledComponents != null ? state.disabledComponents.remove(componentClassName) : false;
changed |= state.enabledComponents != null ? state.enabledComponents.remove(componentClassName) : false;
return changed;
}
use of android.content.pm.PackageUserState in project android_frameworks_base by ResurrectionRemix.
the class PackageSettingBase method setDomainVerificationStatusForUser.
void setDomainVerificationStatusForUser(final int status, int generation, int userId) {
PackageUserState state = modifyUserState(userId);
state.domainVerificationStatus = status;
if (status == PackageManager.INTENT_FILTER_DOMAIN_VERIFICATION_STATUS_ALWAYS) {
state.appLinkGeneration = generation;
}
}
use of android.content.pm.PackageUserState in project android_frameworks_base by ResurrectionRemix.
the class PackageSettingBase method enableComponentLPw.
boolean enableComponentLPw(String componentClassName, int userId) {
PackageUserState state = modifyUserStateComponents(userId, false, true);
boolean changed = state.disabledComponents != null ? state.disabledComponents.remove(componentClassName) : false;
changed |= state.enabledComponents.add(componentClassName);
return changed;
}
use of android.content.pm.PackageUserState in project android_frameworks_base by ResurrectionRemix.
the class PackageSettingBase method getDomainVerificationStatusForUser.
// Returns a packed value as a long:
//
// high 'int'-sized word: link status: undefined/ask/never/always.
// low 'int'-sized word: relative priority among 'always' results.
long getDomainVerificationStatusForUser(int userId) {
PackageUserState state = readUserState(userId);
long result = (long) state.appLinkGeneration;
result |= ((long) state.domainVerificationStatus) << 32;
return result;
}
Aggregations