/frameworks/base/core/java/com/android/internal/util/dump/ |
D | DumpableContainerImpl.java | 45 public boolean addDumpable(Dumpable dumpable) { in addDumpable() argument 46 Objects.requireNonNull(dumpable, "dumpable"); in addDumpable() 47 String name = dumpable.getDumpableName(); in addDumpable() 48 Objects.requireNonNull(name, () -> "name of" + dumpable); in addDumpable() 52 Log.d(TAG, "addDumpable(): ignoring " + dumpable + " as there is already a dumpable" in addDumpable() 59 Log.d(TAG, "Adding " + name + " -> " + dumpable); in addDumpable() 61 mDumpables.put(name, dumpable); in addDumpable() 66 public boolean removeDumpable(Dumpable dumpable) { in removeDumpable() argument 67 Objects.requireNonNull(dumpable, "dumpable"); in removeDumpable() 68 String name = dumpable.getDumpableName(); in removeDumpable() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | DumpableContainerImplTest.java | 114 CustomDumpable dumpable = new CustomDumpable("one", "ONE"); in testOneDumpable_notFound() local 116 mImpl.addDumpable(dumpable); in testOneDumpable_notFound() 124 CustomDumpable dumpable = new CustomDumpable("The name is Bond", "James Bond!"); in testOneDumpable_noArgs() local 126 mImpl.addDumpable(dumpable); in testOneDumpable_noArgs() 136 CustomDumpable dumpable = new CustomDumpable("The name is Bond", "James Bond!"); in testOneDumpable_withArgs() local 138 mImpl.addDumpable(dumpable); in testOneDumpable_withArgs() 193 Dumpable dumpable = new Dumpable() { in testARemoveDumpable_dumpableWithoutName() local 206 assertWithMessage("addDumpable(with name)").that(mImpl.addDumpable(dumpable)).isTrue(); in testARemoveDumpable_dumpableWithoutName() 209 assertWithMessage("removeDumpable(nameless)").that(mImpl.removeDumpable(dumpable)) in testARemoveDumpable_dumpableWithoutName() 215 CustomDumpable dumpable = new CustomDumpable("The name is Bond", "James Bond!"); in testRemoveDumpable_empty() local [all …]
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/ |
D | DumpableDumperRule.java | 49 public void addDumpable(Dumpable dumpable) { in addDumpable() argument 50 mDumpables.add(dumpable); in addDumpable() 92 private void logDumpable(Dumpable dumpable) { 95 dumpable.dump(pw, NO_ARGS); 97 Log.w(TAG, "Dumping " + dumpable.getDumpableName() + " (" + dump.length 104 Log.e(TAG, "RuntimeException dumping " + dumpable.getDumpableName(), e); 107 Log.e(TAG, "IOException dumping " + dumpable.getDumpableName(), e);
|
/frameworks/base/core/java/android/util/ |
D | DumpableContainer.java | 39 boolean addDumpable(@NonNull Dumpable dumpable); in addDumpable() argument 50 boolean removeDumpable(@NonNull Dumpable dumpable); in removeDumpable() argument
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dump/ |
D | DumpHandler.kt | 204 for (dumpable in dumpables) { in <lambda>() constant 205 (dumpable.dumpable as? ProtoDumpable)?.dumpProto(systemUIProto, args.rawArgs) in <lambda>() 443 .filter { it.dumpable is ProtoDumpable } in <lambda>() 445 ?.dumpable as? ProtoDumpable in <lambda>() 495 ) = pw.wrapSection(entry) { entry.dumpable.dump(pw, args) } in <lambda>()
|
D | DumpsysEntry.kt | 40 val dumpable: Dumpable, constant in com.android.systemui.dump.DumpsysEntry.DumpableEntry
|
D | DumpManager.kt | 167 dumpables[name]?.dumpable ?: buffers[name]?.buffer ?: tableLogBuffers[name]?.table in canAssignToNameLocked()
|
/frameworks/base/services/core/java/com/android/server/timezonedetector/ |
D | TimeZoneDetectorService.java | 411 void addDumpable(@NonNull Dumpable dumpable) { in addDumpable() argument 413 mDumpables.add(dumpable); in addDumpable() 433 for (Dumpable dumpable : mDumpables) { in dump() 434 dumpable.dump(ipw, args); in dump()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dump/ |
D | DumpManagerTest.kt | 59 var dumpables = dumpManager.getDumpables().map { it.dumpable } in testRegisterUnregister_dumpables() 69 dumpables = dumpManager.getDumpables().map { it.dumpable } in testRegisterUnregister_dumpables()
|
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/ |
D | TimeZoneDetectorServiceTest.java | 461 Dumpable dumpable = mock(Dumpable.class); in testDump() local 462 mTimeZoneDetectorService.addDumpable(dumpable); in testDump() 469 verify(dumpable).dump(any(), any()); in testDump()
|
/frameworks/base/services/foldables/devicestateprovider/src/com/android/server/policy/ |
D | FoldableDeviceStateProvider.java | 449 if (predicate instanceof Dumpable dumpable) { in dump() 450 dumpable.dump(writer, /* args= */ null); in dump()
|
/frameworks/base/services/java/com/android/server/ |
D | SystemServer.java | 729 final Dumpable dumpable = mDumpables.get(name); in dump() local 730 if (dumpable == null) { in dump() 738 dumpable.dump(ipw, actualArgs); in dump() 746 final Dumpable dumpable = mDumpables.valueAt(i); in dump() local 747 ipw.printf("%s:\n", dumpable.getDumpableName()); in dump() 749 dumpable.dump(ipw, args); in dump() 757 private void addDumpable(@NonNull Dumpable dumpable) { in addDumpable() argument 759 mDumpables.put(dumpable.getDumpableName(), dumpable); in addDumpable() local
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_Zygote.cpp | 2034 int dumpable = prctl(PR_GET_DUMPABLE); in SpecializeCommon() local 2035 if (dumpable == -1) { in SpecializeCommon() 2040 if (dumpable == 2 && uid >= AID_APP) { in SpecializeCommon()
|
/frameworks/base/core/java/android/app/ |
D | Activity.java | 8074 public final boolean addDumpable(@NonNull Dumpable dumpable) { 8078 return mDumpableContainer.addDumpable(dumpable);
|
/frameworks/base/core/api/ |
D | test-current.txt | 139 field public static final String DUMP_ARG_DUMP_DUMPABLE = "--dump-dumpable";
|