Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c8b47046 authored by Arthur Ishiguro's avatar Arthur Ishiguro
Browse files

Cleans up ContextHubService dumpsys

Removes fields that are not actually populated from dumpsys.

Bug: 70624255
Test: None
Change-Id: Ida272430102661d25193bc1296057a8c89297df6
parent c2b5e3dc
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -275,8 +275,6 @@ public class ContextHubInfo implements Parcelable {
        retVal += ", StoppedPowerDraw : " + mStoppedPowerDrawMw + " mW";
        retVal += ", PeakPowerDraw : " + mPeakPowerDrawMw + " mW";
        retVal += ", MaxPacketLength : " + mMaxPacketLengthBytes + " Bytes";
        retVal += "\n\tSupported sensors : " + Arrays.toString(mSupportedSensors);
        retVal += "\n\tMemory Regions : " + Arrays.toString(mMemoryRegions);

        return retVal;
    }
+3 −7
Original line number Diff line number Diff line
@@ -27,15 +27,13 @@ import libcore.util.EmptyArray;
 * Describes an instance of a nanoapp, used by the internal state manged by ContextHubService.
 *
 * TODO(b/69270990) Remove this class once the old API is deprecated.
 * TODO(b/70624255) Clean up toString() by removing unnecessary fields
 *
 * @hide
 */
@SystemApi
public class NanoAppInstanceInfo {
    private static final String PRE_LOADED_GENERIC_UNKNOWN = "Preloaded app, unknown";
    private String mPublisher = PRE_LOADED_GENERIC_UNKNOWN;
    private String mName = PRE_LOADED_GENERIC_UNKNOWN;
    private String mPublisher = "Unknown";
    private String mName = "Unknown";

    private int mHandle;
    private long mAppId;
@@ -227,9 +225,7 @@ public class NanoAppInstanceInfo {
    public String toString() {
        String retVal = "handle : " + mHandle;
        retVal += ", Id : 0x" + Long.toHexString(mAppId);
        retVal += ", Version : " + mAppVersion;
        retVal += ", Name : " + mName;
        retVal += ", Publisher : " + mPublisher;
        retVal += ", Version : 0x" + Integer.toHexString(mAppVersion);

        return retVal;
    }