Home
last modified time | relevance | path

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

12

/frameworks/layoutlib/create/tests/src/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 …]
DPromoteClassClassAdapterTest.java38 List<String> mLog = new LinkedList<String>(); field in LoggingClassVisitor
71 mLog.add( in log()
129 assertTrue(log.mLog.contains( in testInnerClassPromotion()
137 log.mLog.clear(); in testInnerClassPromotion()
141 assertTrue(log.mLog.contains("[visitInnerClass] - " + in testInnerClassPromotion()
158 assertTrue(log.mLog.contains("[visit] - version=55, access=[public], " + in testProtectedClassPromotion()
DAsmGeneratorTest.java62 private MockLog mLog; field in AsmGeneratorTest
72 mLog = new MockLog(); in setUp()
106 AsmGenerator agen = new AsmGenerator(mLog, ci); in testClassRenaming()
108 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testClassRenaming()
149 AsmGenerator agen = new AsmGenerator(mLog, ci); in testJavaClassRefactoring()
151 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testJavaClassRefactoring()
197 AsmGenerator agen = new AsmGenerator(mLog, ci); in testClassRefactoring()
199 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testClassRefactoring()
234 AsmGenerator agen = new AsmGenerator(mLog, ci); in testClassExclusion()
235 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testClassExclusion()
[all …]
DDelegateClassAdapterTest.java55 private MockLog mLog; field in DelegateClassAdapterTest
71 mLog = new MockLog(); in setUp()
72 mLog.setVerbose(true); // capture debug error too in setUp()
100 mLog, cw, internalClassName, delegateMethods); in testNoOp()
157 mLog, cw, internalClassName, delegateMethods); in testConstructorAfterDelegate()
189 mLog, cw, internalClassName, delegateMethods); in testInnerConstructorAfterDelegate()
224 mLog, cw, internalClassName, delegateMethods); in testStaticInnerConstructorAfterDelegate()
256 mLog, cw, internalClassName, delegateMethods); in testDelegateStaticInitializer()
290 mLog, cw, internalClassName, delegateMethods); in testDelegateInnerClassStaticInitializer()
323 mLog, cw, internalClassName, delegateMethods); in testDelegateNative()
[all …]
/frameworks/base/core/java/android/util/
DLocalLog.java39 private final Deque<String> mLog; field in LocalLog
56 mLog = new ArrayDeque<>(mMaxLines); in LocalLog()
76 while (mLog.size() >= mMaxLines) { in append()
77 mLog.remove(); in append()
79 mLog.add(logLine); in append()
98 Iterator<String> itr = mLog.iterator(); in dump()
109 Iterator<String> itr = mLog.descendingIterator(); in reverseDump()
116 private final LocalLog mLog; field in LocalLog.ReadOnlyLocalLog
118 mLog = log; in ReadOnlyLocalLog()
122 mLog.dump(pw); in dump()
[all …]
/frameworks/av/services/mediametrics/include/mediametricsservice/
DTransactionLog.h76 mLog.clear();
80 mLog = other.mLog;
98 mLog.emplace_hint(mLog.end(), time, item); in put()
109 return getItemsInRange(mLog, startTime, endTime);
146 auto [s, l] = dumpMapTimeItem(mLog, ll, sinceNs, prefix);
174 return mLog.size(); in size()
183 mLog.clear(); in clear()
223 if (mLog.size() < mHighWaterMark) return false; in gc()
225 auto eraseEnd = mLog.begin(); in gc()
226 size_t toRemove = mLog.size() - mLowWaterMark; in gc()
[all …]
/frameworks/base/tests/VoiceInteraction/src/com/android/test/voiceinteraction/
DStartVoiceInteractionActivity.java40 TextView mLog; field in StartVoiceInteractionActivity
53 mLog = (TextView)findViewById(R.id.log); in onCreate()
65 mLog.append("Local Voice Interaction Supported = " + isLocalVoiceInteractionSupported()); in onCreate()
103 mLog.append("\nLocalVoiceInteraction started!"); in onLocalVoiceInteractionStarted()
110 mLog.append("\nLocalVoiceInteraction stopped!"); in onLocalVoiceInteractionStopped()
125 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Canceled abort\n"); in onCancel()
129 ((StartVoiceInteractionActivity)getActivity()).mLog.append( in onAbortResult()
141 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Canceled complete\n"); in onCancel()
145 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Complete: result=" in onCompleteResult()
157 ((StartVoiceInteractionActivity)getActivity()).mLog.append("Canceled command\n"); in onCancel()
[all …]
DTestInteractionActivity.java44 TextView mLog; field in TestInteractionActivity
71 mLog = (TextView)findViewById(R.id.log); in onCreate()
117 mLog.append(cmds[i] + ": " + (sup[i] ? "SUPPORTED" : "NOT SUPPORTED") + "\n"); in onCreate()
179 ((TestInteractionActivity)getActivity()).mLog.append("Canceled abort\n"); in onCancel()
183 ((TestInteractionActivity)getActivity()).mLog.append("Abort: result=" + result + "\n"); in onAbortResult()
194 ((TestInteractionActivity)getActivity()).mLog.append("Canceled complete\n"); in onCancel()
198 ((TestInteractionActivity)getActivity()).mLog.append("Complete: result=" in onCompleteResult()
210 ((TestInteractionActivity)getActivity()).mLog.append("Canceled command\n"); in onCancel()
226 ((TestInteractionActivity)getActivity()).mLog.append(sb.toString()); in onCommandResult()
241 ((TestInteractionActivity)getActivity()).mLog.append("Canceled pick\n"); in onCancel()
[all …]
/frameworks/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()
113 return new StaticInitMethodAdapter(mLog, renamedMethodWriter, in visitMethod()
124 mLog, null, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
136 return new AfterConstructorMethodAdapter(mLog, mwOriginal, mClassName); in visitMethod()
155 mLog, mwOriginal, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
DChangeFileVersionAdapter.java26 private final Log mLog; field in ChangeFileVersionAdapter
31 mLog = logger; in ChangeFileVersionAdapter()
41 mLog.debug("Class %s has had its file version changed from %d to %d", name, version, in visit()
DAfterConstructorMethodAdapter.java40 private final Log mLog; field in AfterConstructorMethodAdapter
55 mLog = log; in AfterConstructorMethodAdapter()
73 mLog.debug("After constructor call for class %s delegated to %s#%s", mClassName, in generateTrampoline()
DAsmGenerator.java49 private final Log mLog; field in AsmGenerator
107 mLog = log; in AsmGenerator()
314 mLog.info("# deps classes: %d", mDeps.size());
315 mLog.info("# keep classes: %d", mKeep.size());
316 mLog.info("# renamed : %d", mRenameCount);
368 mLog.debug("Transform %s%s%s%s", className,
396 cv = new DelegateClassAdapter(mLog, cv, className, delegateMethods);
398 cv = new DelegateToNativeAdapter(mLog, cv, className, mDelegates, delegateMethods);
401 cv = StubClassAdapter.builder(mLog, cv)
415 cv = new DelegateClassAdapter(mLog, cv, className, delegateMethods);
[all …]
DDelegateToNativeAdapter.java18 private final Log mLog; field in DelegateToNativeAdapter
27 mLog = logger; in DelegateToNativeAdapter()
61 new DelegateMethodAdapter(mLog, null, mwDelegate, mClassName, mDelegateName, in visitMethod()
DStubClassAdapter.java114 private final Log mLog; field in StubClassAdapter
140 mLog = logger; in StubClassAdapter()
257 mLog.debug(" Stub: %s (%s)", invokeSignature, isNative ? "native" : ""); in visitMethod()
264 mLog.debug(" Keep: %s %s", name, desc); in visitMethod()
DStaticInitMethodAdapter.java36 private final Log mLog; field in StaticInitMethodAdapter
52 mLog = log; in StaticInitMethodAdapter()
93 mLog.debug("static initializer call for class %s delegated to %s#%s", in generateDelegateCode()
DAsmAnalyzer.java94 private final Log mLog; field in AsmAnalyzer
122 mLog = log; in AsmAnalyzer()
140 mLog.info("Found %d classes in input JAR%s.", zipClasses.size(), in analyze()
152 findIncludes(mLog, includePatterns, mDeriveFrom, zipClasses, entry -> { in analyze()
159 findDeps(mLog, zipClasses, found, keepEntry -> { in analyze()
169 mLog.info("Found %1$d classes to keep, %2$d class dependencies.", in analyze()
/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
93 mLog = (TextView)findViewById(R.id.log); in onCreate()
196 mLog.setText(mLog.getText() + "\n" + (String)msg.obj);
/frameworks/base/cmds/am/src/com/android/commands/am/
DInstrument.java227 private File mLog; field in Instrument.ProtoStatusReporter
245 mLog = new File(logDir, fileName); in ProtoStatusReporter()
247 mLog = new File(Environment.getLegacyExternalStorageDirectory(), logPath); in ProtoStatusReporter()
248 File logDir = mLog.getParentFile(); in ProtoStatusReporter()
256 if (mLog.exists()) mLog.delete(); in ProtoStatusReporter()
366 try (OutputStream os = new FileOutputStream(mLog, true)) { in outputProto()
370 System.err.format("Cannot write to %s:\n", mLog.getAbsolutePath()); in outputProto()
/frameworks/layoutlib/bridge/bridge_client/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutlibBridgeClientCallback.java54 private final ILogger mLog; field in LayoutlibBridgeClientCallback
62 mLog = logger; in LayoutlibBridgeClientCallback()
86 mLog.error(null, "Unknown field type in R class: %1$s", type); in initResources()
89 mLog.error(e, "Malformed R class: %1$s", mPackageName + ".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/base/services/core/java/com/android/server/power/
DWakeLockLog.java132 private final TheLog mLog; field in WakeLockLog
146 mLog = new TheLog(injector, translator, mTagDatabase); in WakeLockLog()
193 for (int i = 0; i < mLog.mSavedAcquisitions.size(); i++) { in dump()
195 LogEntry entry = mLog.mSavedAcquisitions.get(i); in dump()
206 final Iterator<LogEntry> iterator = mLog.getAllItems(tempEntry); in dump()
230 pw.println(" Buffer, Bytes used: " + mLog.getUsedBufferSize()); in dump()
280 mLog.addEntry(new LogEntry(time, eventType, tagData, flags)); in handleWakeLockEventInternal()

12