コード例 #1
0
ファイル: GetSetTest.java プロジェクト: jpxiong/platform_cts
  public void testGetSet_short2() {
    testSetup(Element.I16_2(mRS));
    short tmp[] = randomShortArray(gCount);
    short tmp2[] = new short[gCount];
    script.forEach_copy1D_short2(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch short2: ", 2);
    scriptRelaxed.forEach_copy1D_short2(walkAlloc);
    verify(tmp, tmp2, out1DAlloc, "Data mismatch relaxed short2: ", 2);

    script.forEach_copy2D_short2(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch short2: ", 2);
    scriptRelaxed.forEach_copy2D_short2(walkAlloc);
    verify(tmp, tmp2, out2DAlloc, "Data mismatch relaxed short2: ", 2);

    script.forEach_copy3D_short2(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch short2: ", 2);
    scriptRelaxed.forEach_copy3D_short2(walkAlloc);
    verify(tmp, tmp2, out3DAlloc, "Data mismatch relaxed short2: ", 2);
  }