Index: media/midi/usb_midi_device_android.cc |
diff --git a/media/midi/usb_midi_device_android.cc b/media/midi/usb_midi_device_android.cc |
index f62eb86eb545eb797b6b00ed75ca77aff9559668..640ef22278be020a953e4b3ea79279b184de9fdc 100644 |
--- a/media/midi/usb_midi_device_android.cc |
+++ b/media/midi/usb_midi_device_android.cc |
@@ -20,8 +20,8 @@ UsbMidiDeviceAndroid::UsbMidiDeviceAndroid(ObjectRef raw_device, |
UsbMidiDeviceDelegate* delegate) |
: raw_device_(raw_device), delegate_(delegate) { |
JNIEnv* env = base::android::AttachCurrentThread(); |
- Java_UsbMidiDeviceAndroid_registerSelf( |
- env, raw_device_.obj(), reinterpret_cast<jlong>(this)); |
+ midi::Java_UsbMidiDeviceAndroid_registerSelf(env, raw_device_.obj(), |
+ reinterpret_cast<jlong>(this)); |
GetDescriptorsInternal(); |
InitDeviceInfo(); |
@@ -29,7 +29,7 @@ UsbMidiDeviceAndroid::UsbMidiDeviceAndroid(ObjectRef raw_device, |
UsbMidiDeviceAndroid::~UsbMidiDeviceAndroid() { |
JNIEnv* env = base::android::AttachCurrentThread(); |
- Java_UsbMidiDeviceAndroid_close(env, raw_device_.obj()); |
+ midi::Java_UsbMidiDeviceAndroid_close(env, raw_device_.obj()); |
} |
std::vector<uint8> UsbMidiDeviceAndroid::GetDescriptors() { |
@@ -55,8 +55,8 @@ void UsbMidiDeviceAndroid::Send(int endpoint_number, |
ScopedJavaLocalRef<jbyteArray> data_to_pass = |
base::android::ToJavaByteArray(env, head, data.size()); |
- Java_UsbMidiDeviceAndroid_send( |
- env, raw_device_.obj(), endpoint_number, data_to_pass.obj()); |
+ midi::Java_UsbMidiDeviceAndroid_send(env, raw_device_.obj(), endpoint_number, |
+ data_to_pass.obj()); |
} |
void UsbMidiDeviceAndroid::OnData(JNIEnv* env, |
@@ -72,13 +72,13 @@ void UsbMidiDeviceAndroid::OnData(JNIEnv* env, |
} |
bool UsbMidiDeviceAndroid::RegisterUsbMidiDevice(JNIEnv* env) { |
- return RegisterNativesImpl(env); |
+ return midi::RegisterNativesImpl(env); |
} |
void UsbMidiDeviceAndroid::GetDescriptorsInternal() { |
JNIEnv* env = base::android::AttachCurrentThread(); |
base::android::ScopedJavaLocalRef<jbyteArray> descriptors = |
- Java_UsbMidiDeviceAndroid_getDescriptors(env, raw_device_.obj()); |
+ midi::Java_UsbMidiDeviceAndroid_getDescriptors(env, raw_device_.obj()); |
base::android::JavaByteArrayToByteVector(env, descriptors.obj(), |
&descriptors_); |
@@ -111,8 +111,8 @@ void UsbMidiDeviceAndroid::InitDeviceInfo() { |
std::vector<uint8> UsbMidiDeviceAndroid::GetStringDescriptor(int index) { |
JNIEnv* env = base::android::AttachCurrentThread(); |
base::android::ScopedJavaLocalRef<jbyteArray> descriptors = |
- Java_UsbMidiDeviceAndroid_getStringDescriptor(env, raw_device_.obj(), |
- index); |
+ midi::Java_UsbMidiDeviceAndroid_getStringDescriptor( |
+ env, raw_device_.obj(), index); |
std::vector<uint8> ret; |
base::android::JavaByteArrayToByteVector(env, descriptors.obj(), &ret); |