Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion external/Java.Interop
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ This file is only used by binding projects.
Outputs="$(ApiOutputFile)">

<ItemGroup>
<!-- TODO: add when `ClassPath` supports `<api api-source="java-source-utils">`
<_AndroidDocumentationPath Include="@(_JavaSourceJavadocXml)" />
-->
<_AndroidDocumentationPath Include="@(JavaDocIndex->'%(RootDir)\%(Directory)')" />
<_AndroidDocumentationPath Include="$(JavaDocPaths)" />
<_AndroidDocumentationPath Include="$(Java7DocPaths)" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ public void Arrays ()
{
using (var dh = new Com.Xamarin.Android.DataHandler ()) {
EventHandler<Com.Xamarin.Android.DataEventArgs> h = (o, e) => {
Assert.AreEqual ("fromNode", e.P0);
Assert.AreEqual ("fromChannel", e.P1);
Assert.AreEqual ("payloadType", e.P2);
for (int i = 0; i < e.P3.Length; ++i) {
for (int j = 0; j < e.P3 [i].Length; ++j) {
Assert.AreEqual ("fromNode", e.FromNode);
Assert.AreEqual ("fromChannel", e.FromChannel);
Assert.AreEqual ("payloadType", e.PayloadType);
for (int i = 0; i < e.Payload.Length; ++i) {
for (int j = 0; j < e.Payload [i].Length; ++j) {
byte expected = (byte) (((i+1)*10) + (j+1));
Assert.AreEqual ((byte)(expected + 'J'), e.P3 [i][j]);
e.P3 [i][j] = expected;
Assert.AreEqual ((byte)(expected + 'J'), e.Payload [i][j]);
e.Payload [i][j] = expected;
}
}
};
Expand Down