Lines Matching refs:i
73 for ( int i = 0; i < pStreamCnt; i++ ) in test()
75 oRandom.nextBytes (pBytesOut[i]); in test()
76 oStream[i] = m_xMSF.createInstance ( "com.sun.star.io.TempFile" ); in test()
77 xTempStream[i] = UnoRuntime.queryInterface(XTempFile.class, oStream[i]); in test()
78 xTempStream[i].getOutputStream ().writeBytes (pBytesOut[i]); in test()
79 xTempStream[i].seek (0); in test()
80 m_aTestHelper.Message ( "Substream " + i + " initialized." ); in test()
81 if (xOLESimpleStorage.hasByName (sSubStreamPrefix + i)) in test()
83 xOLESimpleStorage.replaceByName ( sSubStreamPrefix + i, xTempStream[i] ); in test()
87 xOLESimpleStorage.insertByName ( sSubStreamPrefix + i, xTempStream[i] ); in test()
88 m_aTestHelper.Message ( "Substream " + i + " inserted." ); in test()
96 for ( int i = 0; i < pStreamCnt; ++i ) in test()
98 xTempStream[i].setRemoveFile ( true ); in test()
99 xTempStream[i].getInputStream ().closeInput (); in test()
100 xTempStream[i].getOutputStream ().closeOutput (); in test()
112 for ( int i = 0; i < pStreamCnt; ++i ) in test()
114 if ( xOLESimpleStorage.hasByName (sSubStreamPrefix + i) ) in test()
116 …xTempStream[i] = UnoRuntime.queryInterface(XTempFile.class, xOLESimpleStorage.getByName(sSubStream… in test()
117 xTempStream[i].seek (0); in test()
118 … xTempStream[i].getInputStream ().readBytes (pBytesIn[i], pBytesIn[i][0].length + 1 ); in test()
121 if ( pBytesIn[i][0][j] != pBytesOut[i][j] ) in test()
123 … m_aTestHelper.Error ( "Stream " + i + " byte " + j + ": INCORRECT DATA!"); in test()
128 m_aTestHelper.Message ( "Stream " + i + " byte " + j + ": CORRECT." ); in test()
134 m_aTestHelper.Error( "Stream " + i + " is lost!"); in test()