Lines Matching defs:arr

837     protected int encodeUint32(int uint32Val, byte[] arr, int start) {
849 if (arr == null) return encodeLen;
859 arr[start + i] = (byte) (val & 0xFF);
865 protected int encodeShortInt(int sintVal, byte[] arr, int start) {
870 arr[start] = (byte) (sintVal | 0x80);
878 protected void createRandomWspHeader(byte[] arr, Random rd, int headerStart,
885 Log.d(LOG_TAG, "random arr length:" + arr.length);
891 int len = arr.length;
927 arr[index] = (byte) (0x80 | rd.nextInt(128));
928 } while (arr[index] == (byte) 0xaf);
931 arr[index] = (byte) 0xaf;
933 if (noAppId) arr[index]++;
937 arr[index] = (byte) (add - 1);
942 arr[index + i] = (byte) tmpVal;
945 if (tmpVal2 == 0x2f) arr[index + 1]++;
951 arr[index + i] = (byte) tmpVal;
953 arr[index + i] = (byte) 0x0;
962 System.out.print(Integer.toHexString(0xff & arr[i]));
966 System.out.print(Integer.toHexString(0xff & arr[index]));
968 String str = new String(arr, index + 1, add - 2);
1020 arr[index] = (byte) (0x80 | rd.nextInt(128));
1027 arr[index] = (byte) (add - 1);
1030 arr[index + i - 1] = (byte) (tmpVal & 0xff);
1034 arr[index] = (byte) (add - 1);
1036 arr[index + i] = (byte) rd.nextInt(255);
1044 arr[index + i] = (byte) tmpVal;
1046 arr[index + i] = (byte) 0x0;
1049 arr[index] = (byte) 31;
1052 encodeUint32(tmpVal, arr, index + 1);
1062 System.out.print(Integer.toHexString(0xff & arr[i]));
1066 System.out.print(Integer.toHexString(0xff & arr[index]));
1068 String str = new String(arr, index + 1, add - 2);
1081 Log.d(LOG_TAG, HexDump.dumpHexString(arr));
1087 protected void createRandomWspHeaderStrAppId(byte[] arr, Random rd, int headerStart,
1092 Log.d(LOG_TAG, "random arr length:" + arr.length);
1098 int len = arr.length;
1134 arr[index] = (byte) (0x80 | rd.nextInt(128));
1135 } while (arr[index] == (byte) 0xaf);
1138 arr[index] = (byte) 0xaf;
1142 arr[index] = (byte) (add - 1);
1147 arr[index + i] = (byte) tmpVal;
1150 if (tmpVal2 == 0x2f) arr[index + 1]++;
1156 arr[index + i] = (byte) tmpVal;
1158 arr[index + i] = (byte) 0x0;
1167 System.out.print(Integer.toHexString(0xff & arr[i]));
1171 System.out.print(Integer.toHexString(0xff & arr[index]));
1173 String str = new String(arr, index + 1, add - 2);
1228 arr[index] = (byte) (0x80 | rd.nextInt(128));
1231 arr[index] = (byte) (add - 1);
1233 arr[index + i] = (byte) rd.nextInt(255);
1240 arr[index + i] = (byte) (mAppIdName.charAt(i));
1247 arr[index + i] = (byte) tmpVal;
1250 arr[index + i] = (byte) 0x0;
1253 arr[index] = (byte) 31;
1256 encodeUint32(tmpVal, arr, index + 1);
1266 System.out.print(Integer.toHexString(0xff & arr[i]));
1270 System.out.print(Integer.toHexString(0xff & arr[index]));
1272 String str = new String(arr, index + 1, add - 2);
1285 Log.d(LOG_TAG, HexDump.dumpHexString(arr));
1937 byte[] arr = new byte[20];
1939 index += encodeUint32(0x87a5, arr, index);
1940 index += encodeUint32(0x1, arr, index);
1941 index += encodeUint32(0x9b, arr, index);
1942 index += encodeUint32(0x10, arr, index);
1943 index += encodeUint32(0xe0887, arr, index);
1944 index += encodeUint32(0x791a23d0, arr, index);
1946 Log.d(LOG_TAG, HexDump.dumpHexString(arr));