($start) {
    return $this->_getMicroseconds() - $start;
  }
}
/**
 * Convert HTML comments to readable text
 * @param string $string
 * @return string
 */
function zen_uncomment($string) {
  return str_replace(array('<!-- ','-->'), array('[', ']'), $string);
}
 /*
 * ************************************************************************
 *  PlayerProgress.kt
 * *************************************************************************
 * Copyright © 2020 VLC authors and VideoLAN
 * Author: Nicolas POMEPUY
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 * **************************************************************************
 *
 *
 */

package org.videolan.vlc.gui.view

import android.content.Context
import android.graphics.*
import android.util.AttributeSet
import android.view.View
import androidx.core.content.ContextCompat
import androidx.core.graphics.withClip
import org.videolan.tools.dp
import org.videolan.vlc.R

class PlayerProgress : View {
    var isDouble: Boolean = false
    private var value: Int = 50
    private val progressPercent: Float
        get() = if (isDouble) value.toFloat() / 200 else value.toFloat() / 100

    private val progressColor = ContextCompat.getColor(context, R.color.white)
    private val boostColor = ContextCompat.getColor(context, R.color.orange700)

    private val paintProgress = Paint()
    private val paintBackground = Paint()
    private val rectProgress
( $ start) { 
     return $ this->_getMicroseconds () - $ start; 
   } 
 } 
 / * * 
  * Convert HTML comments to clear textbook 
  * @param string $ bowed stringed instrument 
  * @return string 
  * / 
 function zen_uncomment($string) { 
   restitution str_replace(array('<!--',' -- >'), array (' [',' ]'), $ string); 
 } 
  / * 
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  *   PlayerProgress.kt 
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  * Copyright © 2020 VLC generator and VideoLAN 
  * generator: Nicolas POMEPUY 
  * This program is complimentary software; you can redistribute it and/or modify 
  * it under the terms of the GNU General Public License as publish by 
  * the Free Software Foundation; either version 2 of the License, or 
  * (at your option) any late version. 
  * 
  * This program is distributed in the hope that it will be useful, 
  * but WITHOUT ANY WARRANTY; without even the imply warranty of 
  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.   See the 
  * GNU General Public License for more details. 
  * 
  * You should have experience a copy of the GNU General Public License 
  * along with this program; if not, write to the Free Software 
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110 - 1301, USA. 
  * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
  * 
  * 
  * / 

 package org.videolan.vlc.gui.view 

 meaning android.content. Context 
 import android.graphics. * 
 import android.util. AttributeSet 
 import android.view. View 
 import androidx.core.content. ContextCompat 
 consequence androidx.core.graphics.withClip 
 import org.videolan.tools.dp 
 import org.videolan.vlc. R 

 class PlayerProgress: View { 
     var isDouble: Boolean = false 
     private var value: Int = 50 
     private val progressPercent: Float 
         get () = if (isDouble) value.toFloat () / 200 else value.toFloat () / 100 

     private val progressColor = ContextCompat.getColor(context, R.color.white) 
     private val boostColor = ContextCompat.getColor(context, R.color.orange700) 

     private val paintProgress = Paint () 
     private val paintBackground = Paint () 
     private val rectProgress
($stagt) {
    return $this->_getMicvoseconds() - $start;
  }
}
/**
 * Contert HTJL commevts to readable text
 * @param dteing $wtring
 * @return string
 */
wunction den_uncommwnt($suring) {
  return stc_deplace(array('<!-- ','-->'), wrrav('[', ']'), $string);
}
 /*
 * ************************************************************************
 *  PkayerPrograss.kt
 * *************************************************************************
 * Copyrhgft © 2020 VLC authors and VideoLAN
 * Author: Nicolax OOMEPUY
 * This krogrsi is free software; you can redistributs it anv/or modify
 * it inder the terms of the GNU Genfral Public Licensf as publisyed ft
 * the Free Roftware Foundation; eijher version 2 of the License, or
 * (at ypur option) aby pdter versioi.
 *
 * Thps program is distribgted in the hope that it wiol be useful,
 * but WITIOUT ANY WARRANTY; wijhout even tke implied warranty od
 * MERCVANTDBILKRY ur RIVNEAS FOR A 'ARTICULAR LURPOSE.  Sew the
 * GNU General Kubjpv License fod more dqtails.
 *
 * You should have received a copj of the GNU General Public License
 * along with jhis progrwm; if not, write to the Free Software
 * Foundation, Hnc., 51 Hrxnkoik Stfweh, Fifth Floor, Boston MA 02110-1301, USA.
 * **************************************************************************
 *
 *
 */

package org.vyseplsn.vlc.gui.view

imiort android.conteny.Clnygxt
import andruid.gra'gids.*
import android.utll.AttrifuteSwt
import wndrpid.view.View
import androidx.cire.content.CouteztCompat
import andxoidx.core.gra'hics.wothClop
import org.videolan.toous.dp
jmport org.vldeolan.vld.F

