Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Issue 12571006: Add MODIFY_AUDIO_SETTINGS permission in Android manifest and implementation in audio manager. (Closed)

Created:
7 years, 9 months ago by leozwang1
Modified:
7 years, 9 months ago
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, feature-media-reviews_chromium.org, bulach+watch_chromium.org, yfriedman+watch_chromium.org, darin-cc_chromium.org, klundberg+watch_chromium.org, ilevy+watch_chromium.org, jochen+watch_chromium.org, frankf+watch_chromium.org, Ami GONE FROM CHROMIUM
Base URL:
https://src.chromium.org/svn/trunk/src/
Visibility:
Public.

Description

Add MODIFY_AUDIO_SETTINGS permission in Android manifest and implementation in android audio manager. MODIFY_AUDIO_SETTINGS allows application to be able to configure audio settings. In android audio manager, a function SetAudioMode is added to set audio mode. BUG=180328

Patch Set 1 #

Total comments: 2

Patch Set 2 : rebase #

Patch Set 3 : #

Patch Set 4 : change header order #

Total comments: 7

Patch Set 5 : address some Tommi's comments #

Total comments: 3

Patch Set 6 : add opensl header #

Patch Set 7 : rebase #

Total comments: 13

Patch Set 8 : address comments #

Patch Set 9 : missed one comment and addressed Ami's comment #

Total comments: 3

Patch Set 10 : Address Min's comment #

Patch Set 11 : move SetAudioMode to audio_manager_base #

Total comments: 2

Patch Set 12 : #

Patch Set 13 : #

Patch Set 14 : disable some unit test because of crashes #

Patch Set 15 : correct media_jni_registrar.cc #

Patch Set 16 : rebase #

Patch Set 17 : disable more unit tests #

