CPU control API?

by denismo » Tue, 04 Nov 2008 19:31:03 GMT


Sponsored Links
 Hi,

I heard on ARM CPU it is possible to set low-power consumption
options, to reduce power consumption at the cost of speed or features.
Is it possible to control these options using Android API?

Thanks.

Denis
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Voice Search from Keyboard not working (Voice Search works fine in Google Search, though)

Since quite a while (i think after the the OTA update to Froyo (2.2)),
my Voice Search from the keyboard stopped working.

A Voice Search from Google Search, for example, still works fine
without problems.
But when clicking on the keyboard's microphone button to speak a text
that needs entering in a text-field, a error dialog is shown with
'Server Error'.

I hooked up my Nexus One to ddms, and the log produces this text when
the Server Error occurrs:

10-01 12:47:30.314: INFO/RecognitionController(20444):
startRecognition(#Intent;action=android.speech.action.RECOGNIZE_SPEECH;component=com.google.android.voicesearch/.RecognitionService;l.android.speech.extras.SPEECH_INPUT_COMPLETE_SILENCE_LENGTH_MILLIS=1000;S.calling_package=VoiceIME;S.android.speech.extra.LANGUAGE_MODEL=;i.android.speech.extra.MAX_RESULTS=1;end)
10-01 12:47:30.314: INFO/RecognitionController(20444): State change:
PAUSED -> STARTING
10-01 12:47:30.314: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:30.314: DEBUG/AudioHardwareQSD(17784): Switching audio
device to
10-01 12:47:30.314: DEBUG/AudioHardwareQSD(17784): Speakerphone
10-01 12:47:30.314: INFO/AudioHardwareQSD(17784): AudioHardware PCM
record is going to standby.
10-01 12:47:30.334: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:30.334: DEBUG/AudioHardwareQSD(17784): Switching audio
device to
10-01 12:47:30.334: DEBUG/AudioHardwareQSD(17784): Speakerphone
10-01 12:47:30.334: INFO/AudioHardwareQSD(17784): AudioHardware PCM
record is going to standby.
10-01 12:47:30.334: INFO/AudioService(85):  AudioFocus
requestAudioFocus() from android.media.audiomana...@449cf188
10-01 12:47:30.334: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:30.344: INFO/AudioHardwareQSD(17784): do input routing
device 40000
10-01 12:47:30.344: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:30.354: INFO/RecognitionController(20444): State change:
STARTING -> RECOGNIZING
10-01 12:47:30.354: INFO/ServerConnectorImpl(20444): Starting TCP
session, url=http://www.google.com/m/voice-search
10-01 12:47:30.534: DEBUG/AudioHardwareQSD(17784): Switching audio
device to
10-01 12:47:30.534: DEBUG/AudioHardwareQSD(17784): Speakerphone
10-01 12:47:30.935: INFO/RecognitionController(20444):
onReadyForSpeech, noise level:51.371593, snr:-1.3440453
10-01 12:47:31.835: INFO/RecognitionController(20444):
onBeginningOfSpeech
10-01 12:47:32.544: DEBUG/ServerConnectorImpl(20444): Created session
50ff140454b8a22d1c1f4a772ef56e63
10-01 12:47:32.544: INFO/ServerConnectorImpl(20444): Creating TCP
connection to 74.125.47.126:19294
10-01 12:47:32.754: INFO/ServerConnectorImpl(20444): startRecognize
RecognitionParameters{session=50ff140454b8a22d1c1f4a772ef56e63,request=1}
10-01 12:47:33.364: INFO/RecognitionController(20444): onEndOfSpeech
10-01 12:47:33.364: INFO/AudioService(85):  AudioFocus
abandonAudioFocus() from android.media.audiomana...@449cf188
10-01 12:47:33.414: DEBUG/dalvikvm(156): GC_EXTERNAL_ALLOC freed 671
objects / 59904 bytes in 50ms
10-01 12:47:33.424: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:33.554: DEBUG/AudioHardwareQSD(17784): Switching audio
device to
10-01 12:47:33.554: DEBUG/AudioHardwareQSD(17784): Speakerphone
10-01 12:47:33.564: INFO/AudioHardwareQSD(17784): AudioHardware PCM
record is going to standby.
10-01 12:47:33.564: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:33.564: INFO/AudioHardwareQSD(17784): Routing audio to
Speakerphone
10-01 12:47:33.564: DEBUG/AudioHardwareQSD(17784): Switching audio
device to
10-01 12:47:33.564: DEBUG/AudioHardwareQSD(17784): Speakerphone
10-01 12:47:33.564: INFO/AudioHardwareQSD(17784): AudioHardware PCM
record is going to standby.
10-01 12:47:38.434: DEBUG/dalvikvm(27355): GC_EXPLICIT freed 183
objects / 12216 bytes in 86ms
10-01 12:47:43.014: INFO/RecognitionController(20444): State change:
RECOGNIZING -> RECOGNIZED
10-01 12:47:43.014: INFO/RecognitionController(20444): Final state:
RECOGNIZED
10-01 12:47:43.014: WARN/RecognitionController(20444): server reported
error status:5
10-01 12:47:43.014: ERROR/RecognitionController(20444): ERROR_SERVER
10-01 12:47:43.014: INFO/ServerConnectorImpl(20444):
ClientReport{session_id=50ff140454b8a22d1c1f4a772ef56e63,request_id=1,application_id=intent-
speech-
api,client_perceived_request_status=1,request_ack_latency_ms=161,endpoint_trigger_type=3,}
10-01 12:47:43.024: INFO/AudioService(85):  AudioFocus
abandonAudioFocus() from android.media.audiomana...@449cf188
10-01 12:47:43.034: INFO/VoiceInput(156): error 4
10-01 12:47:43.704: INFO/ClientReportSender(20444): Sending 1 client
reports over HTTP
10-01 12:47:43.704: INFO/RecognitionController(20444): State change:
RECOGNIZED -> PAUSED
10-01 12:47:43.704: INFO/AudioService(85):  AudioFocus
abandonAudioFocus() from android.media.audiomana...@449cf188

Is there a way to make voice-search work again (without a factory
reset :-))?
Thanks!

-- 

2. How to send a string to server

Hi
I am trying to send a string to server, i would like to know how many
alternatives i have. Actually i am using a socket but i don't know if
there is a better option.
The string is big(lenght about 192000 , yes too much 192000), i think
is a little is stupid try to do this, but the server works with
sending a string to one computer to other computer and my mision is to
make a conection between a computer like server with a client (android
phone). If i can send i big string so i do not need to change the
program on the server.
I need info about how to send a string with
1. GPRS EDGE
2. Wi-FI

-- 

3. How to show notification while service is running..?

4. Help with basic Threading / Message handling App

5. Mod: Pendaftaran sudah ditutup

6. android.view.inflateException:Binary XML file line #43:Inflating Class<unknown>

7. Non-market app, unknown sources, and AT&T