Hello!
I recently purchased an iPaq hw6955 and fell in love with it. I have been coding on Windows for way too many years, yet this is the first time my PDA doesn't run Linux (or OpenBSD ).
I recently saw levenum's taskbar battery meter, and though that it would make a nice project for a first mobile application. How pleased I was when levenum accepted my request to share the sources. How even more pleased and surprised I was when I saw the code. It is exactly the same as coding on Windows...
So my idea was to have a fullscreen gradient bar that would look "behind" VistaBetaTWO's WA2 Aero skin. And I've done it (and it only weights 12 kb!).
Here is a screenshot for your viewing pleasure.
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
But after having read levenum's thread, I understood some people would like it thinner, etc... So there are tons of options read from the registry! The gauge should work on WM 5.0 PocketPC and Smartphone editions, and should handle screen rotation, but I can't test this because the emulator doesn't have an option to switch between landscape and portrait, and the hw6955 is a square screen device.
The registry keys are kept for each resolution, which I will write as "W x H". (e.g. The base key for my device (240 x 240) would be HKCU\Software\VistaHide\Battery Gauge\240 x 240\). All of these keys are independant (i.e. If you need to only modify the height of the bar, you only need to create the Height key.)
Options :
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\X
- Window's left position. Default : 0.
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Y
- Window's top position. Default : 0.
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Width
- Window's width. Default : -1.
- Note: Any value below 0 means fullscreen.
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Height
- Window's height. Default : 4.
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Thresholds\Critical
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Thresholds\Low
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Thresholds\High
- Value between 0 and 100 which represents the gradient thresholds.
- Default : (Critical) 0.05, (Low) 0.25, (High) 1.00.
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Background\Light
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Background\Normal
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Background\Dark
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Critical\Light
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Critical\Normal
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Critical\Dark
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Low\Light
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Low\Normal
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\Low\Dark
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\High\Light
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\High\Normal
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Colors\High\Dark
- Colors! If you look closely at the screenshot, you will see that the bar is "beleveled". The light color is the top part, and dark one the bottom, everything in between is normal. Want to disable "beleveling" ? Set the light, normal and dark to the same color.
- Default values ( Light, Normal, Dark ) :
Background : RGB ( 64, 64, 64 ), RGB ( 32, 32, 32 ), RGB ( 0, 0, 0 )
Critical : RGB ( 255, 127, 127 ), RGB ( 255, 0, 0 ), RGB ( 127, 0, 0 )
Low : RGB ( 255, 255, 127 ), RGB ( 255, 255, 0 ), RGB ( 127, 127, 0 )
High : RGB ( 127, 255, 127 ), RGB ( 0, 255, 0 ), RGB ( 0, 127, 0 )
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Excluded Regions\{Anything}\X
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Excluded Regions\{Anything}\Y
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Excluded Regions\{Anything}\Width
[DWORD] HKCU\Software\VistaHide\Battery Gauge\W x H\Excluded Regions\{Anything}\Height
- Now for the fun part... This is how you can remove "parts" of the bar. For every key in "Excluded Regions", it will read a rectangle, and exclude it from the window.
- Default value : No excluded regions.
Example (I think it's necessary ) :
Here are the keys needed to achieve the look in the screenshot (at 240 x 240). It uses all the default values, except for 4 excluded regions (one per line).
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 1\X : (DWORD) 13
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 1\Y : (DWORD) 0
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 1\Width : (DWORD) 11
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 1\Height : (DWORD) 1
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 2\X : (DWORD) 11
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 2\Y : (DWORD) 1
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 2\Width : (DWORD) 15
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 2\Height : (DWORD) 1
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 3\X : (DWORD) 10
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 3\Y : (DWORD) 2
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 3\Width : (DWORD) 17
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 3\Height : (DWORD) 1
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 4\X : (DWORD) 9
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 4\Y : (DWORD) 3
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 4\Width : (DWORD) 19
HKCU\Software\VistaHide\Battery Gauge\240 x 240\Excluded Regions\Line 4\Height : (DWORD) 1
EDIT: Forgot one neat feature... If you launch it while it is already running, it will close the running instance.
Hope you enjoy, and you can expect a lot more freebies like this from me in the future!
Looks damn pretty!
Gonna check it out right away!
Molski
Awesome post. Thanks so much for this.
Great tutorial as well, I succesfully (and easily) adjusted my height to 2 which is a lot less intrusive for my needs. ;-)
Glad you find it useful. For those who intend to use it on a device that can rotate the screen, I remembered while commuting home that I forgot to regenerate the bitmaps on rotation. This means that the bar will not be drawn correctly upon rotation. I will fix this in the next version.
And if I feel like it, I might even make another application to configure it (to keep the bar's small footprint.)
Awesome application... thanks u very much...
i have already download and try it... however why my bar always shown in front of my wisbar not behind the wisbar ?
Have i do anything wrong ??
ins0mniaque said:
this is the first time my PDA doesn't run Linux
Click to expand...
Click to collapse
We are working on it
http://wiki.xda-developers.com/index.php?pagename=Ipaq6915
mugen_jon said:
Awesome application... thanks u very much...
i have already download and try it... however why my bar always shown in front of my wisbar not behind the wisbar ?
Have i do anything wrong ??
Click to expand...
Click to collapse
The bar is not "behind" the wisbar. It is simply not drawn at some places. To achieve the same looks as in the screen shot, the you need the 16 registry values I posted in the section "Here are the keys needed to achieve the look in the screenshot (at 240 x 240). It uses all the default values, except for 4 excluded regions (one per line).".
hi, i tried it on my T-Mobile SDA WM5 smartphone but nothing happened. There was also no HKCU registry entries.
oldsap said:
hi, i tried it on my T-Mobile SDA WM5 smartphone but nothing happened.
Click to expand...
Click to collapse
Sorry, my bad! I blatantly assumed the smartphone edition was like the PocketPC edition. I will fix this in the next version. Probably friday afternoon.
oldsap said:
There was also no HKCU registry entries.
Click to expand...
Click to collapse
I might have been a little bit too implicit. HKCU stands for HKEY_CURRENT_USER. All those keys do not exist, and they are not created by the program. The bar will attempt to read those values on start, and will fall back to the default value if the key doesn't exist. For exemple, if you only create the "HKCU\Software\VistaHide\Battery Gauge\W x H\Height" key, then only the Height of the bar will be modified, nothing else.
ins0mniaque said:
Sorry, my bad! I blatantly assumed the smartphone edition was like the PocketPC edition. I will fix this in the next version. Probably friday afternoon.
Click to expand...
Click to collapse
Thank you. will be eagerly waiting for it
I might have been a little bit too implicit. HKCU stands for HKEY_CURRENT_USER. All those keys do not exist, and they are not created by the program. The bar will attempt to read those values on start, and will fall back to the default value if the key doesn't exist. For exemple, if you only create the "HKCU\Software\VistaHide\Battery Gauge\W x H\Height" key, then only the Height of the bar will be modified, nothing else.
Click to expand...
Click to collapse
thanks for the clear up
anyone get it to automatically adjust when going from portrait to landscape?
New version
I just found version 1.1.1 at http://www.freewarepocketpc.net/ppc-download-vistahide-battery-gauge-v1-1-1.html
Is this the same program but the upgraded version just never got posted here?
Anyway, it works great on my cingular/at&t 8525 aka HTC hermes in landscape AND portrait mode.
http://www.freewarepocketpc.net/mirror/VistaHide%20Battery%20Gauge%201.1.1%20WM5%20Pocket%20PC.zip
I know this is an old post but I've been trying to get this off my mogul for a while now. Somehow it's gotten to my startup folder and I've tried everything to delete it.
Any suggestions?
Thanks.
vicn77 said:
I know this is an old post but I've been trying to get this off my mogul for a while now. Somehow it's gotten to my startup folder and I've tried everything to delete it.
Any suggestions?
Thanks.
Click to expand...
Click to collapse
From the 1st post
"EDIT: Forgot one neat feature... If you launch it while it is already running, it will close the running instance."
Take care it isn't active. Then uninstall it!
tried that also, total commander says its unable to delete the file.
so i just had it inactive and moved it out of the startup folder.
vicn77 said:
tried that also, total commander says its unable to delete the file.
so i just had it inactive and moved it out of the startup folder.
Click to expand...
Click to collapse
Change the attribute of the file!
WOWIEE!
Do i really need to install the sources too ?
And would it be nice to have a little tool, to set up the height and stuff you really need..
ThnX, looks pretty neat btw. Cool app man.
mazterjay said:
Do i really need to install the sources too ?
And would it be nice to have a little tool, to set up the height and stuff you really need..
Click to expand...
Click to collapse
Dogfoods tweak can set the height of the statusbar, and more.
Does not reload on Power off
I am running WM6 on an AT&T Tilt. The program runs fine (and I find it extremely helpful...well done). For some reason, when I turn the phone off and restart it, the Battery Bar does not reload. I have to restart it every time. Any thoughts?
Thanks in advance, both for the help and for creating a wonderful little program.
DJ
put the program inside your windows/start folder...
and it will start each time...
My phone's camera no longer works. On 2.3.4, the screen goes black when trying to open the camera, and the backlight stays on (as well as key lights). It will wait however long you're willing to wait, and won't do anything, you eventually have to pull the battery. If you wait long enough, adb disconnects and the computer acts like you unplugged the USB cable. Thinking it was a bad load (bought it like this), I downgraded to 2.2.1 and have the same problem.
I ran a logcat and output is below. I was curious if any others have seen this, and if there's any chance of it working ever again. I thought about replacing the camera itself. Was gonna call HTC for warranty work, but don't think I can, since the VOID sticker on the screw is gone and the moisture indicator is gone. I got the phone cheap enough, so I'm not really sweating it, but it would be nice to get it to work.
Code:
D/DragLayer( 1431): touch event action ACTION_DOWN
W/dalvikvm( 1431): disableGcForExternalAlloc: true
D/DragLayer( 1431): touch event action ACTION_UP
W/dalvikvm( 1431): disableGcForExternalAlloc: false
D/AppWidgetHostView( 1431): updateAppWidget mInfo = AppWidgetProviderInfo(provider=ComponentInfo{com.google.android.goog
lequicksearchbox/com.google.android.googlequicksearchbox.SearchWidgetProvider})
D/AppWidgetHostView( 1431): updateAppWidget mInfo = AppWidgetProviderInfo(provider=ComponentInfo{com.android.settings/co
m.android.settings.widget.SettingsAppWidgetProvider})
D/DragLayer( 1431): touch event action ACTION_DOWN
D/DragLayer( 1431): touch event action ACTION_UP
I/ActivityManager( 1301): Starting activity: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCH
ER] flg=0x10200000 cmp=com.android.camera/.CamcorderEntry bnds=[360,586][480,704] }
I/ActivityManager( 1301): Start proc com.android.camera for activity com.android.camera/.CamcorderEntry: pid=1945 uid=10
004 gids={1006, 3003, 1015}
W/HTCCamera( 1945): onCreate()
W/IntentManager( 1945): from class: com.android.camera.CamcorderEntry
W/IntentManager( 1945): mRequestMode = RequestMode.Main, from Camcorder
W/IntentManager( 1945): request name = null - RequestName.Unknown_General
W/IntentManager( 1945): extras == null
D/Sensors ( 1945): hardware get sensor list sensors__get_sensors_list 5
D/Sensors ( 1945): hardware get sensor list sensors__get_sensors_list 5
D/Sensors ( 1945): hardware get sensor list sensors__get_sensors_list 5
D/Sensors ( 1945): hardware get sensor list sensors__get_sensors_list 5
D/Sensors ( 1945): hardware get sensor list sensors__get_sensors_list 5
W/HTCCamera( 1945): onStart() - start
W/HTCCamera( 1945): onStart() - end
W/HTCCamera( 1945): onResume() - start
W/HTCCamera( 1945): !!!! @@@@ broadcastStopVoiceRecording() - start
W/HTCCamera( 1945): !!!! @@@@ broadcastStopVoiceRecording() - end
D/Sensors ( 1301): open_akm, fd=127
W/HTCCamera( 1945): OnResume - reset UI, immediately set mMainLayout invisible
W/########## HtcSettingsReceiver ##########( 1945): 2011-10-02 05:39:56 732(ms) onReceive-start
W/HTCCamera( 1945): Block Capture UI - onResume(), and unblock after start preview
W/HTCCamera( 1945): onResume() - mFocusingState = NO_FOCUSING
W/HTCCamera( 1945): keyguard is not shown !!!!!
W/HTCCamera( 1945): OnResume - set mWaitResetSettings to true
W/HTCCamera( 1945): onResume() - end
D/AK8975 ( 1219): Compass Start
W/HTCCamera( 1945): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated [email protected]
6f107f0
W/HTCCamera( 1945): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceCreated $$$$$$$$$$$$$$$$$$$$$$$$$$$ start preview
W/CameraThread( 1945): CameraHandler Message - START_PREVIEW start mode1
E/CameraThread( 1945): open the Camera in start_camera_preview
W/CameraSwitch( 1945): open main camera
W/CameraSwitch( 1945): no file - can't switch camera
W/HTCCamera( 1945): $$$$$$$$$$$$$$$$$$$$$$$$$$$$$ surfaceChanged $$$$$$$$$$$$$$$$$$$$$$$$$$$ w=480 h=800
D/CameraService( 1214): CameraService::connect E (pid 1945, client 0x1b560)
D/CameraService( 1214): Client::Client E (pid 1945)
D/QualcommCameraHardware( 1214): createInstance: E
D/QualcommCameraHardware( 1214): Storing the current target type as 2
D/QualcommCameraHardware( 1214): constructor EX
D/QualcommCameraHardware( 1214): startCamera E
D/QualcommCameraHardware( 1214): loading liboemcamera at 0xb001140c
I/QualcommCameraHardware( 1214): Set main cam and main cam only
I/ ( 1214): set sensor selection :0
I/QualcommCameraHardware( 1214): Open Device node : /dev/msm_camera/control0
I/ ( 1214): Open Device node : /dev/msm_camera/config0
I/ ( 1214): [AWB Calibration] from kernel: fuse_id: 0x0, 0x0, 0x4, 0x88af5
I/mm-camera-s5k4e1gx_u( 1214): Inside s5k4e1gx_process_start
I/ ( 1214): [LSC Calibration]Sensor_set_mesh
I/ ( 1214): [LSC Calibration] : call awb_get_fuseid
I/ ( 1214): Read /data/lsc_cal fail
I/ ( 1214): Read from file OK: /data/lsc_cal or /sys/android_camera_awb_cal/awb_cal
I/ ( 1214): [LSC Calibration]: lsc_checksum=eb99b0a1, lsc_verify=c1b
I/ ( 1214): [LSC Calibration]: fuseid_1=0,fuseid_2=0,fuseid_3=4,fuseid_4=88af5, sfuse.fuse_id_word1=0,sfuse.fuse_
id_word2=0,sfuse.fuse_id_word3=4,sfuse.fuse_id_word4=88af5
I/ ( 1214): LSC_Calibration: addr=a7755284, & addr=a7755284
I/ ( 1214): LSC_Calibration: addr=a7756058, & addr=a7756058
I/ ( 1214): LSC_Calibration: addr=a7756e2c, & addr=a7756e2c
I/ ( 1214): LSC_Calibration: addr=a7757c00, & addr=a7757c00
I/ ( 1214): LSC_Calibration: addr=a77589d4, & addr=a77589d4
I/mm-camera-s5k4e1gx_u( 1214): s5k4e1gx_process_start: [LSC Calibration] LSC is valid and set NEW mesh value
I/ ( 1214): [AWB Calibration] fuse_id : 0x0, 0x0, 0x4, 0x88af5
I/ ( 1214): [AWB Calibration] fail to read /data/awb_cal, try another file
I/ ( 1214): [AWB Calibration] read from file OK: /sys/android_camera_awb_cal/awb_cal
I/ ( 1214): [AWB Calibration] nandflash data: 0xc1b, 0x2e5, 0x281, 0x0, 0x0, 0x4, 0x88af5, 0x4c40db4e
I/ ( 1214): [AWB Calibration] check sum=4c40db4e, OK
I/ ( 1214): [AWB Calibration] valid bit and fuseID pass, use new white points
I/ ( 1214): [AWB Calibration] use light version: v3
I/mm-camera-s5k4e1gx_u( 1214): s5k4e1gx_process_start: Glacier: preview_init_whitebalance = CAMERA_WB_FLUORESCENT
I/mm-camera-s5k4e1gx_u( 1214): s5k4e1gx_register: table = 0xa778ce50
I/mm-camera-s5k4e1gx_u( 1214): get snapshot size pointer:0xa7722255
D/ ( 1214): sensor_led_ctrl_init: camfd = 25
I/QualcommCameraHardware( 1214): startCamera: camsensor name s5k4e1gx, flash 1
I/ ( 1214): sctrl:0xa778c2b8
I/ ( 1214): sctrl->fn_table:0xa7722d21
I/ ( 1214): sctrl->fn_table.get_snapshot_sizes:0xa7722255
I/mm-camera-s5k4e1gx_u( 1214): get table
D/QualcommCameraHardware( 1214): startCamera X
D/QualcommCameraHardware( 1214): loading libposteffect at 0xb001186c
D/QualcommCameraHardware( 1214): static android::sp<android::CameraHardwareInterface> android::QualcommCameraHardware::c
reateInstance(): start GPU manager (0).
D/QualcommCameraHardware( 1214): initDefaultParameters E
D/QualcommCameraHardware( 1214): product 6
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 1, length 32
E/QualcommCameraHardware( 1214): native_access_parm: error (No such file or directory): fd 23, type 1, length 32, status
0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 68, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 69, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 70, length 4
D/QualcommCameraHardware( 1214): preview width=1304 preview height=980
D/QualcommCameraHardware( 1214): panel width=800 panel height=480
D/QualcommCameraHardware( 1214): max_zoom=21 zoom_available=21.146158
D/QualcommCameraHardware( 1214): requested preview size 640 x 480
D/QualcommCameraHardware( 1214): requested picture size 2592 x 1952
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 21, length 4
D/GPUPostEffect( 1214): SIMON: void* mlabs::GPUPostEffect::threadMain() E.
I/GEManager( 1214): [GEManager] enter
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 15, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 14, length 4
D/QualcommCameraHardware( 1214): setFlash 0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 49, length 4
D/ ( 1214): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
D/ ( 1214): set_led_mode = 0, led_ctrl_p->led_mode = 0
I/QualcommCameraHardware( 1214): Set zoom=0 20
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 2, length 4
I/QualcommCameraHardware( 1214): Setting Contrast is 5
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 6, length 4
I/QualcommCameraHardware( 1214): Setting Brightness is 3
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 7, length 4
I/QualcommCameraHardware( 1214): Setting Saturation is 5
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 11, length 4
I/QualcommCameraHardware( 1214): Setting Sharpness is 10
D/libEGL ( 1214): loaded /system/lib/egl/libGLES_android.so
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 9, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 12, length 4
I/QualcommCameraHardware( 1214): xxx set CAF :0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 65, length 4
D/QualcommCameraHardware( 1214): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 1214): Before Setting coordinate x:320 y:240
I/QualcommCameraHardware( 1214): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 64, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 73, length 18
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 26, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 62, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 8, length 4
D/QualcommCameraHardware( 1214): virtual android::status_t android::QualcommCameraHardware::setParameters(const android:
:CameraParameters&), final_rc=0
D/ ( 1214): [GECameraParameters::getGPUEffect] enter
D/ ( 1214): [GECameraParameters::getGPUEffect] leave. no key GPU-effect
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param0
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param1
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param3
D/libEGL ( 1214): loaded /system/lib/egl/libEGL_adreno200.so
D/libEGL ( 1214): loaded /system/lib/egl/libGLESv1_CM_adreno200.so
D/libEGL ( 1214): loaded /system/lib/egl/libGLESv2_adreno200.so
D/GEManager( 1214): [GEManager] m_eglDisplay successfully
D/GEManager( 1214): [GEManager] eglInitialize successfully
D/GEManager( 1214): [GEManager] eglChooseConfig successfully
D/GEManager( 1214): [GEManager] eglCreateContext successfully
D/GEManager( 1214): [GEManager] eglCreatePbufferSurface successfully
D/GEManager( 1214): [GEManager] eglMakeCurrent successfully
I/GEManager( 1214): [GEManager] leave
I/GPUPostEffect( 1214): SIMON: int mlabs::GPUPostEffect::setParameters(mlabs::GPUPostEffect::GPUTask*): old effect = 0,
new effect = -1.
D/GPUPostEffect( 1214): SIMON: setParameters: isGEInit == false: no call to ChooseEffect.
D/QualcommCameraHardware( 1214): initDefaultParameters X
D/QualcommCameraHardware( 1214): createInstance: X created hardware=0x1b670
W/aacFileRecognizer( 1214): Unexpected: frameworks/base/media/libmediaplayerservice/aacFileRecognizer/aacFileRecognizer.
cpp, 169
D/MediaPlayerService( 1214): player type = VORBIS_PLAYER
W/aacFileRecognizer( 1214): Unexpected: frameworks/base/media/libmediaplayerservice/aacFileRecognizer/aacFileRecognizer.
cpp, 169
D/MediaPlayerService( 1214): player type = VORBIS_PLAYER
D/CameraService( 1214): Client::Client X (pid 1945)
D/CameraService( 1214): CameraService::connect X
W/CameraThread( 1945): Open Camera - set mIsLastCameraClosed to false
W/HTCCameraAdvanceSetting( 1945): not reset to default, but no preference
W/CameraThread( 1945): Disable touch aec !!!
W/CameraThread( 1945): Start preview - disable continue AF !!!
W/CameraThread( 1945): reset flashlight mode !!!
D/QualcommCameraHardware( 1214): requested preview size 640 x 480
D/QualcommCameraHardware( 1214): requested picture size 2592 x 1952
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 21, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 15, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 14, length 4
D/QualcommCameraHardware( 1214): setFlash 0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 49, length 4
D/ ( 1214): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
D/ ( 1214): set_led_mode = 0, led_ctrl_p->led_mode = 0
I/QualcommCameraHardware( 1214): Set zoom=0 20
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 2, length 4
I/QualcommCameraHardware( 1214): Setting Contrast is 5
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 6, length 4
I/QualcommCameraHardware( 1214): Setting Brightness is 3
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 7, length 4
I/QualcommCameraHardware( 1214): Setting Saturation is 5
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 11, length 4
I/QualcommCameraHardware( 1214): Setting Sharpness is 10
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 9, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 12, length 4
I/QualcommCameraHardware( 1214): xxx set CAF :0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 65, length 4
D/QualcommCameraHardware( 1214): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 1214): Before Setting coordinate x:320 y:240
I/QualcommCameraHardware( 1214): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 64, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 73, length 18
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 26, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 62, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 8, length 4
D/QualcommCameraHardware( 1214): virtual android::status_t android::QualcommCameraHardware::setParameters(const android:
:CameraParameters&), final_rc=0
D/ ( 1214): [GECameraParameters::getGPUEffect] enter
D/ ( 1214): [GECameraParameters::getGPUEffect] leave. no key GPU-effect
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param0
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param1
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param3
I/GPUPostEffect( 1214): SIMON: int mlabs::GPUPostEffect::setParameters(mlabs::GPUPostEffect::GPUTask*): old effect = -1,
new effect = -1.
D/GPUPostEffect( 1214): SIMON: setParameters: isGEInit == false: no call to ChooseEffect.
W/HTCCameraAdvanceSetting( 1945): for the key pref_capture_resolution_video_main is null
W/HTCCamera( 1945): reset_layout_from_surface - width: 480, height: 800
W/HTCCamera( 1945): Reset layout end, set mMainLayout visible
D/QualcommCameraHardware( 1214): requested preview size 800 x 480
D/QualcommCameraHardware( 1214): requested picture size 2592 x 1952
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 21, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 15, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 14, length 4
D/QualcommCameraHardware( 1214): setFlash 0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 49, length 4
D/ ( 1214): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
D/ ( 1214): set_led_mode = 0, led_ctrl_p->led_mode = 0
I/QualcommCameraHardware( 1214): Set zoom=0 20
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 2, length 4
I/QualcommCameraHardware( 1214): Setting Contrast is 5
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 6, length 4
I/QualcommCameraHardware( 1214): Setting Brightness is 3
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 7, length 4
I/QualcommCameraHardware( 1214): Setting Saturation is 5
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 11, length 4
I/QualcommCameraHardware( 1214): Setting Sharpness is 10
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 9, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 12, length 4
I/QualcommCameraHardware( 1214): xxx set CAF :0
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 65, length 4
D/QualcommCameraHardware( 1214): not defined touch-focus yet, or AP without touch-focus function
I/QualcommCameraHardware( 1214): Before Setting coordinate x:400 y:240
I/QualcommCameraHardware( 1214): Setting coordinate x:2 y:2
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 64, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 73, length 18
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 26, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 62, length 4
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 8, length 4
D/QualcommCameraHardware( 1214): virtual android::status_t android::QualcommCameraHardware::setParameters(const android:
:CameraParameters&), final_rc=0
D/ ( 1214): [GECameraParameters::getGPUEffect] enter
D/ ( 1214): [GECameraParameters::getGPUEffect] leave. no key GPU-effect
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param0
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param1
D/ ( 1214): [GECameraParameters::getGPUEffectParam] leave. no key GE-param3
I/GPUPostEffect( 1214): SIMON: int mlabs::GPUPostEffect::setParameters(mlabs::GPUPostEffect::GPUTask*): old effect = -1,
new effect = -1.
D/GPUPostEffect( 1214): SIMON: setParameters: isGEInit == false: no call to ChooseEffect.
D/CameraService( 1214): sendCommand (pid 1945)
D/CameraService( 1214): setPreviewDisplay(0x2c320) (pid 1945)
I/CameraService( 1214): mUseOverlay:1
D/CameraService( 1214): setOverlay
I/CameraService( 1214): setOverlay use previe size: w 800 h 480
D/CameraService( 1214): w 800 h 480 mOverlayW 0 mOverlayH 0
E/QualcommCameraHardware( 1214): Overlay object NULL. returning
D/CameraService( 1214): startCameraMode(0) (pid 1945)
D/CameraService( 1214): startPreviewMode (pid 1945)
D/CameraService( 1214): setOverlay
I/CameraService( 1214): setOverlay use previe size: w 800 h 480
D/QualcommCameraHardware( 1214): startPreview E
D/QualcommCameraHardware( 1214): initPreview E: preview size=800x480
D/QualcommCameraHardware( 1214): initPreview E: preview size=800x480 videosize = 800 x 480
D/QualcommCameraHardware( 1214): initPreview : preview size=800x480 videosize = 800 x 480
D/QualcommCameraHardware( 1214): initPreview: mFrameThreadWaitLock.lock()
D/QualcommCameraHardware( 1214): initPreview: mFrameThreadWaitLock.unlock()
I/QualcommCameraHardware( 1214): pmem pool /dev/pmem_adsp ioctl(fd = 48, PMEM_GET_SIZE) is 2310144
D/QualcommCameraHardware( 1214): mBufferSize=576000, mAlignedBufferSize=577536
E/QualcommCameraHardware( 1214): num_buffers = 4
I/QualcommCameraHardware( 1214): register_buf: camfd = 46, reg = 0 buffer = 0x414f7000
I/QualcommCameraHardware( 1214): register_buf: camfd = 46, reg = 0 buffer = 0x41584000
I/QualcommCameraHardware( 1214): register_buf: camfd = 46, reg = 0 buffer = 0x41611000
I/QualcommCameraHardware( 1214): register_buf: camfd = 46, reg = 0 buffer = 0x4169e000
D/QualcommCameraHardware( 1214): initREcord E
I/QualcommCameraHardware( 1214): pmem pool /dev/pmem_adsp ioctl(fd = 51, PMEM_GET_SIZE) is 4620288
D/QualcommCameraHardware( 1214): mBufferSize=576000, mAlignedBufferSize=577536
E/QualcommCameraHardware( 1214): num_buffers = 8
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x4172b000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x417b8000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x41845000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x418d2000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x4195f000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x419ec000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x41a79000
I/QualcommCameraHardware( 1214): register_buf: camfd = 49, reg = 0 buffer = 0x41b06000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1098035200 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1098612736 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1099190272 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1099767808 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1100345344 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1100922880 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1101500416 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initRecord : record heap , video buffers buffer=1102077952 fd=51 y_off=0 cbcr_off=384
000
D/QualcommCameraHardware( 1214): initREcord X
D/QualcommCameraHardware( 1214): native_access_parm: fd 23, type 1, length 32
D/QualcommCameraHardware( 1214): initpreview before cam_frame thread carete , video frame buffer=1099767808 fd=51 y_off
=0 cbcr_off=384000
D/QualcommCameraHardware( 1214): initPreview X: 1
D/GPUPostEffect( 1214): SIMON: virtual int mlabs::GPUPostEffect::startPreview(int, int) E.
D/GPUPostEffect( 1214): SIMON: int mlabs::GPUPostEffect::startPreview(mlabs::GPUPostEffect::GPUTask*) E.
D/GPUPostEffect( 1214): SIMON: int mlabs::GPUPostEffect::startPreview(mlabs::GPUPostEffect::GPUTask*): preview 800 x 480
started ok.
D/GPUPostEffect( 1214): SIMON: int mlabs::GPUPostEffect::startPreview(mlabs::GPUPostEffect::GPUTask*) X.
D/GPUPostEffect( 1214): SIMON: virtual int mlabs::GPUPostEffect::startPreview(int, int) X.
D/QualcommCameraHardware( 1214): android::status_t android::QualcommCameraHardware::startPreviewInternal(): startPreview
800 x 480 (0)
E/ ( 1214): config_proc_CAMERA_START_VIDEO:Line:1307 This ioctl can fail if pp_mask is zero.
E/ ( 1214): config_proc_CAMERA_START_VIDEO:Line:1309 ioctl MSM_CAM_IOCTL_PICT_PP_DONE is failed...
D/QualcommCameraHardware( 1214): frame_thread E
I/CAMFRAME:( 1214): Open Device node : /dev/msm_camera/frame0
Just realised I put this in general instead of Q&A, can a mod move it, preez?
I ran a logcat on my other mt4g with working camera and see almost the same thing, but it continues beyond the last 4 of the dead camera phone:
Code:
E/ ( 1214): config_proc_CAMERA_START_VIDEO:Line:1307 This ioctl can fail if pp_mask is zero.
E/ ( 1214): config_proc_CAMERA_START_VIDEO:Line:1309 ioctl MSM_CAM_IOCTL_PICT_PP_DONE is failed...
D/QualcommCameraHardware( 1214): frame_thread E
I/CAMFRAME:( 1214): Open Device node : /dev/msm_camera/frame0
Here's the good logcat:
Code:
D/CameraService( 2347): CameraService::loadSound ref=0
V/MediaPlayer( 2347): constructor
V/MediaPlayer( 2347): setDataSource(/system/media/audio/ui/camera_click.ogg)
V/MediaPlayerService( 2347): Client(3) constructor
V/MediaPlayerService( 2347): Create new client(3) from pid 2347, url=/system/media/audio/ui/camera_click.ogg, connId=3, audioSessionId=4
V/MediaPlayerService( 2347): setDataSource(/system/media/audio/ui/camera_click.ogg)
V/MediaPlayerService( 2347): getPlayerTypeFromMAP(/system/media/audio/ui/camera_click.ogg): PLAYERS_MAP[26].playertype (UNKNOWN player_type code)0
V/MediaPlayerService( 2347): player type = 4
V/MediaPlayerService( 2347): create StagefrightPlayer
D/AwesomePlayer( 2347): [U5B] AwesomePlayer (331)
D/AwesomePlayer( 2347): [U5B] reset (508)
D/AwesomePlayer( 2347): [U5B] reset_l (516)
D/AwesomePlayer( 2347): [U5B] reset_l (535)
D/AwesomePlayer( 2347): [U5B] reset_l (621)
V/AudioSink( 2347): AudioOutput(4)
V/MediaPlayerService( 2347): setDataSource
I/StagefrightPlayer( 2347): setDataSource('/system/media/audio/ui/camera_click.ogg')
D/AwesomePlayer( 2347): [U5B] reset_l (516)
D/AwesomePlayer( 2347): [U5B] reset_l (535)
D/AwesomePlayer( 2347): [U5B] reset_l (621)
V/MediaPlayer( 2347): MediaPlayer::setAudioStreamType
V/MediaPlayer( 2347): prepare
V/MediaPlayerService( 2347): [3] setAudioStreamType(7)
V/MediaPlayerService( 2347): [3] prepareAsync
D/AwesomePlayer( 2347): [U5B] setDataSource_l (444)
I/OMXCodec( 2347): [Stagefright] use software codec=VorbisDecoder
V/MediaPlayerService( 2347): [3] notify (0x6cfa8, 5, 0, 0)
V/MediaPlayer( 2347): message received msg=5, ext1=0, ext2=0
V/MediaPlayer( 2347): New video size 0 x 0
V/MediaPlayerService( 2347): [3] notify (0x6cfa8, 1, 0, 0)
V/MediaPlayer( 2347): message received msg=1, ext1=0, ext2=0
V/MediaPlayer( 2347): prepared
V/MediaPlayer( 2347): signal application thread
V/MediaPlayer( 2347): prepare complete - status=0
V/MediaPlayer( 2347): constructor
V/MediaPlayer( 2347): setDataSource(/system/media/audio/ui/VideoRecord.ogg)
V/MediaPlayerService( 2347): Client(4) constructor
V/MediaPlayerService( 2347): Create new client(4) from pid 2347, url=/system/media/audio/ui/VideoRecord.ogg, connId=4, audioSessionId=5
V/MediaPlayerService( 2347): setDataSource(/system/media/audio/ui/VideoRecord.ogg)
V/MediaPlayerService( 2347): getPlayerTypeFromMAP(/system/media/audio/ui/VideoRecord.ogg): PLAYERS_MAP[26].playertype (UNKNOWN player_type code)0
V/MediaPlayerService( 2347): player type = 4
V/MediaPlayerService( 2347): create StagefrightPlayer
D/AwesomePlayer( 2347): [U5B] AwesomePlayer (331)
D/AwesomePlayer( 2347): [U5B] reset (508)
D/AwesomePlayer( 2347): [U5B] reset_l (516)
D/AwesomePlayer( 2347): [U5B] reset_l (535)
D/AwesomePlayer( 2347): [U5B] reset_l (621)
V/AudioSink( 2347): AudioOutput(5)
V/MediaPlayerService( 2347): setDataSource
I/StagefrightPlayer( 2347): setDataSource('/system/media/audio/ui/VideoRecord.ogg')
D/AwesomePlayer( 2347): [U5B] reset_l (516)
D/AwesomePlayer( 2347): [U5B] reset_l (535)
D/AwesomePlayer( 2347): [U5B] reset_l (621)
V/MediaPlayer( 2347): MediaPlayer::setAudioStreamType
V/MediaPlayer( 2347): prepare
V/MediaPlayerService( 2347): [4] setAudioStreamType(7)
V/MediaPlayerService( 2347): [4] prepareAsync
D/AwesomePlayer( 2347): [U5B] setDataSource_l (444)
I/OMXCodec( 2347): [Stagefright] use software codec=VorbisDecoder
V/MediaPlayerService( 2347): [4] notify (0x817b8, 5, 0, 0)
V/MediaPlayer( 2347): message received msg=5, ext1=0, ext2=0
V/MediaPlayer( 2347): New video size 0 x 0
V/MediaPlayerService( 2347): [4] notify (0x817b8, 1, 0, 0)
V/MediaPlayer( 2347): message received msg=1, ext1=0, ext2=0
V/MediaPlayer( 2347): prepared
V/MediaPlayer( 2347): signal application thread
V/MediaPlayer( 2347): prepare complete - status=0
D/CameraService( 2347): Client::Client X (pid 2516)
D/CameraService( 2347): CameraService::connect X
W/CameraThread( 2516): Open Camera - set mIsLastCameraClosed to false
D/CameraService( 2347): getParameters (pid 2516) (antibanding=auto;antibanding-values=off,50hz,60hz,auto;brightness=3;brightness-def=3;brightness-max=6;brightness-min=0;c
am-mode=0;contrast=5;contrast-def=5;contrast-max=10;contrast-min=0;effect=none;effect-values=none,mono,negative,solarize,sepia,posterize,aqua;exposure-compensation=0;expo
sure-compensation-step=0.5;flash-mode=off;flash-mode-values=off,auto,on,torch;focal-length=3.53;focus-distances=0.78,1.57,Infinity;focus-mode=auto;focus-mode-values=auto,
infinity;front-camera-mode=mirror;front-camera-mode-values=mirror,reverse,portrait-reverse;horizontal-view-angle=54.8;iso=auto;iso-values=auto,deblur,100,200,400,800,1250
;jpeg-quality=100;jpeg-thumbnail-height=480;jpeg-thumbnail-quality=75;jpeg-thumbnail-size-values=640x480,512x384,384x288,0x0,640x480;jpeg-thumbnail-width=640;max-exposure
-compensation=4;max-zoom=5;meter-mode=meter-center;meter-mode-values=meter-average,meter-center,meter-spot;min-exposure-compensation=-4;picture-format=jpeg;picture-format
-values=jpeg;picture-size=2
W/HTCCameraAdvanceSetting( 2516): version: 20100727, not need to update
W/HTCCameraAdvanceSetting( 2516): not reset to default and preference existed
W/CameraThread( 2516): Disable touch aec !!!
W/CameraThread( 2516): Start preview - disable continue AF !!!
W/CameraThread( 2516): reset flashlight mode !!!
D/CameraService( 2347): setParameters (pid 2516) (sharpness-max=30;zoom=0;taking-picture-zoom=0;zoom-supported=true;sharpness-min=0;sharpness=10;contrast=5;whitebalance=a
uto;jpeg-quality=100;preview-format-values=yuv420sp;jpeg-thumbnail-quality=75;preview-format=yuv420sp;preview-size=640x480;focal-length=3.53;iso=auto;meter-mode=meter-cen
ter;front-camera-mode=mirror;flash-mode-values=off,auto,on,torch;preview-frame-rate-values=15;preview-frame-rate=15;focus-mode-values=auto,infinity;jpeg-thumbnail-width=6
40;preview-fps-range-values=(9000,29453);jpeg-thumbnail-size-values=640x480,512x384,384x288,0x0,640x480;zoom-ratios=100,114,131,151,174,200;saturation-def=5;preview-size-
values=1280x720,960x720,800x480,720x480,640x480,640x384,576x432,480x320;smart-contrast=off;picture-size-values=2592x1952,2592x1456,2592x1520,2592x1936,2592x1728,2592x1552
,2048x1536,2048x1360,2048x1216,2048x1152,2048x1200,1600x1200,1584x1056,1280x960,1280x848,1280x768,1280x720,1280x752,1024x768,640x480,640x416,640x384,640x368,512x384,400x4
00,272x272;contrast-min=0;p
I/CameraService( 2347): Unknow capture mode!!
D/QualcommCameraHardware( 2347): requested preview size 640 x 480
D/QualcommCameraHardware( 2347): requested picture size 2592 x 1952
D/mm-camera( 2347): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
D/mm-camera( 2347): set_led_mode = 0, led_ctrl_p->led_mode = 0
D/QualcommCameraHardware( 2347): not defined touch-focus yet, or AP without touch-focus function
D/QualcommCameraHardware( 2347): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/ ( 2347): [GECameraParameters::getGPUEffect] enter
D/ ( 2347): [GECameraParameters::getGPUEffect] leave. no key GPU-effect
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param0
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param1
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param3
I/GPUPostEffect( 2347): SIMON: int mlabs::GPUPostEffect::setParameters(mlabs::GPUPostEffect::GPUTask*): old effect = -1, new effect = -1.
D/GPUPostEffect( 2347): SIMON: setParameters: isGEInit == false: no call to ChooseEffect.
W/HTCCameraAdvanceSetting( 2516): for the key pref_capture_resolution_photo_main is null
W/HTCCamera( 2516): reset_layout_from_surface - width: 480, height: 853
D/CameraService( 2347): setParameters (pid 2516) (sharpness-max=30;zoom=0;taking-picture-zoom=0;zoom-supported=true;sharpness-min=0;sharpness=10;contrast=5;whitebalance=a
uto;jpeg-quality=100;preview-format-values=yuv420sp;jpeg-thumbnail-quality=75;preview-format=yuv420sp;preview-size=1280x720;focal-length=3.53;iso=auto;meter-mode=meter-ce
nter;front-camera-mode=mirror;flash-mode-values=off,auto,on,torch;preview-frame-rate-values=15;preview-frame-rate=15;focus-mode-values=auto,infinity;jpeg-thumbnail-width=
640;preview-fps-range-values=(9000,29453);jpeg-thumbnail-size-values=640x480,512x384,384x288,0x0,640x480;zoom-ratios=100,114,131,151,174,200;saturation-def=5;preview-size
-values=1280x720,960x720,800x480,720x480,640x480,640x384,576x432,480x320;smart-contrast=off;picture-size-values=2592x1952,2592x1456,2592x1520,2592x1936,2592x1728,2592x155
2,2048x1536,2048x1360,2048x1216,2048x1152,2048x1200,1600x1200,1584x1056,1280x960,1280x848,1280x768,1280x720,1280x752,1024x768,640x480,640x416,640x384,640x368,512x384,400x
400,272x272;contrast-min=0;
I/CameraService( 2347): Unknow capture mode!!
D/QualcommCameraHardware( 2347): requested preview size 1280 x 720
D/QualcommCameraHardware( 2347): requested picture size 2592 x 1456
D/mm-camera( 2347): In config_proc_CAMERA_SET_PARM_LED_MODE: 0
D/mm-camera( 2347): set_led_mode = 0, led_ctrl_p->led_mode = 0
D/QualcommCameraHardware( 2347): not defined touch-focus yet, or AP without touch-focus function
D/QualcommCameraHardware( 2347): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/ ( 2347): [GECameraParameters::getGPUEffect] enter
D/ ( 2347): [GECameraParameters::getGPUEffect] leave. no key GPU-effect
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param0
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param1
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param3
I/GPUPostEffect( 2347): SIMON: int mlabs::GPUPostEffect::setParameters(mlabs::GPUPostEffect::GPUTask*): old effect = -1, new effect = -1.
D/GPUPostEffect( 2347): SIMON: setParameters: isGEInit == false: no call to ChooseEffect.
D/CameraService( 2347): sendCommand (pid 2516)
D/CameraService( 2347): setPreviewDisplay(0x96bf8) (pid 2516)
W/QualcommCameraHardware( 2347): Overlay object NULL. returning
D/CameraService( 2347): recreate createOverlay
D/Overlay ( 1340): createOverlay w=1280 h=720 z=0 format 0x21
D/OverlayLIB( 1340): ovmode 2DPANEL
D/Overlay ( 1340): No S3D displays found, treat content as 2D
D/Overlay ( 1340): createOverlay w=1280 h=720 z=0 format 3D 0x0 ovmode 0 fbnum 0
D/OverlayLIB( 1340): startcontrolchannel: w:1280 h:720 fbnum:0 format 33 colorforamt 33 format3D:0x0 zorder: 1 norot no
D/OverlayLIB( 1340): setoverlayInfo(770) w 1280 h 720 format 2 flags 0x800000 zorder 1
D/OverlayLIB( 1340): setparameter: Transform: curr value: 0 new val:4 channel 0
D/Overlay ( 1340): setPostion: x= 0, y=0, w= 480, h = 800
E/Overlay ( 1340): connect to socket failed
D/CameraService( 2347): OVERLAY CREATED....
D/Overlay ( 2347): In overlay_data_initialize: format3D = 0x0
D/OverlayLIB( 2347): In OVLib: startDatachannel: fbnum = 0 size = 1382400
D/OverlayLIB( 2347): datachannel:openDevices: mPmemFD:0x2f mPmemAddr:0x0x40ee4000
D/CameraService( 2347): startPreview (pid 2516)
D/CameraService( 2347): startCameraMode(0)
D/CameraService( 2347): startPreviewMode
D/QualcommCameraHardware( 2347): startPreview E
D/QualcommCameraHardware( 2347): initPreview E: preview size=1280x720
D/QualcommCameraHardware( 2347): initPreview E: preview size=1280x720 videosize = 1280 x 720
D/QualcommCameraHardware( 2347): initPreview : preview size=1280x720 videosize = 1280 x 720
D/QualcommCameraHardware( 2347): initPreview: mFrameThreadWaitLock.lock()
D/QualcommCameraHardware( 2347): initPreview: mFrameThreadWaitLock.unlock()
I/QualcommCameraHardware( 2347): pmem pool /dev/pmem_adsp ioctl(fd = 50, PMEM_GET_SIZE) is 5537792
D/QualcommCameraHardware( 2347): mBufferSize=1382400, mAlignedBufferSize=1384448
D/QualcommCameraHardware( 2347): num_buffers = 4
I/QualcommCameraHardware( 2347): register_buf: camfd = 48, reg = 0 buffer = 0x41287000
I/QualcommCameraHardware( 2347): register_buf: camfd = 48, reg = 0 buffer = 0x413d9000
I/QualcommCameraHardware( 2347): register_buf: camfd = 48, reg = 0 buffer = 0x4152b000
I/QualcommCameraHardware( 2347): register_buf: camfd = 48, reg = 0 buffer = 0x4167d000
I/QualcommCameraHardware( 2347): pmem pool /dev/pmem_adsp ioctl(fd = 53, PMEM_GET_SIZE) is 12460032
D/QualcommCameraHardware( 2347): mBufferSize=1382400, mAlignedBufferSize=1384448
D/QualcommCameraHardware( 2347): num_buffers = 9
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x417cf000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x41921000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x41a73000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x41bc5000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x41d17000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x41e69000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x41fbb000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x4210d000
I/QualcommCameraHardware( 2347): register_buf: camfd = 51, reg = 0 buffer = 0x4225f000
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1098706944 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1100091392 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1101475840 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1102860288 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1104244736 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1105629184 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1107013632 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1108398080 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initRecord : record heap , video buffers buffer=1109782528 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initREcord X
D/dalvikvm( 2516): GC_CONCURRENT freed 270K, 50% free 2864K/5639K, external 270K/518K, paused 2ms+7ms
W/HTCCamera( 2516): Reset layout end, set mMainLayout visible
I/[POST_RESELECT]( 1484): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-1,0,-1,0)
I/[POST_RESELECT]( 1484): [spanChange] (o, oldStart, newStart, oldEnd, newEnd)=([email protected],-1,0,-1,0)
D/QualcommCameraHardware( 2347): initpreview before cam_frame thread carete , video frame buffer=1102860288 fd=53 y_off=0 cbcr_off=921600
D/QualcommCameraHardware( 2347): initPreview X: 1
D/GPUPostEffect( 2347): SIMON: virtual int mlabs::GPUPostEffect::startPreview(int, int) E.
D/GPUPostEffect( 2347): SIMON: int mlabs::GPUPostEffect::startPreview(mlabs::GPUPostEffect::GPUTask*) E.
D/GPUPostEffect( 2347): SIMON: int mlabs::GPUPostEffect::startPreview(mlabs::GPUPostEffect::GPUTask*): preview 1280 x 720 started ok.
D/GPUPostEffect( 2347): SIMON: int mlabs::GPUPostEffect::startPreview(mlabs::GPUPostEffect::GPUTask*) X.
D/GPUPostEffect( 2347): SIMON: virtual int mlabs::GPUPostEffect::startPreview(int, int) X.
D/QualcommCameraHardware( 2347): android::status_t android::QualcommCameraHardware::startPreviewInternal(): startPreview 1280 x 720 (0)
W/mm-camera( 2347): config_proc_CAMERA_START_VIDEO:Line:1366 This ioctl can fail if pp_mask is zero.
W/mm-camera( 2347): config_proc_CAMERA_START_VIDEO:Line:1368 ioctl MSM_CAM_IOCTL_PICT_PP_DONE is failed...
D/QualcommCameraHardware( 2347): frame_thread E
I/CAMFRAME:( 2347): Open Device node : /dev/msm_camera/frame0
D/mm-camera( 2347): preview delay Dig_gain =1.009203, sparam->preview_fps 7540
D/mm-camera( 2347): start to set sce config.
D/mm-camera( 2347): sce at computeTRansforms m_p: 1.000000
D/mm-camera( 2347): sce m_p:1.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce m_p:1.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce m_p:1.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce m_p:1.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce m_p:1.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): sce rEnd_Cr:40.000000,rEnd_Cb:-30.000000,Start_Cr:40.000000,Start_Cb:-30.000000
D/mm-camera( 2347): set sce config done
W/Rosie ( 1484): mAddHtcWidgetByOtherActivity = false, mIsOpenSlideWhenLeaveLaunch = true
W/mm-camera( 2347): vfe_util_sendcmd: MSM_CAM_IOCTL_CONFIG_VFE failed...
W/mm-camera( 2347): vfe_util_sendcmd: MSM_CAM_IOCTL_CONFIG_VFE failed...
D/QualcommCameraHardware( 2347): startPreview X
D/QualcommCameraHardware( 2347): [ATS][camera_preview][complete]
W/DCFRuler( 2516): no phone storage - initStorageType(): 1
D/CameraService( 2347): setParameters (pid 2516) (sharpness-max=30;zoom=0;taking-picture-zoom=0;zoom-supported=true;sharpness-min=0;sharpness=10;contrast=5;whitebalance=a
uto;jpeg-quality=100;preview-iso=off;preview-format-values=yuv420sp;jpeg-thumbnail-quality=75;preview-format=yuv420sp;preview-size=1280x720;focal-length=3.53;iso=auto;met
er-mode=meter-center;front-camera-mode=mirror;flash-mode-values=off,auto,on,torch;preview-frame-rate-values=15;preview-frame-rate=15;focus-mode-values=auto,infinity;postp
roc-enable-imboost=on;jpeg-thumbnail-width=640;preview-fps-range-values=(9000,29453);jpeg-thumbnail-size-values=640x480,512x384,384x288,0x0,640x480;zoom-ratios=100,114,13
1,151,174,200;saturation-def=5;preview-size-values=1280x720,960x720,800x480,720x480,640x480,640x384,576x432,480x320;smart-contrast=off;picture-size-values=2592x1952,2592x
1456,2592x1520,2592x1936,2592x1728,2592x1552,2048x1536,2048x1360,2048x1216,2048x1152,2048x1200,1600x1200,1584x1056,1280x960,1280x848,1280x768,1280x720,1280x752,1024x768,6
40x480,640x416,640x384,640x
D/CameraService( 2347): PlaySound:0
I/CameraService( 2347): Unknow capture mode!!
D/QualcommCameraHardware( 2347): requested preview size 1280 x 720
D/QualcommCameraHardware( 2347): requested picture size 2592 x 1456
D/mm-camera( 2347): In config_proc_CAMERA_SET_PARM_LED_MODE: 1
D/mm-camera( 2347): set_led_mode = 1, led_ctrl_p->led_mode = 0
D/mm-camera( 2347): set_led_state: 0 -> 0
D/mm-camera( 2347): set_led_state: 0
D/mm-camera( 2347): set_led_state return 0
D/mm-camera( 2347): led_ctrl_p->led_mode = 1
D/QualcommCameraHardware( 2347): [ATS][adjust_saturation][complete]
D/QualcommCameraHardware( 2347): [ATS][adjust_sharpness][complete]
D/QualcommCameraHardware( 2347): not defined touch-focus yet, or AP without touch-focus function
D/QualcommCameraHardware( 2347): virtual android::status_t android::QualcommCameraHardware::setParameters(const android::CameraParameters&), final_rc=0
D/ ( 2347): [GECameraParameters::getGPUEffect] enter
D/ ( 2347): [GECameraParameters::getGPUEffect] leave. no key GPU-effect
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param0
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param1
D/ ( 2347): [GECameraParameters::getGPUEffectParam] leave. no key GE-param3
I/GPUPostEffect( 2347): SIMON: int mlabs::GPUPostEffect::setParameters(mlabs::GPUPostEffect::GPUTask*): old effect = -1, new effect = -1.
D/GPUPostEffect( 2347): SIMON: setParameters: isGEInit == false: no call to ChooseEffect.
W/CameraThread( 2516): start preview, mTakeFocus = false
W/HTCCamera( 2516): UIHandler Message - DO_CREATE_RESUME_AFTER_PREVIEW start
W/HTCCamera( 2516): initOnCreate_after_preview() - start
W/HTCCamera( 2516): initOnCreate_after_preview() - set mMainLayout visible
W/CameraThread( 2516): CameraHandler Message - START_PREVIEW end
D/Overlay ( 2347): Socket server thread start
D/dalvikvm( 2516): GC_EXTERNAL_ALLOC freed 61K, 49% free 2896K/5639K, external 349K/518K, paused 33ms
D/Camera ( 2516): HTC_CALLBACK: callbackType=4 arg1=1 arg2=0 mHtcCallback=null
W/HTCCamera( 2516): initOnCreate_after_preview() - end
W/HTCCamera( 2516): UIHandler Message - DO_CREATE_RESUME_AFTER_PREVIEW end
D/mm-camera( 2347): TRIGGER_LOWLIGHT
W/HTCCamera( 2516): UIHandler Message - DO_CREATE_AFTER_PREVIEW start
W/HTCCamera( 2516): doOnCreate_after_preview() - start
D/dalvikvm( 2516): GC_EXTERNAL_ALLOC freed 53K, 48% free 2979K/5639K, external 967K/1048K, paused 25ms
D/dalvikvm( 2516): GC_EXTERNAL_ALLOC freed 11K, 48% free 2984K/5639K, external 1763K/1818K, paused 24ms
W/MenuHandler( 2516): initMenuHandler() - start
W/MenuHandler( 2516): initMenuHandler() - end
D/dalvikvm( 2516): GC_EXTERNAL_ALLOC freed 6K, 48% free 2988K/5639K, external 2325K/2462K, paused 24ms
W/HTCCamera( 2516): doOnCreate_after_preview() - end
W/HTCCamera( 2516): UIHandler Message - DO_CREATE_AFTER_PREVIEW end
D/dalvikvm( 2516): GC_EXTERNAL_ALLOC freed 25K, 47% free 3019K/5639K, external 3137K/3138K, paused 28ms
D/CameraService( 2347): setParameters (pid 2516) (sharpness-max=30;zoom=0;taking-picture-zoom=0;zoom-supported=true;sharpness-min=0;sharpness=10;contrast=5;whitebalance=a
uto;jpeg-quality=100;preview-iso=off;preview-format-values=yuv420sp;jpeg-thumbnail-quality=75;preview-format=yuv420sp;preview-size=1280x720;focal-length=3.53;iso=auto;met
er-mode=meter-center;front-camera-mode=mirror;flash-mode-values=off,auto,on,torch;preview-frame-rate-values=15;preview-frame-rate=15;focus-mode-values=auto,infinity;postp
roc-enable-imboost=on;jpeg-thumbnail-width=640;preview-fps-range-values=(9000,29453);jpeg-thumbnail-size-values=640x480,512x384,384x288,0x0,640x480;zoom-ratios=100,114,13
1,151,174,200;saturation-def=5;preview-size-values=1280x720,960x720,800x480,720x480,640x480,640x384,576x432,480x320;smart-contrast=off;picture-size-values=2592x1952,2592x
1456,2592x1520,2592x1936,2592x1728,2592x1552,2048x1536,2048x1360,2048x1216,2048x1152,2048x1200,1600x1200,1584x1056,1280x960,1280x848,1280x768,1280x720,1280x752,1024x768,6
40x480,640x416,640x384,640x
Thoughts?