Patch Set 18 : disable more unit tests 2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+138 lines, -15 lines) Patch
M chrome/android/testshell/java/AndroidManifest.xml View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/shell/android/browsertests_apk/AndroidManifest.xml View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M content/shell/android/shell_apk/AndroidManifest.xml View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M media/audio/android/opensles_output.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M media/audio/audio_input_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +30 lines, -4 lines 0 comments Download
M media/audio/audio_input_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 4 chunks +26 lines, -4 lines 0 comments Download
M media/audio/audio_manager_base.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +10 lines, -0 lines 0 comments Download
M media/audio/audio_manager_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 6 chunks +34 lines, -0 lines 0 comments Download
A media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
M media/base/android/media_jni_registrar.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +3 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 6 7 2 chunks +3 lines, -2 lines 0 comments Download
M testing/android/AndroidManifest.xml View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 37 (0 generated)
leozwang1
This is the follow up of https://codereview.chromium.org/12414005/. I don't why I have problem uploading a ...
7 years, 9 months ago (2013-03-08 17:43:57 UTC) #1
Yaron
https://codereview.chromium.org/12571006/diff/1/media/audio/android/opensles_output.cc File media/audio/android/opensles_output.cc (right): https://codereview.chromium.org/12571006/diff/1/media/audio/android/opensles_output.cc#newcode59 media/audio/android/opensles_output.cc:59: // context.getSystemService(Context.AUDIO_SERVICE). We're no longer taking patches with hand-written ...
7 years, 9 months ago (2013-03-09 00:31:18 UTC) #2
no longer working on chromium
Leo, I am going to defer the review to Yaron.
7 years, 9 months ago (2013-03-09 18:17:10 UTC) #3
leozwang1
rebase
7 years, 9 months ago (2013-03-10 06:43:45 UTC) #4
leozwang1
Thanks Shijing, add Tommi to review it. Patch 3 is uploaded, there are two major ...
7 years, 9 months ago (2013-03-11 00:40:18 UTC) #5
tommi (sloooow) - chröme
lgtm % nits https://codereview.chromium.org/12571006/diff/21001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/12571006/diff/21001/media/audio/android/audio_manager_android.cc#newcode35 media/audio/android/audio_manager_android.cc:35: bool AudioManagerAndroid::RegisterAudioManager(JNIEnv* env) { try to ...
7 years, 9 months ago (2013-03-11 09:57:18 UTC) #6
leozwang1
thanks Tommi, addressed most of your comments, but have one question. https://codereview.chromium.org/12571006/diff/21001/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): ...
7 years, 9 months ago (2013-03-11 15:12:24 UTC) #7
tommi (sloooow) - chröme
Just mean that methods that belong to the same interface should be grouped together. Is ...
7 years, 9 months ago (2013-03-11 15:21:32 UTC) #8
leozwang1
On 2013/03/11 15:21:32, tommi wrote: > Just mean that methods that belong to the same ...
7 years, 9 months ago (2013-03-11 15:31:06 UTC) #9
leozwang1
GetPreferredOutputStreamParameters() is defined as protected in audio_manager_base.h.
7 years, 9 months ago (2013-03-11 15:57:33 UTC) #10
no longer working on chromium
https://codereview.chromium.org/12571006/diff/21001/media/audio/android/audio_manager_android.h File media/audio/android/audio_manager_android.h (right): https://codereview.chromium.org/12571006/diff/21001/media/audio/android/audio_manager_android.h#newcode45 media/audio/android/audio_manager_android.h:45: virtual AudioParameters GetPreferredOutputStreamParameters( On 2013/03/11 09:57:18, tommi wrote: > ...
7 years, 9 months ago (2013-03-11 16:07:54 UTC) #11
leozwang1
Ping, Yaron, can you take a look?
7 years, 9 months ago (2013-03-11 20:00:16 UTC) #12
Yaron
https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.cc#newcode129 media/audio/android/audio_manager_android.cc:129: DCHECK(env); No need for this DCHECK https://codereview.chromium.org/12571006/diff/37011/media/audio/android/opensles_output.h File media/audio/android/opensles_output.h ...
7 years, 9 months ago (2013-03-11 21:56:49 UTC) #13
qinmin
https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.h File media/audio/android/audio_manager_android.h (right): https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.h#newcode17 media/audio/android/audio_manager_android.h:17: static const int kAudioModeRingtone = 0x00000001; be specific, i ...
7 years, 9 months ago (2013-03-11 23:09:56 UTC) #14
qinmin
7 years, 9 months ago (2013-03-11 23:09:56 UTC) #15
Ami GONE FROM CHROMIUM
drive-by https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.cc#newcode64 media/audio/android/audio_manager_android.cc:64: SetAudioMode(kAudioModeNormal); Why is this not InCommunication as well? ...
7 years, 9 months ago (2013-03-12 21:41:07 UTC) #16
leozwang1
PTAL https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.cc File media/audio/android/audio_manager_android.cc (right): https://codereview.chromium.org/12571006/diff/37011/media/audio/android/audio_manager_android.cc#newcode64 media/audio/android/audio_manager_android.cc:64: SetAudioMode(kAudioModeNormal); I don't really know who is using ...
7 years, 9 months ago (2013-03-12 22:22:59 UTC) #17
Yaron
Sorry for my likley naive question but I'm not really familiar with how media is ...
7 years, 9 months ago (2013-03-13 01:15:07 UTC) #18
leozwang1
Ami, when the app is killed, mode will be reset to normal. Ping, Yaron and ...
7 years, 9 months ago (2013-03-13 16:46:38 UTC) #19
qinmin
lgtm, do u have access to internal repo? coz u need to add the permission ...
7 years, 9 months ago (2013-03-13 17:03:13 UTC) #20
leozwang1
On 2013/03/13 17:03:13, qinmin wrote: > lgtm, do u have access to internal repo? coz ...
7 years, 9 months ago (2013-03-13 17:05:18 UTC) #21
Ami GONE FROM CHROMIUM
still drive-by On Wed, Mar 13, 2013 at 9:46 AM, <leozwang@chromium.org> wrote: > Ami, when ...
7 years, 9 months ago (2013-03-13 17:12:41 UTC) #22
Yaron
On 2013/03/13 17:12:41, Ami Fischman wrote: > still drive-by > > On Wed, Mar 13, ...
7 years, 9 months ago (2013-03-13 18:06:50 UTC) #23
leozwang1
Need to find a better way to configure global settings on Android. Will make a ...
7 years, 9 months ago (2013-03-14 04:35:18 UTC) #24
qinmin
https://codereview.chromium.org/12571006/diff/57001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java File media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java (right): https://codereview.chromium.org/12571006/diff/57001/media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java#newcode18 media/base/android/java/src/org/chromium/media/AudioManagerAndroid.java:18: (AudioManager)context.getSystemService(Context.AUDIO_SERVICE); nits: indent by 8
7 years, 9 months ago (2013-03-14 15:03:15 UTC) #25
leozwang1
The main change in patch 11 is moving SetAudioMode to audio_manager_base, please take a look. ...
7 years, 9 months ago (2013-03-19 23:57:32 UTC) #26
leozwang1
sorry for the delay, please take a look as soon as you can, I want ...
7 years, 9 months ago (2013-03-20 00:14:30 UTC) #27
Ami GONE FROM CHROMIUM
https://chromiumcodereview.appspot.com/12571006/diff/74001/media/audio/audio_manager_base.cc File media/audio/audio_manager_base.cc (right): https://chromiumcodereview.appspot.com/12571006/diff/74001/media/audio/audio_manager_base.cc#newcode132 media/audio/audio_manager_base.cc:132: if (num_input_streams_) I don't get it - here you're ...
7 years, 9 months ago (2013-03-20 00:30:27 UTC) #28
Ami GONE FROM CHROMIUM
LGTM
7 years, 9 months ago (2013-03-20 00:45:00 UTC) #29
leozwang1
Yaron and Min, do you have more comments?
7 years, 9 months ago (2013-03-20 00:49:22 UTC) #30
qinmin
lgtm to me On 2013/03/20 00:49:22, leozwang1 wrote: > Yaron and Min, do you have ...
7 years, 9 months ago (2013-03-20 00:52:40 UTC) #31
Yaron
lgtm
7 years, 9 months ago (2013-03-20 00:59:57 UTC) #32
qinmin
please make sure this change cherrypicked into m26, or the permission change I made will ...
7 years, 9 months ago (2013-03-20 01:00:14 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12571006/86002
7 years, 9 months ago (2013-03-20 01:04:24 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12571006/51013
7 years, 9 months ago (2013-03-20 03:18:18 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/leozwang@chromium.org/12571006/88004
7 years, 9 months ago (2013-03-20 04:01:57 UTC) #36
wjia(left Chromium)
7 years, 9 months ago (2013-03-21 04:31:21 UTC) #37

Powered by Google App Engine
This is Rietveld 408576698