Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fm-commonsys
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
vendor
qcom-opensource
fm-commonsys
Commits
6c52ee08
Commit
6c52ee08
authored
6 years ago
by
Linux Build Service Account
Browse files
Options
Downloads
Plain Diff
Merge
e4e8ad1c
on remote branch
Change-Id: I84fa5310ee3247d83aa8339fc7491a239b74e0f3
parents
a17a340d
e4e8ad1c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
fmapp2/src/com/caf/fmradio/FMRadioService.java
+11
-2
11 additions, 2 deletions
fmapp2/src/com/caf/fmradio/FMRadioService.java
with
11 additions
and
2 deletions
fmapp2/src/com/caf/fmradio/FMRadioService.java
+
11
−
2
View file @
6c52ee08
...
@@ -288,7 +288,16 @@ public class FMRadioService extends Service
...
@@ -288,7 +288,16 @@ public class FMRadioService extends Service
getA2dpStatusAtStart
();
getA2dpStatusAtStart
();
mGainFocusReq
=
requestAudioFocus
();
mGainFocusReq
=
requestAudioFocus
();
AudioManager
mAudioManager
=
(
AudioManager
)
getSystemService
(
Context
.
AUDIO_SERVICE
);
AudioDeviceInfo
[]
deviceList
=
mAudioManager
.
getDevices
(
AudioManager
.
GET_DEVICES_OUTPUTS
);
for
(
int
index
=
0
;
index
<
deviceList
.
length
;
index
++)
{
if
((
deviceList
[
index
].
getType
()
==
AudioDeviceInfo
.
TYPE_WIRED_HEADSET
)
||
(
deviceList
[
index
].
getType
()
==
AudioDeviceInfo
.
TYPE_WIRED_HEADPHONES
)){
mHeadsetPlugged
=
true
;
break
;
}
}
}
}
@Override
@Override
...
@@ -743,7 +752,7 @@ public class FMRadioService extends Service
...
@@ -743,7 +752,7 @@ public class FMRadioService extends Service
final
Runnable
mFmVolumeHandler
=
new
Runnable
()
{
final
Runnable
mFmVolumeHandler
=
new
Runnable
()
{
public
void
run
()
{
public
void
run
()
{
try
{
try
{
Thread
.
sleep
(
1
0
00
);
Thread
.
sleep
(
1
5
00
);
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
Log
.
d
(
LOGTAG
,
"RunningThread InterruptedException"
);
Log
.
d
(
LOGTAG
,
"RunningThread InterruptedException"
);
return
;
return
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment