
    "j9                         G d  d      Z  G d d      Z G d d      Z G d d      Z G d d	      Z G d
 d      Z G d d      Z G d d      Z G d d      Z G d d      Z	 G d d      Z
 G d d      Z G d d      Z G d d      Z G d d      Z G d d      Z G d  d!      Z G d" d#      Z G d$ d%      Z G d& d'      Z G d( d)      Z G d* d+      Z G d, d-      Z G d. d/      Z G d0 d1      Z G d2 d3      Z G d4 d5      Z G d6 d7      Z G d8 d9      Z G d: d;      Z G d< d=      Z G d> d?      Z G d@ dA      Z  G dB dC      Z! G dD dE      Z" G dF dG      Z# G dH dI      Z$i dJe dKedLedMedNedOedPedQedRedSe	dTe
dUedVedWedXedYedZei d[ed\ed]ed^ed_ed`edaedbedceddedeedfedgedhediedje dke!e"e#e$dlZ%dm Z&yn)oc                       e Zd Zd Zy)Versionc                 J    d| _         || _        || _        || _        || _        y )Nvers)idcheckin_versionparcel_versionstart_platform_versionend_platform_version)selfr   r   r	   r
   s        m/var/www/oz-panel.ru/ozpay-pub/venv/lib/python3.12/site-packages/ppadb/plugins/device/batterystats_section.py__init__zVersion.__init__   s)    .,&<#$8!    N__name__
__module____qualname__r    r   r   r   r      s    9r   r   c                       e Zd Zd Zy)UIDc                 .    d| _         || _        || _        y )Nuid)r   r   package_name)r   r   r   s      r   r   zUID.__init__   s    (r   Nr   r   r   r   r   r      s    )r   r   c                       e Zd Zd Zy)APKc                 f    d| _         || _        || _        || _        || _        || _        || _        y )Napk)r   wakeupsr   service
start_timestartslaunches)r   r   r   r   r   r    r!   s          r   r   zAPK.__init__   s3    $ r   Nr   r   r   r   r   r      s    !r   r   c                       e Zd Zd Zy)Processc                 X    d| _         || _        || _        || _        || _        || _        y )Npr)r   processusersystem
foregroundr    )r   r&   r'   r(   r)   r    s         r   r   zProcess.__init__   s,    	$r   Nr   r   r   r   r#   r#          r   r#   c                       e Zd Zd Zy)Sensorc                 <    d| _         || _        || _        || _        y )Nsr)r   sensor_numbertimecount)r   r/   r0   r1   s       r   r   zSensor.__init__(       *	
r   Nr   r   r   r   r,   r,   '       r   r,   c                       e Zd Zd Zy)Vibratorc                 .    d| _         || _        || _        y )Nvibr   r0   r1   r   r0   r1   s      r   r   zVibrator.__init__0   s    	
r   Nr   r   r   r   r5   r5   /       r   r5   c                       e Zd Zd Zy)
Foregroundc                 .    d| _         || _        || _        y )Nfgr8   r9   s      r   r   zForeground.__init__7   s    	
r   Nr   r   r   r   r<   r<   6   r:   r   r<   c                       e Zd Zd Zy)	StateTimec                 <    d| _         || _        || _        || _        y )Nst)r   r)   activerunning)r   r)   rC   rD   s       r   r   zStateTime.__init__>   s    $r   Nr   r   r   r   r@   r@   =   s    r   r@   c                       e Zd Zd Zy)Wakelockc                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        y )Nwl)r   	wake_lock	full_timef
full_countpartial_timeppartial_countwindow_timewwindow_count)r   rI   rJ   rK   rL   rM   rN   rO   rP   rQ   rR   s              r   r   zWakelock.__init__F   sS    ""$(*&(r   Nr   r   r   r   rF   rF   E   s    )r   rF   c                       e Zd Zd Zy)Syncc                 <    d| _         || _        || _        || _        y )Nsy)r   syncr0   r1   )r   rW   r0   r1   s       r   r   zSync.__init__U   s    		
r   Nr   r   r   r   rT   rT   T   r3   r   rT   c                       e Zd Zd Zy)Jobc                 <    d| _         || _        || _        || _        y )Njb)r   jobr0   r1   )r   r\   r0   r1   s       r   r   zJob.__init__]   s    	
r   Nr   r   r   r   rY   rY   \   r3   r   rY   c                       e Zd Zd Zy)KernelWakeLockc                 <    d| _         || _        || _        || _        y )Nkwl)r   kernel_wake_lockr0   r1   )r   ra   r0   r1   s       r   r   zKernelWakeLock.__init__e   s     0	
r   Nr   r   r   r   r^   r^   d   r3   r   r^   c                       e Zd Zd Zy)WakeupReasonc                 <    d| _         || _        || _        || _        y )Nwr)r   wakeup_reasonr0   r1   )r   rf   r0   r1   s       r   r   zWakeupReason.__init__m   r2   r   Nr   r   r   r   rc   rc   l   r3   r   rc   c                       e Zd Zd Zy)Networkc                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        y )Nnt)r   mobile_bytes_rxmobile_bytes_txwifi_bytes_rxwifi_bytes_txmobile_packets_rxmobile_packets_txwifi_packets_rxwifi_packets_txmobile_active_timemobile_active_count)r   rk   rl   rm   rn   ro   rp   rq   rr   rs   rt   s              r   r   zNetwork.__init__u   sY    ..**!2!2.."4#6 r   Nr   r   r   r   rh   rh   t   s    7r   rh   c                       e Zd Zd Zy)UserActivityc                 <    d| _         || _        || _        || _        y )Nua)r   otherbuttontouch)r   ry   rz   r{   s       r   r   zUserActivity.__init__   s    

r   Nr   r   r   r   rv   rv      r3   r   rv   c                       e Zd Zd Zy)Batteryc	                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        y )Nbt)	r   start_countbattery_realtimebattery_uptimetotal_realtimetotal_uptimestart_clock_timebattery_screen_off_realtimebattery_screen_off_uptime)	r   r   r   r   r   r   r   r   r   s	            r   r   zBattery.__init__   sI    & 0,,( 0+F()B&r   Nr   r   r   r   r}   r}      s    	Cr   r}   c                       e Zd Zd Zy)BatteryDischargec                 J    d| _         || _        || _        || _        || _        y )Ndc)r   lowhigh	screen_on
screen_off)r   r   r   r   r   s        r   r   zBatteryDischarge.__init__   s%    	"$r   Nr   r   r   r   r   r      s    %r   r   c                       e Zd Zd Zy)BatteryLevelc                 .    d| _         || _        || _        y )Nlv)r   start_levelcurrent_level)r   r   r   s      r   r   zBatteryLevel.__init__   s    &*r   Nr   r   r   r   r   r      s    +r   r   c                       e Zd Zd Zy)WiFic                 t    d| _         || _        || _        || _        || _        || _        || _        || _        y )Nwfl)r   full_wifi_lock_on_timewifi_scan_timewifi_running_timewifi_scan_countwifi_idle_timewifi_receive_timewifi_transmit_time)r   r   r   r   r   r   r   r   s           r   r   zWiFi.__init__   sA    &<#,!2.,!2"4r   Nr   r   r   r   r   r      s    5r   r   c                       e Zd Zd Zy)
GlobalWiFic                 f    d| _         || _        || _        || _        || _        || _        || _        y )Ngwfl)r   wifi_on_timer   r   r   r   wifi_power_mah)r   r   r   r   r   r   r   s          r   r   zGlobalWiFi.__init__   s9    (!2,!2"4,r   Nr   r   r   r   r   r      s    -r   r   c                       e Zd Zd Zy)GlobalBluetoothc                 J    d| _         || _        || _        || _        || _        y )Ngble)r   bt_idle_timebt_receive_timebt_transmit_timebt_power_mah)r   r   r   r   r   s        r   r   zGlobalBluetooth.__init__   s)    (. 0(r   Nr   r   r   r   r   r      s    )r   r   c                       e Zd Zd Zy)Miscc                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        || _        || _        || _        || _        || _        y )Nm)r   screen_on_timephone_on_timefull_wakelock_time_totalpartial_wakelock_time_totalmobile_radio_active_time!mobile_radio_active_adjusted_timeinteractive_timepower_save_mode_enabled_timeconnectivity_changesdevice_idle_mode_enabled_timedevice_idle_mode_enabled_countdevice_idling_timedevice_idling_countmobile_radio_active_count mobile_radio_active_unknown_time)r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   s                   r   r   zMisc.__init__   s    ,*(@%+F((@%1R. 0,H)$8!-J*.L+"4#6 )B&0P-r   Nr   r   r   r   r   r      s    Qr   r   c                       e Zd Zd Zy)GlobalNetworkc	                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        y )Ngn)	r   mobile_rx_total_bytesmobile_tx_total_byteswifi_rx_total_byteswifi_tx_total_bytesmobile_rx_total_packetsmobile_tx_total_packetswifi_rx_total_packetswifi_tx_total_packets)	r   r   r   r   r   r   r   r   r   s	            r   r   zGlobalNetwork.__init__   sI    %:"%:"#6 #6 '>$'>$%:"%:"r   Nr   r   r   r   r   r      s    	;r   r   c                       e Zd Zd Zy)ScreenBrightnessc                 X    d| _         || _        || _        || _        || _        || _        y )Nbr)r   darkdimmediumlightbright)r   r   r   r   r   r   s         r   r   zScreenBrightness.__init__   s,    	
r   Nr   r   r   r   r   r      r*   r   r   c                       e Zd Zd Zy)SignalScanningTimec                      d| _         || _        y )Nsst)r   signal_scanning_time)r   r   s     r   r   zSignalScanningTime.__init__   s    $8!r   Nr   r   r   r   r   r      s    9r   r   c                       e Zd Zd Zy)SignalStrengthTimec                 X    d| _         || _        || _        || _        || _        || _        y )Nsgtr   nonepoormoderategoodgreatr   r   r   r   r   r   s         r   r   zSignalStrengthTime.__init__   ,    		 	
r   Nr   r   r   r   r   r          r   r   c                       e Zd Zd Zy)SignalStrengthCountc                 X    d| _         || _        || _        || _        || _        || _        y )Nsgcr   r   s         r   r   zSignalStrengthCount.__init__  r   r   Nr   r   r   r   r   r     r   r   r   c                       e Zd Zd Zy)DataConnectionTimec                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        || _        || _        || _        || _        || _        || _        || _        y )Ndctr   r   gprsedgeumtscdmaevdo_0evdo_a_1xrtthsdpahsupahspaidenevdo_blteehrpdhspapry   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   ry   s                     r   r   zDataConnectionTime.__init__      					

		


r   Nr   r   r   r   r   r         r   r   c                       e Zd Zd Zy)DataConnectionCountc                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        || _        || _        || _        || _        || _        || _        || _        y )Ndccr   r  s                     r   r   zDataConnectionCount.__init__$  r  r   Nr   r   r   r   r  r  #  r  r   r  c                       e Zd Zd Zy)WiFiStateTimec	                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        y )Nwst	r   offoff_scanningon_no_networkson_disconnectedon_connected_staon_connected_p2pon_connected_sta_p2psoft_ap	r   r  r  r  r  r  r  r  r  s	            r   r   zWiFiStateTime.__init__:  G    (,. 0 0$8!r   Nr   r   r   r   r	  r	  9      	r   r	  c                       e Zd Zd Zy)WiFiStateCountc	                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        y )Nwscr  r  s	            r   r   zWiFiStateCount.__init__G  r  r   Nr   r   r   r   r  r  F  r  r   r  c                       e Zd Zd Zy)WiFiSupplicantStateTimec                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        || _        || _        || _        y )Nwsstr   invaliddisconnectedinterface_disabledinactivescanningauthenticatingassociating
associatedfour_way_handshakegroup_handshake	completeddormantuninitializedr   r!  r"  r#  r$  r%  r&  r'  r(  r)  r*  r+  r,  r-  s                 r   r   z WiFiSupplicantStateTime.__init__T  k    ("4  ,&$"4."*r   Nr   r   r   r   r  r  S      +r   r  c                       e Zd Zd Zy)WiFiSupplicantStateCountc                     d| _         || _        || _        || _        || _        || _        || _        || _        || _        |	| _	        |
| _
        || _        || _        || _        y )Nwsscr   r.  s                 r   r   z!WiFiSupplicantStateCount.__init__f  r/  r   Nr   r   r   r   r2  r2  e  r0  r   r2  c                       e Zd Zd Zy)WiFiSignalStrengthTimec                 X    d| _         || _        || _        || _        || _        || _        y )Nwsgtr   r   s         r   r   zWiFiSignalStrengthTime.__init__x  ,    		 	
r   Nr   r   r   r   r6  r6  w  r   r   r6  c                       e Zd Zd Zy)WiFiSignalStrengthCountc                 X    d| _         || _        || _        || _        || _        || _        y )Nwsgcr   r   s         r   r   z WiFiSignalStrengthCount.__init__  r9  r   Nr   r   r   r   r;  r;    r   r   r;  c                       e Zd Zd Zy)BluetoothStateTimec                 J    d| _         || _        || _        || _        || _        y )Nbstr   r$  r   medr   r   r$  r   rC  r   s        r   r   zBluetoothStateTime.__init__  %     	r   Nr   r   r   r   r?  r?        r   r?  c                       e Zd Zd Zy)BluetoothStateCountc                 J    d| _         || _        || _        || _        || _        y )NbscrB  rD  s        r   r   zBluetoothStateCount.__init__  rE  r   Nr   r   r   r   rH  rH    rF  r   rH  r   r   r   r%   r.   r7   r>   rB   rH   rV   r[   r`   re   rj   rx   r   r   r   r   r   r   r   r   r   r   r   r   r   r  r  r  r  r4  r8  )r=  rA  rJ  c                 ,    t         j                  |       S )N)mappingget)names    r   get_sectionrO    s    ;;tr   N)'r   r   r   r#   r,   r5   r<   r@   rF   rT   rY   r^   rc   rh   rv   r}   r   r   r   r   r   r   r   r   r   r   r   r   r  r	  r  r  r2  r6  r;  r?  rH  rL  rO  r   r   r   <module>rP     s>  9 9) )! !     ) )    7 7 
C 
C% %+ +	5 	5- -) )Q Q(
; 
; 9 9   , ,
 

 
+ +$+ +$    &	 w&	 c&	 c&	 W	&	
 V&	 h&	 Z&	 Y&	 X&	 T&	 S&	 n&	 \&	 W&	 \&	  W!&	" #&	$ \%&	& d'&	( z)&	* +&	, D-&	. ]/&	0 1&	2 3&	4 5&	6 7&	8 9&	: ;&	< m=&	> n?&	@ A&	B C&	D E&	F K&	Pr   