Home
last modified time | relevance | path

Searched refs:DebugUtils (Results 1 – 25 of 55) sorted by relevance

123

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/internal/util/
DDebugUtilsUnitTest.java31 assertThat(DebugUtils.constantToString(StatusCode.class, StatusCode.OK)).isEqualTo("OK"); in aidlConstantToString()
32 assertThat(DebugUtils.constantToString(StatusCode.class, StatusCode.TRY_AGAIN)) in aidlConstantToString()
34 assertThat(DebugUtils.constantToString(StatusCode.class, StatusCode.NOT_AVAILABLE)) in aidlConstantToString()
36 assertThat(DebugUtils.constantToString(StatusCode.class, StatusCode.ACCESS_DENIED)) in aidlConstantToString()
38 assertThat(DebugUtils.constantToString(StatusCode.class, StatusCode.INTERNAL_ERROR)) in aidlConstantToString()
44 assertThat(DebugUtils.flagsToString(UserInfo.class, "USER_FLAG_", 0)).isEqualTo("0"); in aidlFlagsToString()
46 DebugUtils.flagsToString(UserInfo.class, "USER_FLAG_", UserInfo.USER_FLAG_SYSTEM)) in aidlFlagsToString()
49 DebugUtils.flagsToString( in aidlFlagsToString()
58 DebugUtils.constantToString( in hidlConstantToString()
63 DebugUtils.constantToString( in hidlConstantToString()
[all …]
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/util/
DDebugUtilsTest.java72 assertTrue(DebugUtils.isDeveloperModeEnabled(mContext)); in isDeveloperModeEnabledReturnsTrueIfDeviceDebuggableAndDevOptionsOff()
79 assertTrue(DebugUtils.isDeveloperModeEnabled(mContext)); in isDeveloperModeEnabledReturnsTrueIfDeviceDebuggableAndDevOptionsOn()
86 assertFalse(DebugUtils.isDeveloperModeEnabled(mContext)); in isDeveloperModeEnabledReturnsFalseIfDeviceNotDebuggableAndDevOptionsOff()
93 assertTrue(DebugUtils.isDeveloperModeEnabled(mContext)); in isDeveloperModeEnabledReturnsTrueIfDeviceNotDebuggableAndDevOptionsOn()
102 DebugUtils.getIsolatedServiceExceptionCode( in testReturnsExceptionCodeIfDebuggableAndFlagEnabled()
116 DebugUtils.getIsolatedServiceExceptionCode( in testDoesNotReturnExceptionCodeIfFlagDisabled()
130 DebugUtils.getIsolatedServiceExceptionCode( in testDoesNotReturnExceptionCodeIfPackageNotDebuggable()
145 DebugUtils.getIsolatedServiceExceptionCode( in testDoesNotReturnExceptionCodeIfDeviceNotDebuggable()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/
DOnDevicePersonalizationDebugServiceTest.java32 import com.android.ondevicepersonalization.services.util.DebugUtils;
58 .mockStatic(DebugUtils.class) in testIsEnabledTrueWhenDeveloperModeOn()
61 when(DebugUtils.isDeveloperModeEnabled(mContext)).thenReturn(true); in testIsEnabledTrueWhenDeveloperModeOn()
71 .mockStatic(DebugUtils.class) in testIsEnabledFalseWhenDeveloperModeOff()
74 when(DebugUtils.isDeveloperModeEnabled(mContext)).thenReturn(false); in testIsEnabledFalseWhenDeveloperModeOff()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/util/
DDebugUtils.java35 public class DebugUtils { class
37 private static final String TAG = DebugUtils.class.getSimpleName();
81 private DebugUtils() {} in DebugUtils() method in DebugUtils
/packages/apps/Messaging/src/com/android/messaging/datamodel/action/
DDumpDatabaseAction.java25 import com.android.messaging.util.DebugUtils;
63 final File outFile = DebugUtils.getDebugFile(DUMP_NAME, true); in executeAction()
95 DebugUtils.ensureReadable(outFile); in executeAction()
DLogTelephonyDatabaseAction.java29 import com.android.messaging.util.DebugUtils;
73 if (!DebugUtils.isDebugEnabled()) { in executeAction()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/utils/
DXmlDoc.java36 import com.android.imsserviceentitlement.debug.DebugUtils;
119 if (DebugUtils.isPiiLoggable()) { in parseXmlResponse()
134 if (DebugUtils.isPiiLoggable()) { in parseXmlResponse()
144 if (DebugUtils.isPiiLoggable()) { in parseXmlResponse()
194 if (DebugUtils.isPiiLoggable()) { in parseParams()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/
DOnDevicePersonalizationDebugServiceDelegate.java24 import com.android.ondevicepersonalization.services.util.DebugUtils;
41 return DebugUtils.isDeveloperModeEnabled(mContext); in isEnabled()
/packages/apps/ImsServiceEntitlement/src/com/android/imsserviceentitlement/debug/
DDebugUtils.java26 public final class DebugUtils { class
32 private DebugUtils() {} in DebugUtils() method in DebugUtils
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/property/
DPropertyInfo.java21 import android.util.DebugUtils;
31 mName = DebugUtils.constantToString(VehiclePropertyIds.class, /* prefix= */ "", mPropId); in PropertyInfo()
/packages/services/Car/car-lib/src/android/car/admin/
DStartUserInBackgroundResult.java23 import com.android.car.internal.util.DebugUtils;
113 return DebugUtils.valueToString(StartUserInBackgroundResult.class, "STATUS_", status); in statusToString()
DStopUserResult.java23 import com.android.car.internal.util.DebugUtils;
123 return DebugUtils.valueToString(StopUserResult.class, "STATUS_", status); in statusToString()
DRemoveUserResult.java23 import com.android.car.internal.util.DebugUtils;
154 return DebugUtils.valueToString(RemoveUserResult.class, "STATUS_", status); in statusToString()
DCreateUserResult.java26 import com.android.car.internal.util.DebugUtils;
151 return DebugUtils.valueToString(CreateUserResult.class, "STATUS_", status); in statusToString()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationlist/
DArchivedConversationListActivity.java25 import com.android.messaging.util.DebugUtils;
67 final boolean enableDebugItems = DebugUtils.isDebugEnabled(); in onCreateOptionsMenu()
DConversationListActivity.java27 import com.android.messaging.util.DebugUtils;
78 final boolean enableDebugItems = DebugUtils.isDebugEnabled(); in onCreateOptionsMenu()
/packages/services/Car/car-lib/src/com/android/car/internal/util/
DDebugUtils.java28 public final class DebugUtils { class
29 private DebugUtils() {} in DebugUtils() method in DebugUtils
/packages/apps/Messaging/src/com/android/messaging/
DBugleApplication.java42 import com.android.messaging.util.DebugUtils;
212 final File file = DebugUtils.getDebugFile("startup.trace", true); in maybeStartProfiling()
221 DebugUtils.ensureReadable(file); in maybeStartProfiling()
/packages/apps/Messaging/src/com/android/messaging/ui/conversation/
DMessageDetailsDialog.java39 import com.android.messaging.util.DebugUtils;
55 if (DebugUtils.isDebugEnabled()) { in show()
143 if (DebugUtils.isDebugEnabled()) { in getSmsMessageDetails()
209 if (DebugUtils.isDebugEnabled()) { in getMmsMessageDetails()
/packages/apps/Messaging/src/com/android/messaging/util/
DDebugUtils.java54 public class DebugUtils { class
229 final File dir = DebugUtils.getDebugFilesDir(); in doInBackgroundTimed()
253 final File dumpFile = DebugUtils.getDebugFile(dumpFileName, true);
285 final File inputFile = DebugUtils.getDebugFile(dumpFileName, false);
/packages/services/Car/service/src/com/android/car/hal/
DVmsHalService.java57 import com.android.car.internal.util.DebugUtils;
302 + DebugUtils.constantToString(VmsMessageType.class, messageType) in onHalEvents()
345 + DebugUtils.constantToString(VmsMessageType.class, messageType), e); in onHalEvents()
659 + DebugUtils.constantToString(VmsMessageType.class, messageType)); in setPropertyValue()
668 + DebugUtils.constantToString(VmsMessageType.class, messageType), e); in setPropertyValue()
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/request/
DRenderFlow.java50 import com.android.ondevicepersonalization.services.util.DebugUtils;
288 DebugUtils.getIsolatedServiceExceptionCode( in returnResultThroughCallback()
343 DebugUtils.getErrorMessage(mContext, t), in sendErrorResult()
/packages/apps/Messaging/src/com/android/messaging/receiver/
DSmsReceiver.java49 import com.android.messaging.util.DebugUtils;
197 DebugUtils.dumpSms(messages[0].getTimestampMillis(), messages, format); in deliverSmsIntent()
221 DebugUtils.debugClassZeroSmsEnabled()) { in deliverSmsMessages()
/packages/apps/Messaging/src/com/android/messaging/ui/debug/
DDebugSmsMmsFromDumpFileDialogFragment.java42 import com.android.messaging.util.DebugUtils;
132 final SmsMessage[] messages = DebugUtils.retreiveSmsFromDumpFile(dumpFileName); in receiveFromDumpFile()
/packages/services/Car/car-lib/src/android/car/user/
DUserCreationResult.java32 import com.android.car.internal.util.DebugUtils;
311 + DebugUtils.constantToString(UserManager.class, "USER_OPERATION_", in toString()

123