Can anyone help me ?

help !

Thank you in advanced


On 4月4日, 下午1时53分, Alex <[email protected]> wrote:
> hi all
>
> I have a question about porting Fake camera.  Because there are some
> errors about my camera hardware, so my boss ask me to verify whether
> the Fake camera can  work sucessfully or not in our device.
>
> The Fake Camera can be opened sucessfully, but when i click the
> "capture" physics button the "click sound" can be played  and from the
> printing message the "kCannedJpeg" has loaded sucessful,  but after
> the after the "click sound " played, the camera crashed, also the OS
> crashed and auto reboot.  but the picture which is defined as
> "kCannedJpeg"  has been stored in SDCARD.
>
> Then I modified the the process how the handler the case
> "KeyEvent.KEYCODE_DPAD_CENTER" in  function " onKeyDown(int keyCode,
> KeyEvent event)" in "Camera.java"  to make the "autoFocus()" can not
> be called after user clicked capture button, and the modified function
> as list:
>
> case KeyEvent.KEYCODE_CAMERA:
> case KeyEvent.KEYCODE_DPAD_CENTER:
>                 if (event.getRepeatCount() == 0) {
>                     // The camera operates in focus-priority mode,
> meaning that we take a picture
>                     // when focusing completes, and only if it
> completes successfully. If the user
>                     // has half-pressed the shutter and already locked
> focus, we can take the photo
>                     // right away, otherwise we need to start AF.
>                     mIsFocused          =   true;
>                     if (mIsFocused || !mPreviewing) {
>                         // doesn't get set until the idler runs
>                         if (mCaptureObject != null) {
>                             mCaptureObject.onSnap();
>                         }
>                         clearFocus();
>                         updateFocusIndicator();
>                     } else {
>                         // Half pressing the shutter (i.e. the focus
> button event) will already have
>                         // requested AF for us, so just request
> capture on focus here. If AF has
>                         // already failed, we don't want to trigger it
> again.
>                         mCaptureOnFocus = true;
>                         if (keyCode == KeyEvent.KEYCODE_DPAD_CENTER
> && !mIsFocusButtonPressed) {
>                             // But we do need to start AF for
> DPAD_CENTER
>                             autoFocus();
>                         }
>                     }
>                 }
>                 return true;
>
>   But the result is same .the camera crashed, also the OS crashed and
> auto reboot too.
>
>   Can someone help me??  Thanks in advance.
>
>    The error information is:
>
> W/camera  ( 3626): onKeyDown  keyCode== KeyEvent.KEYCODE_CAMERA and
> KEYCODE_DPAD_CENTER
> D/CameraService( 1642): getParameters
> E/Camera  ( 3626): _getParameters: picture-format=jpeg;picture-
> size=213x350;preview-format=yuv422sp;preview-frame-rate=15;preview-
> size=640x480
> E/Camera  ( 3626): setParameters()
> D/CameraService( 1642): setParameters(picture-size=213x350;preview-
> frame-rate=15;preview-size=640x480;picture-format=jpeg;jpeg-
> quality=85;preview-format=yuv422sp;rotation=90)
> D/CameraHardwareStub( 1642): initHeapLocked: preview size=640x480
> D/CameraService( 1642): takePicture
> W/CameraService( 1642): cpp Befroe takePicture
> W/CameraHardwareStub( 1642): CameraHardwareStub::takePicture
> W/CameraHardwareStub( 1642):  CameraHardwareStub::pictureThread()
> W/CameraHardwareStub( 1642): pictureThread mRawPictureCallback
> I/VideoPreview( 3626): ar 0.6085714 setting size: 292x480
> D/CameraService( 1642): postRaw
> W/CameraHardwareStub( 1642): pictureThread mJpegPictureCallback
> W/MediaPlayer-JNI( 3626):  *******process_media_player_call() seekto
> W/CameraHardwareStub( 1642): pictureThread copy exist jpeg picture
> W/CameraService( 1642): postJpeg L1
> D/CameraService( 1642): postJpeg
> W/ICameraClient( 1642): jpegCallback before transact
> W/ICameraClient( 3626): JPEG_CALLBACK
> W/CameraService( 1642): postJpeg L2
> W/MediaPlayer-JNI( 3626):  *******process_media_player_call() start
> W/camera  ( 3626): RawPictureCallback onPictureTaken
> W/camera  ( 3626): Camera.java showPostPictureAlert
> W/camera  ( 3626): onKeyDown  keyCode== KeyEvent.KEYCODE_CAMERA and
> KEYCODE_DPAD_CENTER
> W/camera  ( 3626): GoTo Snap
> D/AudioSink( 1642): bufferCount (4) is too small and increased to 12
> W/camera  ( 3626): JpegPictureCallback onPictureTaken
> W/camera  ( 3626): JpegData length= 18474
> W/camera  ( 3626): storeImage ()
> W/camera  ( 3626): storeImage not captureOnly
> W/camera  ( 3626): storeImage data length =18474
> W/ImageManager( 3626): ImageManger.java addImage
> W/ImageManager( 3626): addImage  imageName=1970-01-01 00.16.29
> description=      filenamenull
> W/ImageManager( 3626): addImage  path=/sdcard/dcim/camera  name=
> camera
> W/ImageManager( 3626): addImage    L1
> W/ImageManager( 3626): addImage    L3
> E/ALSALib ( 1642): external/alsa-lib/src/pcm/pcm.c:
> 2144snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker_normal
> E/ALSALib ( 1642): external/alsa-lib/src/pcm/pcm.c:
> 2144snd_pcm_open_noupdate) Unknown PCM AndroidPlayback_Speaker
> E/ALSALib ( 1642): external/alsa-lib/src/pcm/pcm.c:
> 2144snd_pcm_open_noupdate) Unknown PCM AndroidPlayback
> I/AudioHardwareALSA( 1642): #Initialized ALSA PLAYBACK device
> AndroidPlayback
> D/AudioHardwareALSA( 1642): Set PLAYBACK PCM format to S16_LE (Signed
> 16 bit Little Endian)
> D/AudioHardwareALSA( 1642): Using 2 channels for PLAYBACK.
> D/AudioHardwareALSA( 1642): Set PLAYBACK sample rate to 44100 HZ
> W/AudioFlinger( 1642): write blocked for 114 msecs
> I/DEBUG   ( 1640): *** *** *** *** *** *** *** *** *** *** *** *** ***
> *** *** ***
> I/DEBUG   ( 1640): Build fingerprint: 'sec/sec_smdk6410/smdk6410/:1.5/
> MAIN/eng.hftang.20090303.153909:eng/test-keys'
> I/DEBUG   ( 1640): pid: 1692, tid: 1700  >>> system_server <<<
> I/DEBUG   ( 1640): signal 11 (SIGSEGV), fault addr 45c37000
> I/DEBUG   ( 1640):  r0 45ceefe0  r1 45c36ff8  r2 00025fe8  r3 00000000
> I/DEBUG   ( 1640):  r4 00000000  r5 00000000  r6 00000000  r7 00000000
> I/DEBUG   ( 1640):  r8 00000000  r9 00000000  10 00000000  fp 00000000
> I/DEBUG   ( 1640):  ip 45c37000  sp 447e5b40  lr acc15307  pc
> afe0d9fc  cpsr 20000010
> W/ImageManager( 3626): addImage    L4
> I/DEBUG   ( 1640):          #00  pc afe0d9fc  /system/lib/libc.so
> I/DEBUG   ( 1640):          #01  pc acc15304  /system/lib/libagl.so
> I/DEBUG   ( 1640):          #02  pc acc1637c  /system/lib/libagl.so
> W/ImageManager( 3626): addImage    L5
> W/ImageManager( 3626): addImage    L6
> W/ImageManager( 3626): addImage   filePath= /sdcard/DCIM/Camera/
> 989252.jpg
> W/ImageManager( 3626): addImage   pos= 19
> I/DEBUG   ( 1640):          #03  pc acd2555c  /system/lib/
> libsurfaceflinger.so
> I/DEBUG   ( 1640):          #04  pc acd26424  /system/lib/
> libsurfaceflinger.so
> I/DEBUG   ( 1640):          #05  pc acd250cc  /system/lib/
> libsurfaceflinger.so
> I/DEBUG   ( 1640):          #06  pc acd2ae7c  /system/lib/
> libsurfaceflinger.so
> I/DEBUG   ( 1640):          #07  pc acd2b05a  /system/lib/
> libsurfaceflinger.so
> I/DEBUG   ( 1640):          #08  pc acd2db20  /system/lib/
> libsurfaceflinger.so
> I/DEBUG   ( 1640):          #09  pc a9d289e8  /system/lib/libutils.so
> I/DEBUG   ( 1640):          #10  pc a9d287c4  /system/lib/libutils.so
> I/DEBUG   ( 1640):          #11  pc afe0f8cc  /system/lib/libc.so
> I/DEBUG   ( 1640):          #12  pc afe0f440  /system/lib/libc.so
> I/DEBUG   ( 1640): stack:
> I/DEBUG   ( 1640):     447e5b00  000c33cc  [heap]
> I/DEBUG   ( 1640):     447e5b04  00000006
> I/DEBUG   ( 1640):     447e5b08  447e5b74
> I/DEBUG   ( 1640):     447e5b0c  acc15165  /system/lib/libagl.so
> I/DEBUG   ( 1640):     447e5b10  002acbd0  [heap]
> I/DEBUG   ( 1640):     447e5b14  acc15139  /system/lib/libagl.so
> I/DEBUG   ( 1640):     447e5b18  001a50e0  [heap]
> I/DEBUG   ( 1640):     447e5b1c  acc15cab  /system/lib/libagl.so
> I/DEBUG   ( 1640):     447e5b20  00000000
> I/DEBUG   ( 1640):     447e5b24  00000006
> I/DEBUG   ( 1640):     447e5b28  000001e0
> I/DEBUG   ( 1640):     447e5b2c  00000280
> I/DEBUG   ( 1640):     447e5b30  00272920  [heap]
> I/DEBUG   ( 1640):     447e5b34  00000280
> I/DEBUG   ( 1640):     447e5b38  df002777
> I/DEBUG   ( 1640):     447e5b3c  e3a070ad
> I/DEBUG   ( 1640): #00 447e5b40  00000280
> I/DEBUG   ( 1640):     447e5b44  0000006c
> I/DEBUG   ( 1640):     447e5b48  acf1782e  /system/lib/
> libpixelflinger.so
> I/DEBUG   ( 1640):     447e5b4c  becc2454  [stack]
> I/DEBUG   ( 1640):     447e5b50  afe37dd0
> I/DEBUG   ( 1640):     447e5b54  a9d2875d  /system/lib/libutils.so
> I/DEBUG   ( 1640):     447e5b58  00000001
> I/DEBUG   ( 1640):     447e5b5c  45cca008
> I/DEBUG   ( 1640):     447e5b60  447e5bbc
> I/DEBUG   ( 1640):     447e5b64  acc15307  /system/lib/libagl.so
> I/DEBUG   ( 1640): #01 447e5b68  0004b000  [heap]
> I/DEBUG   ( 1640):     447e5b6c  00000000
> I/DEBUG   ( 1640):     447e5b70  447e5cbc
> I/DEBUG   ( 1640):     447e5b74  001a50e0  [heap]
> I/DEBUG   ( 1640):     447e5b78  000c33b0  [heap]
> I/DEBUG   ( 1640):     447e5b7c  45c12000
> W/ImageManager( 3626): addImage    L8
> I/DEBUG   ( 1640):     447e5b80  001a50e0  [heap]
> I/DEBUG   ( 1640):     447e5b84  447e5bbc
> I/DEBUG   ( 1640):     447e5b88  000001e0
> I/DEBUG   ( 1640):     447e5b8c  acc1637f  /system/lib/libagl.so
> W/camera  ( 3626): storeImage mLastContentUri
> W/camera  ( 3626): storeImage !mCancel
> W/camera  ( 3626): storeImage !mCancel L1
> D/dalvikvm( 3626): Trying to load lib /system/lib/libexif.so
> 0x43480a60
> D/dalvikvm( 3626): Added shared lib /system/lib/libexif.so 0x43480a60
> D/dalvikvm( 3626): GC freed 2202 objects / 141264 bytes in 191ms
> I/DEBUG   ( 1640): debuggerd committing suicide to free the zombie!
> I/DEBUG   ( 3732): debuggerd: Jan 15 2009 12:53:04binder: release proc
> 1692, transaction 5005, not freed
>
> I/ActivityThread( 1866): Removing dead content provider: settings
> I/ActivityThread( 2491): Removing dead content provider: settings
> I/ActivityThread( 2491): Removing dead content provider:
> android.server.chebinder: 1821:1827 transaction failed 29189, size
> 16-4
> ckin
> I/ActivityThread( 1765): Removing dead content provider: settings
> I/ServiceManager( 1637): service 'package' died
> I/ServiceManager( 1637): service 'activity.providers' died
> I/ServiceMbinder: 3626:3626 transaction failed 29189, size 380-4
> binder: 3626:3626 transaction failed 29189, size 316-8
>
> I/ServiceManager( 1637): service 'SurfaceFlinger' died
> I/ServiceManager( 1637): service 'meminfo' died
> I/ServiceManager( 1637): service 'cpuibinder: 1642:1642 transaction
> failed 29189, size 44-0
> nfo' died
> I/ServiceManager( 1637): service 'power' died
> I/ServiceManager( 1637): service 'batteryinfo' died
> I/ServiceManager( 1637): service 'telephony.registry' died
> I/ServiceManager( 1637): service 'activity.broadcasts' died
> I/ServiceManager( 1637): service 'activity.senders' died
> I/ServiceManager( 1637): service 'permission' binder: 3626:3626
> transaction failed 29189, size 60-0
> died
> I/ServiceManager( 1637): service 'content' died
> I/ServiceManager( 1637): service 'activity' died
> I/ServiceManager( 1637): service 'battery' died
> I/ServiceManager( 1637): service 'alarm' died
> I/ServiceManager( 1637): service 'sensor' died
> I/ServiceManager( 1637): service 'window' died
> I/ServiceManager( 1637): service 'statusbar' died
> I/ServiceManager( 1637): service 'clipboard' died
> I/ServiceManager( 1637): service 'netstat' died
> I/ServiceManager( 1637): service 'input_method' died
> I/ServiceManager( 1637): service 'hardware' died
> I/ServiceManager( 1637): service 'wifi' died
> I/ServiceManager( 1637): service 'connectivity' died
> I/ServiceManager( 1637): service 'notification' died
> I/ServiceManager( 1637): service 'mount' died
> I/ServiceManager( 1637): service 'devicestoragemonitor' died
> I/ServiceManager( 1637): service 'location' died
> I/ServiceManager( 1637): service 'search' died
> I/ServiceManager( 1637): service 'checkin' died
> I/ServiceManager( 1637): service 'wallpaper' died
> I/ServiceManager( 1637): service 'audio' died
> W/camera  ( 3626): storeImage !mCancel L2
> W/camera  ( 3626): storeImage  data to loc
--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to