Home | History | Annotate | Download | only in runtime

Lines Matching refs:Domain

57 // Represents the API domain of a caller/callee.
60 // Initialize to either the fully-trusted or fully-untrusted domain.
88 Domain GetDomain() const { return domain_; }
89 bool IsApplicationDomain() const { return domain_ == Domain::kApplication; }
91 // Returns true if this domain is always allowed to access the domain of `callee`.
102 static Domain ComputeDomain(bool is_trusted) {
103 return is_trusted ? Domain::kCorePlatform : Domain::kApplication;
106 static Domain ComputeDomain(ObjPtr<mirror::ClassLoader> class_loader, const DexFile* dex_file) {
114 static Domain ComputeDomain(ObjPtr<mirror::Class> klass, const DexFile* dex_file)
117 Domain domain = ComputeDomain(klass->GetClassLoader(), dex_file);
119 if (domain == Domain::kApplication &&
123 domain = ComputeDomain(/* is_trusted= */ true);
126 return domain;
138 // Computed domain of the caller/callee.
139 const Domain domain_;
242 // Only add domain-specific flags for non-public API members.
370 // the AccessContext domain to the newly-registered dex file based on its
398 // Determine which domain the caller and callee belong to.
415 case Domain::kApplication: {
437 case Domain::kPlatform: {
438 DCHECK(callee_context.GetDomain() == Domain::kCorePlatform);
463 case Domain::kCorePlatform: {
464 LOG(FATAL) << "CorePlatform domain should be allowed to access all domains";