@ file : Suppress (" NOTH ING _ TO _ INLINE ", Ġ" unused ") Ċ Ċ package Ġme . daemon . view . common Ċ Ċ import Ġandroid . app . Dialog Ċ import Ġandroid . content . Context Ċ import Ġandroid . content . res . Resources Ċ import Ġandroid . util . Typed Value Ċ import Ġandroid . view . View Ċ import Ġandroidx . fragment . app . Fragment Ċ import Ġme . daemon . annotation . Require Infrastructure App Ċ import Ġme . daemon . infrastructure . application . application ĊĊ Ċ inline Ġfun ĠResources . dp 2 px ( dp : ĠFloat ): ĠFloat Ġ= ĊĠĠĠ ĠTyped Value . apply Dimension ( Typed Value . COMPLEX _ UNIT _ DIP , Ġdp , Ġdisplay Metrics ) Ċ Ċ inline Ġfun ĠResources . px 2 dp ( px : ĠFloat ): ĠFloat Ġ= Ġpx Ġ/ Ġdisplay Metrics . density Ċ Ċ inline Ġfun ĠResources . sp 2 px ( sp : ĠFloat ): ĠFloat Ġ= ĊĠĠĠ ĠTyped Value . apply Dimension ( Typed Value . COMPLEX _ UNIT _ SP , Ġsp , Ġdisplay Metrics ) Ċ Ċ inline Ġfun ĠResources . px 2 sp ( px : ĠFloat ): ĠFloat Ġ= Ġpx Ġ/ Ġdisplay Metrics . scaled Density ĊĊ Ċ inline Ġfun ĠContext . dp 2 px ( dp : ĠFloat ): ĠFloat Ġ= Ġresources . dp 2 px ( dp ) Ċ Ċ inline Ġfun ĠContext . px 2 dp ( px : ĠFloat ): ĠFloat Ġ= Ġresources . px 2 dp ( px ) Ċ Ċ inline Ġfun ĠContext . sp 2 px ( sp : ĠFloat ): ĠFloat Ġ= Ġresources . sp 2 px ( sp ) Ċ Ċ inline Ġfun ĠContext . px 2 sp ( px : ĠFloat ): ĠFloat Ġ= Ġresources . px 2 sp ( px ) ĊĊ Ċ inline Ġfun ĠView . dp 2 px ( dp : ĠFloat ): ĠFloat Ġ= Ġresources . dp 2 px ( dp ) Ċ Ċ inline Ġfun ĠView . px 2 dp ( px : ĠFloat ): ĠFloat Ġ= Ġresources . px 2 dp ( px ) Ċ Ċ inline Ġfun ĠView . sp 2 px ( sp : ĠFloat ): ĠFloat Ġ= Ġresources . sp 2 px ( sp ) Ċ Ċ inline Ġfun ĠView . px 2 sp ( px : ĠFloat ): ĠFloat Ġ= Ġresources . px 2 sp ( px ) ĊĊ Ċ inline Ġfun ĠFragment . dp 2 px ( dp : ĠFloat ): ĠFloat Ġ= Ġresources . dp 2 px ( dp ) Ċ Ċ inline Ġfun ĠFragment . px 2 dp ( px : ĠFloat ): ĠFloat Ġ= Ġresources . px 2 dp ( px ) Ċ Ċ inline Ġfun ĠFragment . sp 2 px ( sp : ĠFloat ): ĠFloat Ġ= Ġresources . sp 2 px ( sp ) Ċ Ċ inline Ġfun ĠFragment . px 2 sp ( px : ĠFloat ): ĠFloat Ġ= Ġresources . px 2 sp ( px ) ĊĊ Ċ inline Ġfun ĠDialog . dp 2 px ( dp : ĠFloat ): ĠFloat Ġ= Ġcontext . dp 2 px ( dp ) Ċ Ċ inline Ġfun ĠDialog . px 2 dp ( px : ĠFloat ): ĠFloat Ġ= Ġcontext . px 2 dp ( px ) Ċ Ċ inline Ġfun ĠDialog . sp 2 px ( sp : ĠFloat ): ĠFloat Ġ= Ġcontext . sp 2 px ( sp ) Ċ Ċ inline Ġfun ĠDialog . px 2 sp ( px : ĠFloat ): ĠFloat Ġ= Ġcontext . px 2 sp ( px ) ĊĊ Ċ @ Require Infrastructure App Ċ inline Ġfun Ġdp 2 px ( dp : ĠFloat ): ĠFloat Ġ= Ġapplication . dp 2 px ( dp ) Ċ Ċ @ Require Infrastructure App Ċ inline Ġfun Ġpx 2 dp ( px : ĠFloat ): ĠFloat Ġ= Ġapplication . px 2 dp ( px ) Ċ Ċ @ Require Infrastructure App Ċ inline Ġfun Ġsp 2 px ( sp : ĠFloat ): ĠFloat Ġ= Ġapplication . sp 2 px ( sp ) Ċ Ċ @ Require Infrastructure App Ċ inline Ġfun Ġpx 2 sp ( px : ĠFloat ): ĠFloat Ġ= Ġapplication . px 2 sp ( px ) ĊĊ