package Ġcom . net char . common . utils Ċ Ċ import Ġandroid . content . Context Ċ import Ġcom . net char . common . extensions . getActivity Manager Ċ import Ġjavax . inject . Inject Ċ Ċ private Ġconst Ġval ĠOP TIM UM _ CORE Ġ= Ġ 4 Ċ private Ġconst Ġval ĠOP TIM UM _ MEMORY _ MB Ġ= Ġ 1 2 4 Ċ Ċ object ĠPerformance Checker Ġ{ ĊĊĠĠĠ Ġfun Ġis High Perform ing Device ( context : ĠContext ): ĠBoolean Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġis High Ram Device ( context ) Ġ&& Ġis Opt imum Core Processor () Ġ&& Ġis Opt imum Memory ( context ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġfun Ġis Opt imum Memory ( context : ĠContext ) Ġ= Ġcontext . getActivity Manager (). memory Class Ġ>= ĠOP TIM UM _ MEMORY _ MB ĊĊĠĠĠ Ġprivate Ġfun Ġis Opt imum Core Processor () Ġ= ĠRuntime . get Runtime (). available Processors () Ġ>= ĠOP TIM UM _ CORE ĊĊĠĠĠ Ġprivate Ġfun Ġis High Ram Device ( context : ĠContext ) Ġ= Ġ! context . getActivity Manager (). is Low Ram Device Ċ Ċ }