Marco Nelissen
9267280700
Move MidiDeviceInfo to libamidi, its only user
...
This removes the libmedia dependency from libamidi, and reduces
overall size.
Test: build
Change-Id: I16b62ef8288bc68a46ae9ac6318efb95fa469e4f
2019-10-22 13:50:34 -07:00
dimitry
4f16e85d2f
Apply version script to libamidi.so
...
Hide unintentionally exported symbols, validate that symbols
mentioned in the map file are actually exported by the library.
Bug: http://b/69603741
Test: make
Change-Id: I53deafa7d730944eaccc044be44f535c720a2985
2019-08-26 18:38:50 +02:00
Paul McLean
5090a6d6b7
Fix b/138659536 - [All] RVC - CTS : 9 CtsNativeMidiTestCases are failing
...
Bug: 138659536
Test: build, install, run CTS tests, pass
Change-Id: I8eeb88642c1d8d151c6c133ee133342b4ff7f0ef
2019-08-05 12:30:56 -06:00
Elliott Hughes
4797e71982
Add __ANDROID_API__ guard for midi.h
...
Bug: http://b/111668906
Test: builds
Change-Id: Ie80046845ced7aaf6b8c6739ff3e28d2e149a142
2019-07-22 16:39:52 -07:00
Paul McLean
6faa372212
Adding "@defgroup" DOxygen tag to AMidi
...
Bug: 122672555
Test: Build DOxygen docs
Change-Id: I2022facfab601da63a64682188d31821b33bb8cc
2019-03-13 14:24:06 -06:00
TreeHugger Robot
9d12161fe5
Merge "Rename instances of "midi" to "AMidi"."
2019-02-13 16:37:04 +00:00
Paul McLean
f79b8d1e8e
Rename instances of "midi" to "AMidi".
...
Bug: 124002441
Test: Builds OK
Change-Id: I7cdeae9b72f9f7e3f2f815bc83959dba72059f75
2019-02-12 14:08:00 -08:00
Paul McLean
141b64ffb0
Generate DOxygen documentation
...
Bug: 122672555
Test: Generate docs, open in Chrome, examine.
Change-Id: I5905cb39782618bf853d24b37eb4d14505e6dd7f
2019-01-31 13:30:08 -07:00
Mikhail Naganov
25f51c6ab9
NativeMIDI: Fix access to unaligned 64-bit data
...
Accessing unaligned 64-bit data in 32-bit ARM code leads
to SIGBUS / BUS_ADRALN fault. Since the timestamp position
in the message buffer is arbitrary, use memcpy to copy
it to the output argument.
Bug: 114123427
Test: 32-bit android.nativemidi.cts.NativeMidiEchoTest
Change-Id: I0cb08cb0b124e3f4a05ea19bf91f40081a584a2e
2018-11-07 09:41:45 -08:00
Elliott Hughes
c73a4671dd
Add __INTRODUCED_IN annotations to <amidi/midi.h>.
...
Bug: https://github.com/android-ndk/ndk/issues/706
Test: builds
Change-Id: I3f68f1e7c407b1208e943d15f74a9f32846a04b6
2018-06-18 12:17:17 -07:00
Paul McLean
84b49130ff
Moving native MIDI JNI init to AndroidRuntime.cpp.
...
Remove (non-working) lazy init in midi.cpp
Bug: 79464070
Test: Verify function with NativeMidiTestbed app.
Change-Id: I30182d19d205b4ab952d622824f1a63ab1fef72e
2018-05-11 09:10:38 -07:00
Paul McLean
8a3e33b36a
(re)integrating Native MIDI API into NDK - base API
...
Implement native MIDI API (amidi)
Bug: 30252756
Bug: 37090545
Test: manual - Connect PreSonus AudioBox 22VSL and run tests in NativeMidiTestbed app.
Verify MIDI messages sent to external MIDI synthesizer.
Verify MIDI messages received from external MIDI synthesizer.
CTS
Change-Id: I7bb02b8926d01090132ce873c785b5323a9fa5f8
2018-03-15 16:20:07 -07:00
Colin Cross
76de4f6b4d
Convert libmedia_jni to Android.bp
...
See build/soong/README.md for more information.
Test: m -j checkbuild
Change-Id: I1817c75ee45537ca0d5fc40a035f94a3dfeccc11
2017-05-16 13:07:57 -07:00
Paul McLean
71f672b98a
Switching Native MIDI API to an "opaque pointers" model.
...
Test: manual
Change-Id: Ic181008427e6e81106d867cc3a70deef8c591841
2017-03-10 15:54:16 -07:00
Mikhail Naganov
c276c59eb5
nativemidi: Prototype demonstrating native access to IMidiDeviceServer
...
Framework changes and a demo app
Comment and finalized Native MIDI API
Replaced fixed PortRegistry tables with std::map.
more error handling.
Removed not-very-useful MidiDeviceManager class.
Made Java API functions @hide.
Bug: 30252756
Test: Manual
Change-Id: Iae98e589f38ef6d625ff0842401193fe98c5d881
2017-03-03 12:00:33 -07:00