OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 package org.chromium.media.midi; | 5 package org.chromium.midi; |
6 | 6 |
7 import android.annotation.TargetApi; | 7 import android.annotation.TargetApi; |
8 import android.media.midi.MidiDevice; | 8 import android.media.midi.MidiDevice; |
9 import android.media.midi.MidiDeviceInfo; | 9 import android.media.midi.MidiDeviceInfo; |
10 import android.os.Build; | 10 import android.os.Build; |
11 | 11 |
12 import org.chromium.base.annotations.CalledByNative; | 12 import org.chromium.base.annotations.CalledByNative; |
13 import org.chromium.base.annotations.JNINamespace; | 13 import org.chromium.base.annotations.JNINamespace; |
14 | 14 |
15 @JNINamespace("media::midi") | 15 @JNINamespace("midi") |
16 /** | 16 /** |
17 * A class implementing media::midi::MidiDeviceAndroid functionality. | 17 * A class implementing midi::MidiDeviceAndroid functionality. |
18 */ | 18 */ |
19 @TargetApi(Build.VERSION_CODES.M) | 19 @TargetApi(Build.VERSION_CODES.M) |
20 class MidiDeviceAndroid { | 20 class MidiDeviceAndroid { |
21 /** | 21 /** |
22 * The underlying device. | 22 * The underlying device. |
23 */ | 23 */ |
24 private final MidiDevice mDevice; | 24 private final MidiDevice mDevice; |
25 /** | 25 /** |
26 * The input ports in the device. | 26 * The input ports in the device. |
27 */ | 27 */ |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 */ | 126 */ |
127 @CalledByNative | 127 @CalledByNative |
128 MidiOutputPortAndroid[] getOutputPorts() { | 128 MidiOutputPortAndroid[] getOutputPorts() { |
129 return mOutputPorts; | 129 return mOutputPorts; |
130 } | 130 } |
131 | 131 |
132 private String getProperty(String name) { | 132 private String getProperty(String name) { |
133 return mDevice.getInfo().getProperties().getString(name); | 133 return mDevice.getInfo().getProperties().getString(name); |
134 } | 134 } |
135 } | 135 } |
OLD | NEW |