Home
last modified time | relevance | path

Searched refs:mLog (Results 1 – 25 of 34) sorted by relevance

12

/frameworks/base/tools/layoutlib/create/tests/com/android/tools/layoutlib/create/
DLogTest.java27 private MockLog mLog; field in LogTest
31 mLog = new MockLog(); in setUp()
41 assertEquals("", mLog.getOut()); in testDebug()
42 assertEquals("", mLog.getErr()); in testDebug()
44 mLog.setVerbose(false); in testDebug()
45 mLog.debug("Test %d", 42); in testDebug()
46 assertEquals("", mLog.getOut()); in testDebug()
48 mLog.setVerbose(true); in testDebug()
49 mLog.debug("Test %d", 42); in testDebug()
51 assertEquals("Test 42\n", mLog.getOut()); in testDebug()
[all …]
DAsmGeneratorTest.java59 private MockLog mLog; field in AsmGeneratorTest
69 mLog = new MockLog(); in setUp()
151 AsmGenerator agen = new AsmGenerator(mLog, mOsDestJar, ci); in testClassRenaming()
153 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, agen, in testClassRenaming()
231 AsmGenerator agen = new AsmGenerator(mLog, mOsDestJar, ci); in testClassRefactoring()
233 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, agen, in testClassRefactoring()
319 AsmGenerator agen = new AsmGenerator(mLog, mOsDestJar, ci); in testClassExclusion()
321 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, agen, in testClassExclusion()
403 AsmGenerator agen = new AsmGenerator(mLog, mOsDestJar, ci); in testMethodInjection()
404 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, agen, in testMethodInjection()
DDelegateClassAdapterTest.java54 private MockLog mLog; field in DelegateClassAdapterTest
63 mLog = new MockLog(); in setUp()
64 mLog.setVerbose(true); // capture debug error too in setUp()
92 mLog, cw, internalClassName, delegateMethods); in testNoOp()
156 mLog, cw, internalClassName, delegateMethods); in testConstructorsNotSupported()
170 mLog, cw, internalClassName, delegateMethods); in testDelegateNative()
226 mLog, cwOuter, outerClassName, delegateMethods); in testDelegateInner()
234 mLog, cwInner, innerClassName, delegateMethods); in testDelegateInner()
308 mLog, cwOuter, outerClassName, delegateMethods); in testDelegateStaticInner()
316 mLog, cwInner, innerClassName, delegateMethods); in testDelegateStaticInner()
DAsmAnalyzerTest.java44 private MockLog mLog; field in AsmAnalyzerTest
50 mLog = new MockLog(); in setUp()
60 mAa = new AsmAnalyzer(mLog, mOsJarPath, null /* gen */, null /* deriveFrom */, in setUp()
/frameworks/base/core/java/android/util/
DLocalLog.java30 private LinkedList<String> mLog; field in LocalLog
35 mLog = new LinkedList<String>(); in LocalLog()
46 mLog.add(sb.toString() + " - " + msg); in log()
47 while (mLog.size() > mMaxLines) mLog.remove(); in log()
52 Iterator<String> itr = mLog.listIterator(0); in dump()
59 for (int i = mLog.size() - 1; i >= 0; i--) { in reverseDump()
60 pw.println(mLog.get(i)); in reverseDump()
65 private final LocalLog mLog; field in LocalLog.ReadOnlyLocalLog
67 mLog = log; in ReadOnlyLocalLog()
70 mLog.dump(fd, pw, args); in dump()
/frameworks/base/services/tests/servicestests/src/android/net/metrics/
DIpConnectivityLogTest.java48 IpConnectivityLog mLog; field in IpConnectivityLogTest
53 mLog = new IpConnectivityLog(mService); in setUp()
57 assertTrue(mLog.log(1, FAKE_EV)); in testLogEvents()
58 assertTrue(mLog.log(2, FAKE_EV)); in testLogEvents()
59 assertTrue(mLog.log(3, FAKE_EV)); in testLogEvents()
70 assertFalse(mLog.log(1, FAKE_EV)); in testLogEventTriggerThrottling()
76 assertFalse(mLog.log(1, FAKE_EV)); in testLogEventFails()
84 assertFalse(mLog.log(1, FAKE_EV)); in testLogEventWhenThrottling()
85 assertFalse(mLog.log(2, FAKE_EV)); in testLogEventWhenThrottling()
95 assertFalse(mLog.log(1, FAKE_EV)); in testLogEventRecoverFromThrottling()
[all …]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DStartVoiceInteractionActivity.java38 TextView mLog; field in StartVoiceInteractionActivity
51 mLog = (TextView)findViewById(R.id.log); in onCreate()
63 mLog.append("Local Voice Interaction Supported = " + isLocalVoiceInteractionSupported()); in onCreate()
101 mLog.append("\nLocalVoiceInteraction started!"); in onLocalVoiceInteractionStarted()
108 mLog.append("\nLocalVoiceInteraction stopped!"); in onLocalVoiceInteractionStopped()
123 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Canceled abort\n"); in onCancel()
127 ((StartVoiceInteractionActivity)getActivity()).mLog.append( in onAbortResult()
139 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Canceled complete\n"); in onCancel()
143 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Complete: result=" in onCompleteResult()
155 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Canceled command\n"); in onCancel()
[all …]
DTestInteractionActivity.java42 TextView mLog; field in TestInteractionActivity
69 mLog = (TextView)findViewById(R.id.log); in onCreate()
115 mLog.append(cmds[i] + ": " + (sup[i] ? "SUPPORTED" : "NOT SUPPORTED") + "\n"); in onCreate()
177 ((TestInteractionActivity)getActivity()).mLog.append("Canceled abort\n"); in onCancel()
181 ((TestInteractionActivity)getActivity()).mLog.append("Abort: result=" + result + "\n"); in onAbortResult()
192 ((TestInteractionActivity)getActivity()).mLog.append("Canceled complete\n"); in onCancel()
196 ((TestInteractionActivity)getActivity()).mLog.append("Complete: result=" in onCompleteResult()
208 ((TestInteractionActivity)getActivity()).mLog.append("Canceled command\n"); in onCancel()
224 ((TestInteractionActivity)getActivity()).mLog.append(sb.toString()); in onCommandResult()
239 ((TestInteractionActivity)getActivity()).mLog.append("Canceled pick\n"); in onCancel()
[all …]
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/create/
DDependencyFinder.java55 private final Log mLog; field in DependencyFinder
63 mLog = log; in DependencyFinder()
76 mLog.info("Found %d classes in input JAR%s.", in findDeps()
102 mLog.info("++++++ %d Entries found in source JARs", deps.size()); in printAllDeps()
103 mLog.info(""); in printAllDeps()
106 mLog.info( "+Found : %s", entry.getKey()); in printAllDeps()
108 mLog.info(" uses: %s", dep); in printAllDeps()
111 mLog.info(""); in printAllDeps()
119 mLog.info(""); in printAllDeps()
120 mLog.info("------ %d Entries missing from source JARs", missing.size()); in printAllDeps()
[all …]
DDelegateClassAdapter.java43 private final Log mLog; field in DelegateClassAdapter
64 mLog = log; in DelegateClassAdapter()
115 mLog, null, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
140 mLog, mwOriginal, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
DAsmGenerator.java46 private final Log mLog; field in AsmGenerator
91 mLog = log; in AsmGenerator()
284 mLog.info("# deps classes: %d", mDeps.size());
285 mLog.info("# keep classes: %d", mKeep.size());
286 mLog.info("# renamed : %d", mRenameCount);
289 mLog.info("Created JAR file %s", mOsDestJar);
359 mLog.debug("Transform %s%s%s%s", className,
387 cv = new TransformClassAdapter(mLog, mStubMethods, mDeleteReturns.get(className),
397 cv = new DelegateClassAdapter(mLog, cv, className, delegateMethods);
DTransformClassAdapter.java36 private final Log mLog; field in TransformClassAdapter
53 mLog = logger; in TransformClassAdapter()
126 mLog.debug(" Stub: %s (%s)", invokeSignature, isNative ? "native" : ""); in visitMethod()
133 mLog.debug(" Keep: %s %s", name, desc); in visitMethod()
DAsmAnalyzer.java53 private final Log mLog; field in AsmAnalyzer
84 mLog = log; in AsmAnalyzer()
103 mLog.info("Found %d classes in input JAR%s.", zipClasses.size(), in analyze()
193 mLog.debug("Find classes to include."); in findIncludes()
343 mLog.debug("Found %1$d to keep, %2$d dependencies.", in findDeps()
352 mLog.info("Found %1$d classes to keep, %2$d class dependencies.", in findDeps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/
DFalsingLog.java62 private final ArrayDeque<String> mLog = new ArrayDeque<>(MAX_SIZE); field in FalsingLog
109 if (sInstance.mLog.size() >= MAX_SIZE) { in log()
110 sInstance.mLog.removeFirst(); in log()
115 sInstance.mLog.add(entry); in log()
125 if (sInstance == null || sInstance.mLog.isEmpty()) { in dump()
130 for (String s : sInstance.mLog) { in dump()
/frameworks/support/samples/Support7Demos/src/com/example/android/supportv7/widget/
DPopupMenuActivity.java36 private TextView mLog; field in PopupMenuActivity
53 mLog = (TextView) mContainer.findViewById(R.id.log); in onCreate()
89 mLog.setText(toPrepend + mLog.getText()); in addToLog()
DListPopupWindowActivity.java41 private TextView mLog; field in ListPopupWindowActivity
61 mLog = (TextView) mContainer.findViewById(R.id.log); in onCreate()
145 mLog.setOnClickListener(new View.OnClickListener() { in onCreate()
155 mLog.setText(toPrepend + mLog.getText()); in addToLog()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/util/
DDiffUtilTest.java47 private StringBuilder mLog = new StringBuilder(); field in DiffUtilTest
87 System.err.println(mLog.toString());
279 mLog.setLength(0); in testRandom()
332 mLog.append("initWithSize(" + size + ");\n"); in initWithSize()
336 mLog.append(title).append(":").append(items.size()).append("\n"); in log()
338 mLog.append(" ").append(item).append("\n"); in log()
345 String report = mLog.toString(); in assertEquals()
408 mLog.append("add(").append(index).append(");\n"); in add()
413 mLog.append("delete(").append(index).append(");\n"); in delete()
428 mLog.append("update(").append(index).append(");\n"); in update()
[all …]
/frameworks/base/tests/SerialChat/src/com/android/serialchat/
DSerialChat.java41 private TextView mLog; field in SerialChat
57 mLog = (TextView)findViewById(R.id.log); in onCreate()
156 mLog.setText(mLog.getText() + (String)msg.obj);
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java39 TextView mLog; field in BatteryWaster
57 mLog = (TextView)findViewById(R.id.log); in onCreate()
161 mLog.setText(mLog.getText() + "\n" + mDateFormat.format(new Date()) + ": " + s); in log()
/frameworks/base/libs/usb/tests/AccessoryChat/src/com/android/accessorychat/
DAccessoryChat.java51 private TextView mLog; field in AccessoryChat
91 mLog = (TextView)findViewById(R.id.log); in onCreate()
194 mLog.setText(mLog.getText() + "\n" + (String)msg.obj);
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
DDnsEventListenerServiceTest.java72 @Mock IpConnectivityLog mLog; field in DnsEventListenerServiceTest
80 mDnsService = new DnsEventListenerService(mCm, mLog); in setUp()
156 verify(mLog, timeout(500).times(1)).log(any()); in testConcurrentBatchesAndNetworkLoss()
178 verify(mLog, timeout(wait).times(expectedEvents.length)).log(mEvCaptor.capture()); in verifyLoggedEvents()
/frameworks/base/tools/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutLibTestCallback.java60 private final ILogger mLog; field in LayoutLibTestCallback
65 mLog = logger; in LayoutLibTestCallback()
92 mLog.error(null, "Unknown field type in R class: %1$s", type); in initResources()
95 mLog.error(ignored, "Malformed R class: %1$s", PACKAGE_NAME + ".R"); in initResources()
/frameworks/base/tests/FrameworkPerf/src/com/android/frameworkperf/
DFrameworkPerfActivity.java60 TextView mLog; field in FrameworkPerfActivity
202 mLog = (TextView)findViewById(R.id.log); in onCreate()
203 mLog.setTextColor(Color.RED); in onCreate()
465 mLog.setText(mLog.getText() + "\n" + s); in log()
/frameworks/base/opengl/java/android/opengl/
DEGLLogWrapper.java32 Writer mLog; field in EGLLogWrapper
40 mLog = log; in EGLLogWrapper()
386 mLog.write(message); in log()
414 mLog.flush(); in flush()
416 mLog = null; in flush()
/frameworks/support/v7/recyclerview/jvm-tests/src/android/support/v7/widget/
DAdapterHelperTest.java64 private StringBuilder mLog = new StringBuilder(); field in AdapterHelperTest
70 result.addFailure(this, new AssertionFailedError(mLog.toString())); in run()
76 mLog.setLength(0); in cleanState()
190 mLog.append(msg).append("\n"); in log()
222 throw new Exception(mLog.toString()); in testChangeAll()
700 throw new Throwable(t.getMessage() + "\n" + mLog.toString()); in testScenerio33()
741 throw new Throwable(t.getMessage() + "\n" + mLog.toString()); in testScenerio37()
851 + "\n" + mLog.toString(), t); in testRandom()

12