Package phones ::
Module com_motov325
|
|
1
2
3
4
5
6
7
8
9
10 """Communicate with Motorola phones using AT commands"""
11
12 import time
13
14 import common
15 import com_motov3m as v3m
16 import helpids
17 import p_motov325
18
19 parentphone=v3m.Phone
21 desc='Moto-V325'
22 helpid=helpids.ID_PHONE_MOTOV325
23 protocolclass=p_motov325
24 serialsname='motov325'
25
26 builtinringtones=(
27 (0, ('Silent',)),
28 (5, ('Vibe Dot', 'Vibe Dash', 'Vibe Dot Dot', 'Vibe Dot Dash',
29 'Vibe Pulse')),
30 (11, ('Alert', 'Standard', 'Bells', 'Triads', 'Up and Down')),
31 (30, ('Moonlit Haze', 'Nightlife', 'Wind Chime', 'Random',
32 'Bit & Bytes', 'Door Bell', 'Ding', 'One Moment', 'Provincial',
33 'Harmonics', 'Interlude', 'Snaggle', 'Cosmic')),
34 )
35
37 """Retrieve wallpaper data"""
38
39
40 self.log('Waiting for the phone to switch back to mode modem')
41 time.sleep(2)
42 return parentphone.getwallpapers(self, fundamentals)
43
44
45 parentprofile=v3m.Profile
47 serialsname=Phone.serialsname
48
49
50 phone_manufacturer='Motorola'
51 phone_model='V325 '
52 common_model_name='V325'
53 generic_phone_model='Motorola V325 Phone'
54
55
56 imagetargets={}
57 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "wallpaper",
58 {'width': 176, 'height': 184, 'format': "JPEG"}))
59 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "pictureid",
60 {'width': 96, 'height': 72, 'format': "JPEG"}))
61 imagetargets.update(common.getkv(parentprofile.stockimagetargets, "fullscreen",
62 {'width': 176, 'height': 220, 'format': "JPEG"}))
63