/frameworks/layoutlib/create/tests/src/com/android/tools/layoutlib/create/ |
D | LogTest.java | 27 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 …]
|
D | PromoteClassClassAdapterTest.java | 38 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()
|
D | AsmGeneratorTest.java | 62 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 …]
|
D | DelegateClassAdapterTest.java | 55 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/ |
D | LocalLog.java | 39 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/ |
D | TransactionLog.h | 76 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/ |
D | StartVoiceInteractionActivity.java | 40 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 …]
|
D | TestInteractionActivity.java | 44 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/ |
D | DependencyFinder.java | 55 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 …]
|
D | DelegateClassAdapter.java | 43 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()
|
D | ChangeFileVersionAdapter.java | 26 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()
|
D | AfterConstructorMethodAdapter.java | 40 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()
|
D | AsmGenerator.java | 49 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 …]
|
D | DelegateToNativeAdapter.java | 18 private final Log mLog; field in DelegateToNativeAdapter 27 mLog = logger; in DelegateToNativeAdapter() 61 new DelegateMethodAdapter(mLog, null, mwDelegate, mClassName, mDelegateName, in visitMethod()
|
D | StubClassAdapter.java | 114 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()
|
D | StaticInitMethodAdapter.java | 36 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()
|
D | AsmAnalyzer.java | 94 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/ |
D | SerialChat.java | 41 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/ |
D | BatteryWaster.java | 39 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/ |
D | AccessoryChat.java | 51 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/ |
D | Instrument.java | 227 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/ |
D | LayoutlibBridgeClientCallback.java | 54 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/ |
D | FrameworkPerfActivity.java | 60 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/ |
D | EGLLogWrapper.java | 32 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/ |
D | WakeLockLog.java | 132 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()
|