/* Ċ Ġ* ĠCopyright Ġ( C ) Ġ 2 0 2 0 ĠThe ĠAndroid ĠOpen ĠSource ĠProject Ċ Ġ* Ċ Ġ* ĠLicensed Ġunder Ġthe ĠApache ĠLicense , ĠVersion Ġ 2 . 0 Ġ( the Ġ" License "); Ċ Ġ* Ġyou Ġmay Ġnot Ġuse Ġthis Ġfile Ġexcept Ġin Ġcompliance Ġwith Ġthe ĠLicense . Ċ Ġ* ĠYou Ġmay Ġobtain Ġa Ġcopy Ġof Ġthe ĠLicense Ġat Ċ Ġ* Ċ Ġ* ĠĠĠĠĠ Ġhttp :// www . apache . org / licenses / LICENSE - 2 . 0 Ċ Ġ* Ċ Ġ* ĠUnless Ġrequired Ġby Ġapplicable Ġlaw Ġor Ġagreed Ġto Ġin Ġwriting , Ġsoftware Ċ Ġ* Ġdistributed Ġunder Ġthe ĠLicense Ġis Ġdistributed Ġon Ġan Ġ" AS ĠIS " ĠBASIS , Ċ Ġ* ĠWITHOUT ĠWARRANTIES ĠOR ĠCONDITIONS ĠOF ĠANY ĠKIND , Ġeither Ġexpress Ġor Ġimplied . Ċ Ġ* ĠSee Ġthe ĠLicense Ġfor Ġthe Ġspecific Ġlanguage Ġgoverning Ġpermissions Ġand Ċ Ġ* Ġlimitations Ġunder Ġthe ĠLicense . Ċ Ġ*/ Ċ package Ġcom . android . tools . profil ers . cpu Ċ Ċ /** Ċ Ġ* ĠCPU Ġprofiler 's Ġabstraction Ġof Ġthread Ġstates Ġw / Ġcapture Ġstate Ġinfo . Ċ Ġ*/ Ċ enum Ġclass ĠThread State ( val ĠdisplayName : ĠString , Ġval Ġis Capt ured : ĠBoolean Ġ= Ġfalse ) Ġ{ ĊĠ ĠRUN NING (" Running "), ĊĠ ĠRUN NING _ CAPTURE D (" Running ", Ġtrue ), ĊĠ ĠS LEEP ING (" Sleep ing "), ĊĠ ĠS LEEP ING _ CAPTURE D (" Sleep ing ", Ġtrue ), ĊĠ ĠDE AD (" Dead "), ĊĠ ĠDE AD _ CAPTURE D (" Dead ", Ġtrue ), ĊĠ ĠWAIT ING (" Waiting "), ĊĠ ĠWAIT ING _ CAPTURE D (" Waiting ", Ġtrue ), ĊĠ Ġ// ĠThe Ġtwo Ġvalues Ġbelow Ġare Ġused Ġby Ġimported Ġtrace Ġcaptures Ġto Ġindicate Ġwhich ĊĠ Ġ// Ġslices Ġof Ġthe Ġthread Ġcontain Ġmethod Ġtrace Ġactivity Ġand Ġwhich Ġones Ġdon 't . ĊĠ ĠHAS _ ACTIVITY (" Thread Ġactivity ", Ġtrue ), ĊĠ ĠNO _ ACTIVITY (" No Ġthread Ġactivity ", Ġtrue ), ĊĠ Ġ// ĠThese Ġvalues Ġare Ġcaptured Ġfrom ĠA trace Ġas Ġsuch Ġwe Ġonly Ġhave Ġa Ġcaptured Ġstate . ĊĠ ĠRUN N ABLE _ CAPTURE D (" Runnable ", Ġtrue ), ĊĠ ĠWAIT ING _ IO _ CAPTURE D (" Waiting Ġon ĠIO ", Ġtrue ), ĊĠ ĠUNKNOWN (" Unknown "); Ċ } Ċ