Home | History | Annotate | Download | only in tests

Lines Matching refs:mLog

51     private TestLogger mLog;
57 mLog = new TestLogger(this);
58 mLog.log("Reading sentinels from intent...");
64 mLog.close();
73 mLog.logAndThrow("Failed to obtain binder...");
77 mLog.logAndThrow("Failed to cast IBinder instance.");
84 mLog.log("Checking that service can repeat primitives back...");
90 mLog.logAndThrow("Repeat with " + query +
98 mLog.logAndThrow("Repeat with " + query +
106 mLog.logAndThrow("Repeat with " + query +
114 mLog.logAndThrow("Repeat with " + query +
130 mLog.logAndThrow("Repeat with " + query[i] +
139 mLog.logAndThrow("Repeat with " + query +
147 mLog.logAndThrow("Repeat with " + query +
155 mLog.logAndThrow("Repeat with " + query +
166 mLog.logAndThrow("Repeat with " + query +
178 mLog.logAndThrow("Repeat request with '" + query + "'" +
185 mLog.log(ex.toString());
186 mLog.logAndThrow("Service failed to repeat a primitive back.");
188 mLog.log("...Basic primitive repeating works.");
193 mLog.log("Checking that service can reverse and return arrays...");
200 mLog.logAndThrow("Failed to echo input array back.");
203 mLog.logAndThrow("Reversed array is the wrong size.");
208 mLog.logAndThrow(
219 mLog.logAndThrow("Failed to echo input array back.");
222 mLog.logAndThrow("Reversed array is the wrong size.");
227 mLog.logAndThrow(
238 mLog.logAndThrow("Failed to echo input array back.");
241 mLog.logAndThrow("Reversed array is the wrong size.");
246 mLog.logAndThrow(
257 mLog.logAndThrow("Failed to echo input array back.");
260 mLog.logAndThrow("Reversed array is the wrong size.");
265 mLog.logAndThrow(
276 mLog.logAndThrow("Failed to echo input array back.");
279 mLog.logAndThrow("Reversed array is the wrong size.");
284 mLog.logAndThrow(
295 mLog.logAndThrow("Failed to echo input array back.");
298 mLog.logAndThrow("Reversed array is the wrong size.");
303 mLog.logAndThrow(
314 mLog.logAndThrow("Failed to echo input array back.");
317 mLog.logAndThrow("Reversed array is the wrong size.");
322 mLog.logAndThrow(
333 mLog.logAndThrow("Failed to echo input array back.");
336 mLog.logAndThrow("Reversed array is the wrong size.");
341 mLog.logAndThrow(
348 mLog.log(ex.toString());
349 mLog.logAndThrow("Service failed to reverse an array.");
351 mLog.log("...service can reverse and return arrays.");
356 mLog.log("Checking exchange of binders...");
359 mLog.log("Received test service");
363 mLog.logAndThrow("Tried to get service with name 'Smythe'" +
368 mLog.logAndThrow("Test service could not verify name of 'Smythe'");
371 mLog.log(ex.toString());
372 mLog.logAndThrow("Service failed to exchange binders.");
374 mLog.log("...Exchange of binders works");
379 mLog.log("Checking that service can reverse and return lists...");
386 mLog.logAndThrow("Failed to echo input List<String> back.");
390 mLog.logAndThrow("Reversed list is not correct.");
394 mLog.log(ex.toString());
395 mLog.logAndThrow("Service failed to reverse an List<String>.");
397 mLog.log("...service can reverse and return lists.");
402 mLog.log("Checking that service can repeat and reverse SimpleParcelable objects...");
410 mLog.log(input.toString() + " != " + out_param.toString());
411 mLog.logAndThrow("out param SimpleParcelable was not equivalent");
414 mLog.log(input.toString() + " != " + returned.toString());
415 mLog.logAndThrow("returned SimpleParcelable was not equivalent");
427 mLog.logAndThrow(
431 mLog.logAndThrow(
438 mLog.log(input[i].toString() + " != " +
440 mLog.logAndThrow("reversed SimpleParcelable was not equivalent");
445 mLog.log(ex.toString());
446 mLog.logAndThrow("Service failed to handle SimpleParcelable objects.");
448 mLog.log("...service can manipulate SimpleParcelable objects.");
453 mLog.log("Checking that service can repeat and reverse PersistableBundle objects...");
459 mLog.log(emptyBundle.toString() + " != " + returned.toString());
460 mLog.logAndThrow("returned empty PersistableBundle object was not equivalent");
462 mLog.log("...service can repeat and reverse empty PersistableBundle objects...");
516 mLog.log(nonEmptyBundle.toString() + " != " + returned.toString());
517 mLog.logAndThrow("returned non-empty PersistableBundle " +
521 mLog.log("...service can repeat and reverse non-empty " +
542 mLog.logAndThrow("Repeated list of PersistableBundle objects had " +
548 mLog.logAndThrow("Repeated list of PersistableBundle objects did not match.");
551 mLog.logAndThrow("Reversed list of PersistableBundle objects had " +
557 mLog.logAndThrow("reversed PersistableBundle objects were not equivalent");
559 mLog.log("...service can repeat and reverse arrays of " +
563 mLog.log(ex.toString());
564 mLog.logAndThrow("Service failed to handle PersistableBundle objects.");
566 mLog.log("...service can manipulate PersistableBundle objects.");
571 mLog.log("Checking that service can receive and return file descriptors...");
590 mLog.logAndThrow("Read short count from file");
594 mLog.logAndThrow("Read incorrect data");
597 mLog.log(ex.toString());
598 mLog.logAndThrow("Service failed to repeat a file descriptor.");
600 mLog.log(ex.toString());
601 mLog.logAndThrow("Exception while operating on temporary file");
603 mLog.log("...service can receive and return file descriptors.");
608 mLog.log("Checking application exceptions...");
613 mLog.logAndThrow("Service threw RemoteException: " +
617 mLog.logAndThrow("Service threw wrong error code: " + i);
621 mLog.log("...application exceptions work");
626 mLog.log("Checking that service can work with UTF8 strings...");
646 mLog.logAndThrow("Repeat request with '" + query + "'" +
657 mLog.logAndThrow("Failed to echo utf8 input array back.");
660 mLog.logAndThrow("Reversed utf8 array is the wrong size.");
665 mLog.logAndThrow(
677 mLog.logAndThrow("Failed to echo utf8 input array back.");
680 mLog.logAndThrow("Reversed utf8 array is the wrong size.");
689 mLog.logAndThrow(
696 mLog.log(ex.toString());
697 mLog.logAndThrow("Service failed to handle utf8 strings.");
699 mLog.log("...UTF8 annotations work.");
718 new NullableTests(service, mLog).runTests();
720 mLog.log(mSuccessSentinel);
722 mLog.log(mFailureSentinel);
725 if (mLog != null) {
726 mLog.close();