packages-apps-fmradio's People
packages-apps-fmradio's Issues
AudioDevicePort cannot find symbol class
Hey,
Thanks a ton for sharing this. But for some reason, I am unable to use this. I am using Android Studio with compile version 25 and FmServive.java throws a set of error while building the application. Most of them say it cannot find symbol like the above. Can you please heal me what might the root cause be.
Thanks in advance.
Aries, z3 compact: Currently not available
Tested on N,
I get Currently unavailable toast when connected to headphones.
[packages-apps-FMRadio, vendor-qcom-opensource-fm]
Tested with and without the qcom/audio commit: https://github.com/SonyAosp/platform_hardware_qcom_audio/commit/a4e7031398a6174f96c9ee87ffca75c68193d905
[ 101.815593] wcd9xxx_find_plug_type: Invalid, delta 2185mv, 2185mv and 2325mv, 0/140
01-05 14:32:06.448 1186 1197 I ActivityManager: START u0 {act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.android.fmradio/.FmMainActivity (has extras)} from uid 10014 on display 0
01-05 14:32:06.538 3335 3335 D FmMainActivity: refreshStationUI, set station value null when it is first time
01-05 14:32:06.549 3335 3335 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1385 android.content.ContextWrapper.startService:613 com.android.fmradio.FmMainActivity.onStart:647 android.app.Instrumentation.callActivityOnStart:1248 android.app.Activity.performStart:6681
01-05 14:32:06.554 3335 3335 W ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.bindService:1449 android.content.ContextWrapper.bindService:636 com.android.fmradio.FmMainActivity.onStart:653 android.app.Instrumentation.callActivityOnStart:1248 android.app.Activity.performStart:6681
01-05 14:32:06.559 3335 3335 D FmMainActivity: onResume, mService is null
01-05 14:32:06.583 449 3522 I AudioFlinger: AudioFlinger's thread 0xaec03600 ready to run
01-05 14:32:06.587 3335 3335 D AudioTrack: Client defaulted notificationFrames to 1178 for frameCount 3536
01-05 14:32:06.599 3335 3335 D FmService: onReceive, action = android.intent.action.HEADSET_PLUG / command = null
01-05 14:32:06.599 3335 3335 D FmService: onReceive, mIsServiceInited is false
01-05 14:32:06.600 3335 3335 D FmService: onAudioPatchListUpdate, not power up
01-05 14:32:06.601 3335 3520 D FmService: handlePowerUp, earphone is not ready
01-05 14:32:06.621 1186 1292 I ActivityManager: Displayed com.android.fmradio/.FmMainActivity: +141ms
01-05 14:32:06.622 3335 3335 D FmMainActivity: mHandler.handleMessage, what = 4,hashcode:215758858
01-05 14:32:06.622 3335 3335 W FmMainActivity: playNoHeadsetAnimation, no headset layout has already shown
01-05 14:32:06.811 1186 1292 I WindowManager: Destroying surface Surface(name=Starting com.android.fmradio) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.WindowStateAnimator.finishExit:565 com.android.server.wm.WindowStateAnimator.stepAnimationLocked:491 com.android.server.wm.WindowAnimator.updateWindowsLocked:303 com.android.server.wm.WindowAnimator.animateLocked:704
01-05 14:32:06.916 1186 2992 I WindowManager: Destroying surface Surface(name=com.android.launcher3/com.android.launcher3.Launcher) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.AppWindowToken.destroySurfaces:363 com.android.server.wm.AppWindowToken.notifyAppStopped:389 com.android.server.wm.WindowManagerService.notifyAppStopped:4456 com.android.server.am.ActivityStack.activityStoppedLocked:1252 com.android.server.am.ActivityManagerService.activityStopped:6873
01-05 14:32:13.450 1186 1497 V WiredAccessoryManager: notifyWiredAccessoryChanged: when=102337771000 bits=SW_HEADPHONE_INSERT SW_MICROPHONE_INSERT mask=94
01-05 14:32:13.451 1186 1497 V WiredAccessoryManager: newName=h2w newState=1 headsetState=1 prev headsetState=0
01-05 14:32:13.453 1186 1497 I WiredAccessoryManager: MSG_NEW_DEVICE_STATE
01-05 14:32:13.453 1186 1186 V WiredAccessoryManager: headsetName: connected
01-05 14:32:13.455 449 1856 I AudioFlinger: openOutput(), module 10 Device 4, SamplingRate 8000, Format 0x1000000, Channels 1, flags 31
01-05 14:32:13.456 449 1856 I AudioFlinger: HAL output buffer size 262144 frames, normal sink buffer size 262144 frames
01-05 14:32:13.457 449 3529 I AudioFlinger: AudioFlinger's thread 0xaec68000 ready to run
01-05 14:32:13.476 449 3527 E audio_hw_primary: offload_thread_loop: Compress handle is NULL
01-05 14:32:13.480 3335 3335 D FmService: onReceive, action = android.intent.action.HEADSET_PLUG / command = null
01-05 14:32:13.483 1186 2148 I MediaFocusControl: AudioFocus requestAudioFocus() from uid/pid 1000/3335 clientId=android.media.AudioManager@493187bcom.android.fmradio.FmService$1@e391698 req=1 flags=0x0
01-05 14:32:13.485 3335 3520 I : androidFmRadioRxGetState, state
01-05 14:32:13.485 3335 3520 I : androidFmRadioRxStart. LowFreq 87500, HighFreq 108000, DefaultFreq 100000, grid 100.
01-05 14:32:13.485 3335 3520 E : No matching library found in path /system/lib64/
01-05 14:32:13.485 3335 3520 E : vendor registration failed
01-05 14:32:13.485 3335 3520 I : androidFmRadioThrowException, java/io/IOException ('IO Exception') @ device/sony/common/brcm_fmradio/libfmjni/android_fm.cpp 724 (androidFmRadioStart)
01-05 14:32:13.485 3335 3335 D FmMainActivity: mHandler.handleMessage, what = 9,hashcode:215758858
01-05 14:32:13.485 3335 3335 D FmMainActivity: refreshStationUI, set station value null when it is first time
01-05 14:32:13.489 1186 1186 V MediaRouter: Updating audio routes: AudioRoutesInfo{ type=HEADSET }
01-05 14:32:13.489 1186 1186 V MediaRouter: Dispatching route change: RouteInfo{ name=Headphones, description=null, status=null, category=RouteCategory{ name=null types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
01-05 14:32:13.489 1186 1186 I Telecom : WiredHeadsetManager: ACTION_HEADSET_PLUG event, plugged in: true, : WHC.oADA@ACA
01-05 14:32:13.491 1186 2101 I Telecom : CallAudioRouteStateMachine: Message received: CONNECT_WIRED_HEADSET=1: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET@ACA_0
01-05 14:32:13.491 1186 2101 I Telecom : Telecom: Non-call EVENT: AUDIO_ROUTE, Wired headset connected: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET@ACA_0
01-05 14:32:13.492 1186 2101 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_HEADSET=1003: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_HEADSET@ACA_0_0
01-05 14:32:13.492 1186 2101 I Telecom : Telecom: Non-call EVENT: AUDIO_ROUTE, Leaving state QuiescentEarpieceRoute: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_HEADSET@ACA_0_0
01-05 14:32:13.494 1895 1895 V MediaRouter: Updating audio routes: AudioRoutesInfo{ type=HEADSET }
01-05 14:32:13.495 1895 1895 V MediaRouter: Dispatching route change: RouteInfo{ name=Headphones, description=null, status=null, category=RouteCategory{ name=null types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
01-05 14:32:13.495 1186 2101 I Telecom : Telecom: Non-call EVENT: AUDIO_ROUTE, Entering state QuiescentHeadsetRoute: WHC.oADA->CARSM.pM_CONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_HEADSET@ACA_0_0
01-05 14:32:13.495 3335 3335 D FmMainActivity: mHandler.handleMessage, what = 4,hashcode:215758858
01-05 14:32:15.814 1186 1292 I WindowManager: Destroying surface Surface(name=Toast) called by com.android.server.wm.WindowStateAnimator.destroySurface:2014 com.android.server.wm.WindowStateAnimator.destroySurfaceLocked:881 com.android.server.wm.WindowState.destroyOrSaveSurface:2073 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementInner:429 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacementLoop:232 com.android.server.wm.WindowSurfacePlacer.performSurfacePlacement:180 com.android.server.wm.WindowManagerService$H.handleMessage:8090 android.os.Handler.dispatchMessage:102
01-05 14:32:17.734 1186 1497 V WiredAccessoryManager: notifyWiredAccessoryChanged: when=106620843000 bits= mask=94
01-05 14:32:17.734 1186 1497 V WiredAccessoryManager: newName=h2w newState=0 headsetState=0 prev headsetState=1
01-05 14:32:17.736 1186 1497 I WiredAccessoryManager: MSG_NEW_DEVICE_STATE
01-05 14:32:17.737 1186 1186 V WiredAccessoryManager: headsetName: disconnected
01-05 14:32:18.772 1895 1895 V MediaRouter: Updating audio routes: AudioRoutesInfo{ type=SPEAKER }
01-05 14:32:18.773 1895 1895 V MediaRouter: Dispatching route change: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=null types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
01-05 14:32:18.773 3335 3335 D FmService: onReceive, action = android.intent.action.HEADSET_PLUG / command = null
01-05 14:32:18.784 1186 1186 V MediaRouter: Updating audio routes: AudioRoutesInfo{ type=SPEAKER }
01-05 14:32:18.784 1186 1186 V MediaRouter: Dispatching route change: RouteInfo{ name=Phone, description=null, status=null, category=RouteCategory{ name=null types=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO groupable=false }, supportedTypes=ROUTE_TYPE_LIVE_AUDIO ROUTE_TYPE_LIVE_VIDEO , presentationDisplay=null }
01-05 14:32:18.784 1186 1186 I Telecom : WiredHeadsetManager: ACTION_HEADSET_PLUG event, plugged in: true, : WHC.oADR@ACE
01-05 14:32:18.787 3335 3335 D FmMainActivity: mHandler.handleMessage, what = 10,hashcode:215758858
01-05 14:32:18.788 3335 3335 D FmMainActivity: mHandler.handleMessage, what = 1052672,hashcode:215758858
01-05 14:32:18.791 1186 1186 I Telecom : WiredHeadsetManager: ACTION_HEADSET_PLUG event, plugged in: false, : WHC.oADR@ACI
01-05 14:32:18.791 1186 2101 I Telecom : CallAudioRouteStateMachine: Message received: DISCONNECT_WIRED_HEADSET=2: WHC.oADR->CARSM.pM_DISCONNECT_WIRED_HEADSET@ACI_0
01-05 14:32:18.791 1186 2101 I Telecom : Telecom: Non-call EVENT: AUDIO_ROUTE, Wired headset disconnected: WHC.oADR->CARSM.pM_DISCONNECT_WIRED_HEADSET@ACI_0
01-05 14:32:18.792 1186 2101 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_BASELINE_ROUTE=1005: WHC.oADR->CARSM.pM_DISCONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_BASELINE_ROUTE@ACI_0_0
01-05 14:32:18.792 1186 2101 I Telecom : CallAudioRouteStateMachine: Message received: SWITCH_EARPIECE=1001: WHC.oADR->CARSM.pM_DISCONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_BASELINE_ROUTE->CARSM.pM_SWITCH_EARPIECE@ACI_0_0_0
01-05 14:32:18.792 1186 2101 I Telecom : Telecom: Non-call EVENT: AUDIO_ROUTE, Leaving state QuiescentHeadsetRoute: WHC.oADR->CARSM.pM_DISCONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_BASELINE_ROUTE->CARSM.pM_SWITCH_EARPIECE@ACI_0_0_0
01-05 14:32:18.792 1186 2101 I Telecom : Telecom: Non-call EVENT: AUDIO_ROUTE, Entering state QuiescentEarpieceRoute: WHC.oADR->CARSM.pM_DISCONNECT_WIRED_HEADSET->CARSM.pM_SWITCH_BASELINE_ROUTE->CARSM.pM_SWITCH_EARPIECE@ACI_0_0_0
01-05 14:32:18.797 3335 3335 D FmMainActivity: mHandler.handleMessage, what = 4,hashcode:215758858
01-05 14:32:18.970 413 413 I rmt_storage: rmt_storage_connect_cb: clnt_h=0x4 conn_h=0xa831a0f0
01-05 14:32:18.971 413 413 I rmt_storage: rmt_storage_rw_iovec_cb: /boot/modem_fs2: clnt_h=0x2: req_h=0x8 msg_id=3: R/W request received
01-05 14:32:18.972 413 413 I rmt_storage: wakelock acquired: 1, error no: 42
01-05 14:32:18.972 413 736 I rmt_storage: rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2 Unblock worker thread (th_id: -1475868384)
01-05 14:32:19.023 413 736 I rmt_storage: rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2: req_h=0x8 msg_id=3: Bytes written = 1572864
01-05 14:32:19.023 413 736 I rmt_storage: rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2: req_h=0x8 msg_id=3: Send response: res=0 err=0
01-05 14:32:19.023 413 736 I rmt_storage: rmt_storage_client_thread: /boot/modem_fs2: clnt_h=0x2 About to block rmt_storage client thread (th_id: -1475868384) wakelock released: 1, error no: 0
01-05 14:32:19.023 413 736 I rmt_storage:
01-05 14:32:19.025 413 413 I rmt_storage: rmt_storage_disconnect_cb: clnt_h=0x4 conn_h=0xa831a0f0
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.