def phoinfo():
    k = sysinfo.sw_version()
    (
        pi,
        pi2,
    ) = sysinfo.display_pixels()
    rin = sysinfo.ring_type()
    pro = sysinfo.active_profile()
    osama.add(
        (itq('\n\t...................\nThe Software Ver. of phone is: \n') +
         k))
    osama.add((((itq('\n_____\nThe Display Pixle is: \n') + str(pi)) + u'x') +
               str(pi2)))
    osama.add((itq('\n_____\nThe Selected Profile  is: \n') + pro))
    osama.add(((itq('\n_____\nThe Type of ringtone  is: \n') + rin) +
               itq('\n\t...................\n')))
Exemplo n.º 2
0
 def test_ring_type(self):
     self._test_util("ring_type", sysinfo.ring_type())
Exemplo n.º 3
0
#sysinfo是与系统信息有关的模块


def cn(x):
    return x.decode("utf8")


appuifw.app.body = t = appuifw.Text()
t.focus = False
appuifw.app.screen = "full"

t.add(cn("情景模式:") + sysinfo.active_profile())  #查看当前情景模式
t.add(cn("\n电量:") + unicode(sysinfo.battery()))  #查看当前电量
t.add(cn("\n屏幕分辨率:") + unicode(sysinfo.display_pixels()))  #查看屏幕分辨率
t.add(cn("\n剩余空间:\n"))
i = 0
drive = [u"C:", u"D:", u"E:"]
while i < len(drive):  #循环语句
    t.add(drive[i] + unicode(sysinfo.free_drivespace()[drive[i]] / 1024) +
          u"kb\n")  #查看C,D,E盘剩余空间
    i += 1
t.add(cn("剩余运存:") + unicode(sysinfo.free_ram() / 1024) + u"kb")  #查看剩余运存
t.add(cn("\nIMEI:") + unicode(sysinfo.imei()))  #查看手机串号
t.add(cn("\n系统版本:") + unicode(sysinfo.os_version()))  #查看系统版本信息
t.add(cn("\n响铃方式:") + unicode(sysinfo.ring_type()))  #查看响铃方式
t.add(cn("\n手机版本:") + unicode(sysinfo.sw_version()))  #查看手机版本
t.add(cn("\n缓存总大小:") + unicode(sysinfo.total_ram() / 1024) + u"kb")  #查看剩余缓存
t.add(cn("\nZ盘总大小:") + unicode(sysinfo.total_rom() / 1024) + u"kb")  #查看Z盘总大小

e32.Ao_lock().wait()
Exemplo n.º 4
0
# limitations under the License.

import sysinfo

print "OS: "
print sysinfo.os_version()
print "SW: "
print sysinfo.sw_version()
print "IMEI: "
print sysinfo.imei()
print "Bat: "
print sysinfo.battery()
print "Net: "
print sysinfo.signal()
print "Ram: "
print sysinfo.total_ram()
print "Rom: "
print sysinfo.total_rom()
print "MaxRamDrive: "
print sysinfo.max_ramdrive_size()
print "Twips: "
print sysinfo.display_twips()
print "Pixels: "
print sysinfo.display_pixels()
print "RamFree: "
print sysinfo.free_ram()
print "DriveSpace: "
print sysinfo.free_drivespace()
print "RingType: "
print sysinfo.ring_type()
Exemplo n.º 5
0
sys.stdout.write("IMEI: %s\n" % sysinfo.imei())

sys.stdout.write("Battery strength: %s\n" % sysinfo.battery())
 
sys.stdout.write("Signal strength: %s\n" % sysinfo.signal_bars())
 
sys.stdout.write("Network signal strength in dBm: %s\n" % sysinfo.signal_dbm())
 
sys.stdout.write("SW version: %s\n" % sysinfo.sw_version())
 
sys.stdout.write("Display size:\n")
print(sysinfo.display_pixels())
 
sys.stdout.write("Current profile: %s\n" % sysinfo.active_profile())
 
sys.stdout.write("Ringing type: %s\n" % sysinfo.ring_type())
 
sys.stdout.write("OS version:\n")
print(sysinfo.os_version())

sys.stdout.write("Free/total RAM (MB): %.2f / %.2f\n" % (sysinfo.free_ram()/1024/1024,sysinfo.total_ram()/1024/1024))
 
sys.stdout.write("Total ROM (MB): %.2f \n" % (sysinfo.total_rom()/1024/1024))
 
sys.stdout.write("Free disk space C/E (MB): %.2f / %.2f\n" % (sysinfo.free_drivespace()['C:']/1024/1024,sysinfo.free_drivespace()['E:']/1024/1024))

sys.stdout.write("Python version: %s (%s, %s)\n" % (e32.pys60_version,e32.pys60_version_info[0],e32.pys60_version_info[1]))
 
sys.stdout.write("Symbian version: (%s, %s)\n" % (e32.s60_version_info[0],e32.s60_version_info[1]))
 
sys.stdout.write("Available drives: \n")