diff options
author | 2012-12-17 18:27:20 +0900 | |
---|---|---|
committer | 2012-12-17 18:27:20 +0900 | |
commit | 1e6edb3e5728f82d45bc2677fd72aa654b37ee73 (patch) | |
tree | b97f14bc5a1af85555ca9c2743d140a20e8f8197 /java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java | |
parent | 96b22200beb98fd1a6288f4cf53e38611a09cdd0 (diff) | |
download | latinime-1e6edb3e5728f82d45bc2677fd72aa654b37ee73.tar.gz latinime-1e6edb3e5728f82d45bc2677fd72aa654b37ee73.tar.xz latinime-1e6edb3e5728f82d45bc2677fd72aa654b37ee73.zip |
Remove AudioManagerCompatWrapper.java
It is actually no longer needed for API 14+
Change-Id: I379809eae881351fdf210dd8eaa5e0b5662fb59f
Diffstat (limited to 'java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java')
-rw-r--r-- | java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java | 54 |
1 files changed, 0 insertions, 54 deletions
diff --git a/java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java b/java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java deleted file mode 100644 index 40eed91f2..000000000 --- a/java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright (C) 2011 The Android Open Source Project - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.android.inputmethod.compat; - -import android.media.AudioManager; - -import java.lang.reflect.Method; - -public final class AudioManagerCompatWrapper { - private static final Method METHOD_isWiredHeadsetOn = CompatUtils.getMethod( - AudioManager.class, "isWiredHeadsetOn"); - private static final Method METHOD_isBluetoothA2dpOn = CompatUtils.getMethod( - AudioManager.class, "isBluetoothA2dpOn"); - - private final AudioManager mManager; - - public AudioManagerCompatWrapper(AudioManager manager) { - mManager = manager; - } - - /** - * Checks whether audio routing to the wired headset is on or off. - * - * @return true if audio is being routed to/from wired headset; - * false if otherwise - */ - public boolean isWiredHeadsetOn() { - return (Boolean) CompatUtils.invoke(mManager, false, METHOD_isWiredHeadsetOn); - } - - /** - * Checks whether A2DP audio routing to the Bluetooth headset is on or off. - * - * @return true if A2DP audio is being routed to/from Bluetooth headset; - * false if otherwise - */ - public boolean isBluetoothA2dpOn() { - return (Boolean) CompatUtils.invoke(mManager, false, METHOD_isBluetoothA2dpOn); - } -} |