Lines Matching refs:art

91   return art::Dbg::IsJdwpAllowed();  in IsDebuggingPossible()
99 if (IsDebuggingPossible() || art::Runtime::Current()->IsProfileableFromShell()) { in StartDebugger()
125 return IsDebuggingPossible() && !art::Runtime::Current()->GetJdwpOptions().empty(); in IsDebuggerConfigured()
129 const art::ArrayRef<const uint8_t>& data) { in DdmPublishChunk()
168 art::ScopedObjectAccess soa(art::Thread::Current()); in AdbConnectionState()
169 art::Runtime::Current()->GetRuntimeCallbacks()->AddDebuggerControlCallback(&controller_); in AdbConnectionState()
174 art::Thread* self = art::Thread::Current(); in ~AdbConnectionState()
176 art::ScopedObjectAccess soa(self); in ~AdbConnectionState()
177 art::Runtime::Current()->GetRuntimeCallbacks()->RemoveDebuggerControlCallback(&controller_); in ~AdbConnectionState()
181 static jobject CreateAdbConnectionThread(art::Thread* thr) { in CreateAdbConnectionThread()
184 art::ScopedThreadStateChange stsc(thr, art::kNative); in CreateAdbConnectionThread()
188 env->GetStaticObjectField(art::WellKnownClasses::java_lang_ThreadGroup, in CreateAdbConnectionThread()
189 art::WellKnownClasses::java_lang_ThreadGroup_systemThreadGroup)); in CreateAdbConnectionThread()
190 return env->NewObject(art::WellKnownClasses::java_lang_Thread, in CreateAdbConnectionThread()
191 art::WellKnownClasses::java_lang_Thread_init, in CreateAdbConnectionThread()
205 art::Thread* self = art::Thread::Attach(kAdbConnectionThreadName, in CallbackFunction()
212 art::ScopedObjectAccess soa(self); in CallbackFunction()
223 art::MutexLock mu(self, *art::Locks::runtime_shutdown_lock_); in CallbackFunction()
224 art::Runtime::Current()->EndThreadBirth(); in CallbackFunction()
227 int detach_result = art::Runtime::Current()->GetJavaVM()->DetachCurrentThread(); in CallbackFunction()
246 art::ScopedObjectAccess soa(art::Thread::Current()); in StartDebuggerThreads()
247 art::Runtime::Current()->GetRuntimeCallbacks()->AddDdmCallback(&ddm_callback_); in StartDebuggerThreads()
263 art::Thread* self = art::Thread::Current(); in StartDebuggerThreads()
264 art::ScopedObjectAccess soa(self); in StartDebuggerThreads()
266 art::Runtime* runtime = art::Runtime::Current(); in StartDebuggerThreads()
267 art::MutexLock mu(self, *art::Locks::runtime_shutdown_lock_); in StartDebuggerThreads()
289 art::Runtime* runtime = art::Runtime::Current(); in StartDebuggerThreads()
292 art::MutexLock mu(art::Thread::Current(), *art::Locks::runtime_shutdown_lock_); in StartDebuggerThreads()
322 art::ScopedObjectAccess soa(art::Thread::Current()); in NotifyDdms()
326 art::Dbg::DdmConnected(); in NotifyDdms()
328 art::Dbg::DdmDisconnected(); in NotifyDdms()
337 void AdbConnectionState::PublishDdmData(uint32_t type, const art::ArrayRef<const uint8_t>& data) { in PublishDdmData()
344 art::ArrayRef<const uint8_t> data) { in SendDdmPacket()
454 android::base::unique_fd read_fd(art::DupCloexec(adb_connection_socket_)); in SendAgentFds()
456 android::base::unique_fd write_fd(art::DupCloexec(adb_connection_socket_)); in SendAgentFds()
458 android::base::unique_fd write_lock_fd(art::DupCloexec(adb_write_event_fd_)); in SendAgentFds()
482 const char* isa = GetInstructionSetString(art::Runtime::Current()->GetInstructionSet()); in SetupAdbConnection()
489 .data.profileable = art::Runtime::Current()->IsProfileableFromShell()}, in SetupAdbConnection()
526 void AdbConnectionState::RunPollLoop(art::Thread* self) { in RunPollLoop()
527 DCHECK(IsDebuggingPossible() || art::Runtime::Current()->IsProfileableFromShell()); in RunPollLoop()
529 CHECK_EQ(self->GetState(), art::kNative); in RunPollLoop()
530 art::Locks::mutator_lock_->AssertNotHeld(self); in RunPollLoop()
531 self->SetState(art::kWaitingInMainDebuggerLoop); in RunPollLoop()
663 void AdbConnectionState::HandleDataWithoutAgent(art::Thread* self) { in HandleDataWithoutAgent()
667 CHECK(art::Dbg::IsJdwpAllowed()); in HandleDataWithoutAgent()
748 if (!art::Dbg::DdmHandleChunk(self->GetJniEnv(), in HandleDataWithoutAgent()
750 art::ArrayRef<const jbyte>(reinterpret_cast<const jbyte*>(ddm_data), in HandleDataWithoutAgent()
760 art::ArrayRef<const uint8_t>(reply)); in HandleDataWithoutAgent()
804 void AdbConnectionState::AttachJdwpAgent(art::Thread* self) { in AttachJdwpAgent()
805 art::Runtime* runtime = art::Runtime::Current(); in AttachJdwpAgent()
812 art::ScopedObjectAccess soa(self); in AttachJdwpAgent()
843 const std::string& opts = art::Runtime::Current()->GetJdwpOptions(); in MakeAgentArg()
869 DCHECK(art::Runtime::Current()->GetJdwpProvider() == art::JdwpProvider::kAdbConnection); in ArtPlugin_Initialize()
872 return ValidateJdwpOptions(art::Runtime::Current()->GetJdwpOptions()); in ArtPlugin_Initialize()