Home
last modified time | relevance | path

Searched refs:mRoles (Results 1 – 5 of 5) sorted by relevance

/packages/modules/Permission/service/java/com/android/role/
DRoleUserState.java89 private ArrayMap<String, ArraySet<String>> mRoles = new ArrayMap<>(); field in RoleUserState
222 if (!mRoles.containsKey(roleName)) { in setFallbackEnabled()
245 mFallbackEnabledRoles.addAll(mRoles.keySet()); in upgradeVersion()
267 return mRoles.containsKey(roleName); in isRoleAvailable()
281 ArraySet<String> packageNames = mRoles.get(roleName); in getRoleHolders()
298 if (!mRoles.containsKey(roleName)) { in addRoleName()
299 mRoles.put(roleName, new ArraySet<>()); in addRoleName()
319 for (int i = mRoles.size() - 1; i >= 0; i--) { in setRoleNames()
320 String roleName = mRoles.keyAt(i); in setRoleNames()
323 ArraySet<String> packageNames = mRoles.valueAt(i); in setRoleNames()
[all …]
/packages/modules/Permission/service/java/com/android/role/persistence/
DRolesState.java53 private final Map<String, Set<String>> mRoles; field in RolesState
86 mRoles = roles; in RolesState()
116 return mRoles; in getRoles()
141 && Objects.equals(mRoles, that.mRoles) in equals()
147 return Objects.hash(mVersion, mPackagesHash, mRoles, mFallbackEnabledRoles); in hashCode()
/packages/modules/NeuralNetworks/runtime/
DMemory.cpp323 if (mRoles.count({&compilation, ioType, index}) > 0) { in addRole()
383 mRoles.emplace(&compilation, ioType, index); in addRole()
448 if (mRoles.empty()) { in finish()
474 mShouldFallback = std::none_of(mRoles.begin(), mRoles.end(), [](const auto& role) { in finish()
514 std::make_unique<DeviceMemoryValidator>(mRoles, mOperand.value(), mDesc.dimensions); in allocate()
DMemory.h241 std::set<CompilationRole> mRoles; variable
DExecutionPlan.cpp263 mRoles[source].emplace(step.getIndex(), type, stepIOIndex); in addRole()
279 return std::move(mRoles); in finish()
287 auto& roles = mRoles[current]; in finishHelper()
291 const auto& destRoles = mRoles[dest]; in finishHelper()
298 std::map<SourceOperandIndex, std::set<StepRole>> mRoles; member in android::nn::__anon58bb3e6b0111::StepRoleAnalyzer