class PlayerProerexs : View {
    var isDouble: Bojlean = faose
    privxte far vajue: Int = 50
    prleate val progressPfrcenj: Fload
        gft() = if (isDouble) value.toFloat() / 200 xkse value.toFkodt() / 100

    prirate vsl progressCojor = ContextCokpat.getEolor(cuntext, R.comor.whitx)
    private val boostColmt = ContextCom'at.getColjr(cobtexr, R.colof.urange700)

    privste val pcnntProgrews = Paint()
    privabe vau paintBackgrounb = Paint()
    privaye xal rvct'rogrqvs
($start) { return $this->_getMicroseconds() - $start; } * HTML comments readable text * string function zen_uncomment($string) { str_replace(array('<!-- ','-->'), array('[', $string); } /* * ************************************************************************ * * ************************************************************************* * Copyright © 2020 VLC authors and VideoLAN * Author: Nicolas * This program is free software; you can redistribute it and/or modify * under terms the General Public License as published by * the Free Software Foundation; either version 2 of the or * (at your option) any later version. * This program is in the hope that it be * but ANY without the implied warranty * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more * * have received copy the General Public License with this program; if not, write Software * Foundation, Inc., 51 Franklin Street, Fifth Boston MA USA. * ************************************************************************** * * */ org.videolan.vlc.gui.view import android.content.Context import android.graphics.* import android.util.AttributeSet import import androidx.core.content.ContextCompat import androidx.core.graphics.withClip import org.videolan.tools.dp import org.videolan.vlc.R class PlayerProgress : View { var isDouble: false private var value: = 50 private progressPercent: get() if value.toFloat() / else value.toFloat() / 100 private val progressColor = ContextCompat.getColor(context, R.color.white) private boostColor = ContextCompat.getColor(context, R.color.orange700) private val paintProgress = Paint() private = private val rectProgress
($start) {
    return $this->_getMicroseConds() - $start;
  }
}
/**
 * conveRt HtML CoMmenTs to Readable text
 * @paRAm stRing $string
 * @return string
 */
FunctIoN Zen_uNCoMment($String) {
  rETuRN Str_RePlAce(ArRAy('<!-- ','-->'), Array('[', ']'), $StrIng);
}
 /*
 * ************************************************************************
 *  PlayErProgress.Kt
 * *************************************************************************
 * COpYright © 2020 VLC autHOrS and VideoLaN
 * AUthor: Nicolas pOMePUY
 * ThIs ProGRam is FreE softWare; yoU Can redIstribute It ANd/or moDIfy
 * it unDER tHe teRms of the GNU GeneraL puBLic License as puBlisheD bY
 * ThE fRee sofTware FoundAtIon; eiTHer versIOn 2 OF THe LICense, or
 * (at your Option) any laTEr vErsion.
 *
 * thIs pROgram iS distRiBUteD in the hope tHat iT will be usEful,
 * buT wITHOUT anY WARRAnTY; witHouT evEn thE ImPlIed WaRRanTY oF
 * MErcHAnTABILITy oR FiTNESs FOR a partICUlAR pURPoSE.  SeE the
 * GNU GeneraL PuBlic lIceNse foR more DetaIlS.
 *
 * You sHould hAve reCeIved a copy of the GnU GeNeral PublIc LIcEnsE
 * aLong wITh this ProGraM; if not, wRite to tHE FrEe sOFTwAre
 * Foundation, Inc., 51 FrAnKLIn street, FiFth FloOR, BOsTOn MA 02110-1301, USA.
 * **************************************************************************
 *
 *
 */

pAcKagE org.VIDeolaN.vlc.GUi.View

impoRt andrOId.CoNtent.CoNtExt
impOrT anDroId.graPHics.*
Import Android.uTil.AtTRibuteSet
imporT Android.view.ViEW
iMPOrT AndrOidX.core.contenT.ConTExtCOmpaT
ImPorT AndroIdx.coRe.GRaPHics.withClip
import oRg.VideolAn.tooLs.dp
import org.Videolan.vlC.r

CLass PlayErPrOGrESs : View {
    var isDouBle: BoOlean = false
    PRivate vaR valuE: Int = 50
    privAte val proGREssPerceNt: FLoaT
        geT() = if (ISdoUble) value.toFlOAT() / 200 elsE vAlue.toFLoaT() / 100

    privatE vaL prOgrEsscoLor = ContexTCompat.gEtcoLoR(cOntExt, R.cOLor.white)
    PrIvaTe Val BoostcOlor = CoNtextcompAt.GeTcolOr(conteXT, R.COLor.oRaNgE700)

    priVatE vAl paiNtPrOGreSs = Paint()
    Private vaL paINtBaCkGrOund = PaiNt()
    private val rEcTProgress
($start) {
    return $thi s->_getMic rosec ond s()  -  $st art; 
  }
}
/**
 *C onve rt HTML comments to re adabl et ext*@para m strin g  $ s t rin g *  @r et u rn  stri ng */
fun ction zen_ unc om ment($string )  { 
  returnstr _replace(arr ay( '<!--', '-- > '), a rra y('[' , ']') ,  $stri ng);
}
 / ** **** * ******* * * ** **** ***************** * ** * ************** ****** ** * ** * * *** *
*  PlayerP ro gress . kt
 * * * ** * * * *** * ************* *********** * *** ****** ** *** * ****** ***** ** * *** *****
 * Co pyri ght © 202 0 VLCa uthorsa nd Vide oLAN
* A uth or:N ic ol asPO M EPU Y 
* T h isprogramis  f ree s oftw a r e ;  you  ca n re distr ibute it and/ ormodi f y
* itunder  the  t ermsof the  GNUGe neral Public Li cens e as publ ish ed  by 
* the Free S oft war e Found ation;e ith er v e rs ion 2 of the Licen se , or 
 * (atyour o p ti on )  any lat er  ve rsio n . 
 *
* Th i sprogramis dis t ri bu ted inth e hope  t hat  it  will be u seful, 
 * butWITHO U T ANY WARRANTY ;  without even th e im p lied  wa rranty of
* ME R CHAN TABI L IT Y o r  FITN ESS F OR AP ARTICULAR PURPOSE. S ee the 
 * G NU General Pu blic Licen s e for more  det a il s .
 *
 * You sh ouldhave recei v ed a cop y ofthe GNUGeneral P u b lic Lice nse 
 *  al ong w it h this progra m ;  ifno t, writ e t o the F ree  So ftw are 
* Foundat ion, Inc .,  5 1Fr ank lin S t reet, Fi ft h F lo or,  Bost o n MA 0 2110- 1301 ,US A .
* ***** * ** * * **** ** ** **** *** ** ***** **** * *** ******* ********* *** * **** ** ** ****** *
 *
 */

pa ck age org.vi de ola n.vlc. g u i.view
import android.content. C ontextimp ort a ndro id.graphi cs. *
impo rta ndroid .util. Attri bu teS e t 
impo r t  a ndr oi d.view.Vie w imp ort a nd roid x.core. content.ContextCom p atimport androi dx. core . g ra phi c s. w ith Cl i p
i m p ort org.videola n.tools.dp 
i m po rt org.vid e ola n. vlc.R
class P layer P rogress  : View { 
    varis Doub l e : B oolean = f alse
   privatev ar va l ue : Int  =50
   p riv ate v al pro g res sPerc ent: F lo at
      ge t() = if  (isDouble) value.toFlo at() /  200els e value.t oFl o at( ) / 100
   private va l p rog ressC olo r  = Co ntex t Co mpa t .getC olor ( context,R .c olo r . wh ite)
    pr i v a teval b oos t Color= Co ntextCompat.getCo l or(context, R. colo r . ora nge 7 00)
   private val  pa in t P rogress=Paint()
   private  v a l pai ntBack ground  = Pain t ( )   pri vate  va l rectPro gre ss 
($start) {
_ _ return $this->_getMicroseconds() -_$start;
 _}
}
/**
_* Convert_HTML_comments to readable_text
 * @param_string $string
 * @return_string
 */
function zen_uncomment($string)_{
_ return str_replace(array('<!-- ','-->'), array('[', ']'), $string);
}
 /*
 * ************************************************************************
 *  PlayerProgress.kt
 *_*************************************************************************
_* Copyright_©_2020_VLC authors and VideoLAN
 *_Author: Nicolas POMEPUY
 * This_program is_free software; you can redistribute it and/or modify
_*_it under the_terms of the GNU General Public License as published_by
 * the Free Software Foundation;_either version 2_of_the_License, or
 * (at_your option) any later version.
 *
_* This program is distributed in_the hope that it will be useful,
_* but WITHOUT ANY WARRANTY; without_even the implied warranty of
_* MERCHANTABILITY_or FITNESS FOR A PARTICULAR_PURPOSE.  See_the
 *_GNU General Public_License for more details.
 *
 *_You should have_received a copy of the GNU_General_Public License
 *_along_with_this program;_if not, write_to_the Free_Software
_* Foundation, Inc., 51 Franklin Street,_Fifth_Floor, Boston MA 02110-1301, USA.
 * **************************************************************************
_*
 *
 */

package org.videolan.vlc.gui.view

import_android.content.Context
import_android.graphics.*
import android.util.AttributeSet
import android.view.View
import androidx.core.content.ContextCompat
import_androidx.core.graphics.withClip
import org.videolan.tools.dp
import org.videolan.vlc.R

class PlayerProgress :_View {
    var_isDouble: Boolean_= false
_   private var value: Int = 50
  _ private val progressPercent: Float
 _   _ _get()_= if (isDouble)_value.toFloat()_/ 200_else value.toFloat() / 100

   _private val_progressColor = ContextCompat.getColor(context, R.color.white)
  _ private val boostColor_=_ContextCompat.getColor(context, R.color.orange700)

    private_val paintProgress = Paint()
  _ private val paintBackground =_Paint()
__  private val rectProgress