Home
last modified time | relevance | path

Searched refs:mLog (Results 1 – 25 of 33) 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()
132 assertTrue(log.mLog.contains( in testInnerClassPromotion()
140 log.mLog.clear(); in testInnerClassPromotion()
144 assertTrue(log.mLog.contains("[visitInnerClass] - " + in testInnerClassPromotion()
165 assertTrue(log.mLog.contains("[visit] - version=52, access=[public], " + in testProtectedClassPromotion()
DAsmGeneratorTest.java57 private MockLog mLog; field in AsmGeneratorTest
67 mLog = new MockLog(); in setUp()
101 AsmGenerator agen = new AsmGenerator(mLog, ci); in testClassRenaming()
103 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testClassRenaming()
143 AsmGenerator agen = new AsmGenerator(mLog, ci); in testJavaClassRefactoring()
145 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testJavaClassRefactoring()
190 AsmGenerator agen = new AsmGenerator(mLog, ci); in testClassRefactoring()
192 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testClassRefactoring()
226 AsmGenerator agen = new AsmGenerator(mLog, ci); in testClassExclusion()
227 AsmAnalyzer aa = new AsmAnalyzer(mLog, mOsJarPath, in testClassExclusion()
[all …]
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()
149 mLog, cw, internalClassName, delegateMethods); in testConstructorAfterDelegate()
181 mLog, cw, internalClassName, delegateMethods); in testInnerConstructorAfterDelegate()
216 mLog, cw, internalClassName, delegateMethods); in testStaticInnerConstructorAfterDelegate()
247 mLog, cw, internalClassName, delegateMethods); in testDelegateNative()
303 mLog, cwOuter, outerClassName, delegateMethods); in testDelegateInner()
311 mLog, cwInner, innerClassName, delegateMethods); in testDelegateInner()
[all …]
/frameworks/base/core/java/android/util/
DLocalLog.java36 private final Deque<String> mLog; field in LocalLog
53 mLog = new ArrayDeque<>(mMaxLines); in LocalLog()
72 while (mLog.size() >= mMaxLines) { in append()
73 mLog.remove(); in append()
75 mLog.add(logLine); in append()
94 Iterator<String> itr = mLog.iterator(); in dump()
105 Iterator<String> itr = mLog.descendingIterator(); in reverseDump()
112 private final LocalLog mLog; field in LocalLog.ReadOnlyLocalLog
114 mLog = log; in ReadOnlyLocalLog()
118 mLog.dump(pw); in dump()
[all …]
/frameworks/base/services/core/java/com/android/server/location/eventlog/
DLocalEventLog.java105 private final Log[] mLog; field in LocalEventLog
115 mLog = new Log[size]; in LocalEventLog()
153 if (delta < 0 || (delta / FillerEvent.MAX_TIME_DELTA) >= mLog.length - 1) { in addLogEvent()
177 if (mLogSize == mLog.length) { in addLogEventInternal()
179 mStartRealtimeMs += mLog[startIndex()].getTimeDeltaMs(); in addLogEventInternal()
186 mLog[mLogEndIndex] = event; in addLogEventInternal()
243 return (index % mLog.length + mLog.length) % mLog.length; in wrapIndex()
280 Log log = mLog[mIndex]; in next()
294 long nextDeltaMs = mIndex == -1 ? 0 : mLog[mIndex].getTimeDeltaMs(); in increment()
299 nextDeltaMs = mLog[mIndex].getTimeDeltaMs(); in increment()
[all …]
/frameworks/av/services/mediametrics/
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.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/layoutlib/remote/server/src/com/android/layoutlib/bridge/remote/server/adapters/
DRemoteLayoutLogAdapter.java26 private final RemoteLayoutLog mLog; field in RemoteLayoutLogAdapter
29 mLog = log; in RemoteLayoutLogAdapter()
35 mLog.warning(tag, message, viewCookie, null); in warning()
45 mLog.fidelityWarning(tag, message, throwable, viewCookie, data); in fidelityWarning()
54 mLog.error(tag, message, viewCookie, null); in error()
64 mLog.error(tag, message, throwable, viewCookie, null); in error()
73 mLog.logAndroidFramework(priority, tag, message); in logAndroidFramework()
/frameworks/layoutlib/remote/client/src/com/android/layoutlib/bridge/remote/client/adapters/
DRemoteLayoutLogAdapter.java28 private final ILayoutLog mLog; field in RemoteLayoutLogAdapter
31 mLog = log; in RemoteLayoutLogAdapter()
41 mLog.warning(tag, message, viewCookie, null); in warning()
47 mLog.fidelityWarning(tag, message, throwable, viewCookie, data); in fidelityWarning()
52 mLog.error(tag, message, viewCookie, null); in error()
57 mLog.error(tag, message, throwable, viewCookie, null); in error()
62 mLog.logAndroidFramework(priority, tag, message); in logAndroidFramework()
/frameworks/base/services/net/java/android/net/
DNetworkStackClient.java65 private final SharedLog mLog = new SharedLog(TAG); field in NetworkStackClient
243 synchronized (mLog) { in log()
244 mLog.log(message); in log()
250 synchronized (mLog) { in logWtf()
251 mLog.e(message, e); in logWtf()
256 synchronized (mLog) { in loge()
257 mLog.e(message, e); in loge()
265 synchronized (mLog) { in logi()
266 mLog.i(message); in logi()
329 mLog.dump(null, pw, null); in dump()
DConnectivityModuleConnector.java77 private final SharedLog mLog = new SharedLog(TAG); field in ConnectivityModuleConnector
385 synchronized (mLog) {
386 mLog.log(message);
392 synchronized (mLog) {
393 mLog.e(message);
399 synchronized (mLog) {
400 mLog.e(message);
406 synchronized (mLog) {
407 mLog.i(message);
416 mLog.dump(null, pw, null);
/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()
115 mLog, null, mwDelegate, mClassName, name, desc, isStaticMethod, in visitMethod()
127 return new AfterConstructorMethodAdapter(mLog, mwOriginal, mClassName); in visitMethod()
146 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.java48 private final Log mLog; field in AsmGenerator
90 mLog = log; in AsmGenerator()
271 mLog.info("# deps classes: %d", mDeps.size());
272 mLog.info("# keep classes: %d", mKeep.size());
273 mLog.info("# renamed : %d", mRenameCount);
325 mLog.debug("Transform %s%s%s%s", className,
349 cv = StubClassAdapter.builder(mLog, cv)
362 cv = new DelegateClassAdapter(mLog, cv, className, delegateMethods);
376 cv = new ChangeFileVersionAdapter(mLog, 55, cv);
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()
/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/cmds/am/src/com/android/commands/am/
DInstrument.java220 private File mLog; field in Instrument.ProtoStatusReporter
238 mLog = new File(logDir, fileName); in ProtoStatusReporter()
240 mLog = new File(Environment.getLegacyExternalStorageDirectory(), logPath); in ProtoStatusReporter()
241 File logDir = mLog.getParentFile(); in ProtoStatusReporter()
249 if (mLog.exists()) mLog.delete(); in ProtoStatusReporter()
357 try (OutputStream os = new FileOutputStream(mLog, true)) { in outputProto()
361 System.err.format("Cannot write to %s:\n", mLog.getAbsolutePath()); in outputProto()
/frameworks/layoutlib/bridge/tests/src/com/android/layoutlib/bridge/intensive/setup/
DLayoutLibTestCallback.java59 private final ILogger mLog; field in LayoutLibTestCallback
67 mLog = logger; in LayoutLibTestCallback()
90 mLog.error(null, "Unknown field type in R class: %1$s", type); in initResources()
93 mLog.error(e, "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()

12