aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/compat
diff options
context:
space:
mode:
authorKen Wakasa <kwakasa@google.com>2012-12-17 02:51:37 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-12-17 02:51:37 -0800
commit47622165f1a40c903516c97473899c9d3b198dbc (patch)
treef3e77d2e15200009ac0f4b294c960857d731aaaf /java/src/com/android/inputmethod/compat
parente31cd2f45334ab75e3b16062659eb32cc629f4cf (diff)
parente57e9fbd18a572c6fb4c7ac385a12ec4ca984f74 (diff)
downloadlatinime-47622165f1a40c903516c97473899c9d3b198dbc.tar.gz
latinime-47622165f1a40c903516c97473899c9d3b198dbc.tar.xz
latinime-47622165f1a40c903516c97473899c9d3b198dbc.zip
am e57e9fbd: Merge "Remove AudioManagerCompatWrapper.java"
* commit 'e57e9fbd18a572c6fb4c7ac385a12ec4ca984f74': Remove AudioManagerCompatWrapper.java
Diffstat (limited to 'java/src/com/android/inputmethod/compat')
-rw-r--r--java/src/com/android/inputmethod/compat/AudioManagerCompatWrapper.java54
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);
- }
-}