Home | History | Annotate | Download | only in src

Lines Matching defs:checks

226         String[] checks = mChecker.getChecks(cfunc.getName());
228 if (checks != null) {
229 while (index < checks.length) {
230 if (checks[index].equals("nullAllowed")) {
233 index = skipOneCheck(checks, index);
241 String[] checks = mChecker.getChecks(cfunc.getName());
243 if (checks != null) {
244 while (index < checks.length) {
245 if (checks[index].startsWith("check")) {
248 index = skipOneCheck(checks, index);
256 String[] checks = mChecker.getChecks(cfunc.getName());
258 if (checks != null) {
259 while (index < checks.length) {
260 if (checks[index].startsWith("ifcheck")) {
263 index = skipOneCheck(checks, index);
270 int skipOneCheck(String[] checks, int index) {
271 if (checks[index].equals("return")) {
273 } else if (checks[index].startsWith("check")) {
275 } else if (checks[index].startsWith("sentinel")) {
277 } else if (checks[index].equals("ifcheck")) {
279 } else if (checks[index].equals("unsupported")) {
281 } else if (checks[index].equals("requires")) {
283 } else if (checks[index].equals("nullAllowed")) {
287 checks[index] + "\"");
305 String[] checks = mChecker.getChecks(cfunc.getName());
308 if (checks != null) {
309 while (index < checks.length) {
310 if (checks[index].equals("return")) {
311 return checks[index + 1];
313 index = skipOneCheck(checks, index);
322 String[] checks = mChecker.getChecks(cfunc.getName());
324 if (checks != null) {
325 while (index < checks.length) {
326 if (checks[index].equals("unsupported")) {
329 index = skipOneCheck(checks, index);
337 String[] checks = mChecker.getChecks(cfunc.getName());
339 if (checks != null) {
340 while (index < checks.length) {
341 if (checks[index].equals("requires")) {
342 return checks[index+1];
344 index = skipOneCheck(checks, index);
354 String[] checks = mChecker.getChecks(cfunc.getName());
359 if (checks != null) {
360 while (index < checks.length) {
361 if (checks[index].startsWith("check")) {
367 if (cname != null && !cname.equals(checks[index + 1])) {
371 out.println(iii + "if (" + remaining + " < " + checks[index + 2] + ") {");
377 int underscore = checks[index].indexOf('_');
379 String abbr = checks[index].substring(underscore + 1);
391 offset) + " < " + checks[index + 2] +
400 } else if (checks[index].equals("ifcheck")) {
401 String[] matches = checks[index + 4].split(",");
405 out.println(iii + "switch (" + checks[index + 3] + ") {");
413 out.println(iii + " _needed = " + checks[index + 2] + ";");
419 index = skipOneCheck(checks, index);
432 String[] checks = mChecker.getChecks(cfunc.getName());
435 if (checks != null) {
436 while (index < checks.length) {
437 if (checks[index].startsWith("sentinel")) {
438 if (cname != null && !cname.equals(checks[index + 1])) {
447 "[i] == " + checks[index + 2] + "){");
459 " must contain " + checks[index + 2] + "!\";");
466 index = skipOneCheck(checks, index);
474 String[] checks = mChecker.getChecks(cfunc.getName());
477 if (checks != null) {
478 while (index < checks.length) {
479 if (checks[index].startsWith("sentinel")) {
480 String cname = checks[index + 1];
486 index = skipOneCheck(checks, index);
942 // Emit an _exeption variable if there will be error checks
1003 // Emit local variable declarations for element/sentinel checks
1065 // Null pointer checks and GetStringUTFChars