Lines Matching refs:arr

818     protected int encodeUint32(int uint32Val, byte[] arr, int start) {
830 if (arr == null) return encodeLen;
840 arr[start + i] = (byte) (val & 0xFF);
846 protected int encodeShortInt(int sintVal, byte[] arr, int start) {
851 arr[start] = (byte) (sintVal | 0x80);
859 protected void createRandomWspHeader(byte[] arr, Random rd, int headerStart,
866 Log.d(LOG_TAG, "random arr length:" + arr.length);
872 int len = arr.length;
908 arr[index] = (byte) (0x80 | rd.nextInt(128));
909 } while (arr[index] == (byte) 0xaf);
912 arr[index] = (byte) 0xaf;
914 if (noAppId) arr[index]++;
918 arr[index] = (byte) (add - 1);
923 arr[index + i] = (byte) tmpVal;
926 if (tmpVal2 == 0x2f) arr[index + 1]++;
932 arr[index + i] = (byte) tmpVal;
934 arr[index + i] = (byte) 0x0;
943 System.out.print(Integer.toHexString(0xff & arr[i]));
947 System.out.print(Integer.toHexString(0xff & arr[index]));
949 String str = new String(arr, index + 1, add - 2);
1001 arr[index] = (byte) (0x80 | rd.nextInt(128));
1008 arr[index] = (byte) (add - 1);
1011 arr[index + i - 1] = (byte) (tmpVal & 0xff);
1015 arr[index] = (byte) (add - 1);
1017 arr[index + i] = (byte) rd.nextInt(255);
1025 arr[index + i] = (byte) tmpVal;
1027 arr[index + i] = (byte) 0x0;
1030 arr[index] = (byte) 31;
1033 encodeUint32(tmpVal, arr, index + 1);
1043 System.out.print(Integer.toHexString(0xff & arr[i]));
1047 System.out.print(Integer.toHexString(0xff & arr[index]));
1049 String str = new String(arr, index + 1, add - 2);
1062 Log.d(LOG_TAG, HexDump.dumpHexString(arr));
1068 protected void createRandomWspHeaderStrAppId(byte[] arr, Random rd, int headerStart,
1073 Log.d(LOG_TAG, "random arr length:" + arr.length);
1079 int len = arr.length;
1115 arr[index] = (byte) (0x80 | rd.nextInt(128));
1116 } while (arr[index] == (byte) 0xaf);
1119 arr[index] = (byte) 0xaf;
1123 arr[index] = (byte) (add - 1);
1128 arr[index + i] = (byte) tmpVal;
1131 if (tmpVal2 == 0x2f) arr[index + 1]++;
1137 arr[index + i] = (byte) tmpVal;
1139 arr[index + i] = (byte) 0x0;
1148 System.out.print(Integer.toHexString(0xff & arr[i]));
1152 System.out.print(Integer.toHexString(0xff & arr[index]));
1154 String str = new String(arr, index + 1, add - 2);
1209 arr[index] = (byte) (0x80 | rd.nextInt(128));
1212 arr[index] = (byte) (add - 1);
1214 arr[index + i] = (byte) rd.nextInt(255);
1221 arr[index + i] = (byte) (mAppIdName.charAt(i));
1228 arr[index + i] = (byte) tmpVal;
1231 arr[index + i] = (byte) 0x0;
1234 arr[index] = (byte) 31;
1237 encodeUint32(tmpVal, arr, index + 1);
1247 System.out.print(Integer.toHexString(0xff & arr[i]));
1251 System.out.print(Integer.toHexString(0xff & arr[index]));
1253 String str = new String(arr, index + 1, add - 2);
1266 Log.d(LOG_TAG, HexDump.dumpHexString(arr));
1918 byte[] arr = new byte[20];
1920 index += encodeUint32(0x87a5, arr, index);
1921 index += encodeUint32(0x1, arr, index);
1922 index += encodeUint32(0x9b, arr, index);
1923 index += encodeUint32(0x10, arr, index);
1924 index += encodeUint32(0xe0887, arr, index);
1925 index += encodeUint32(0x791a23d0, arr, index);
1927 Log.d(LOG_TAG, HexDump.dumpHexString(arr));