/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/adservices/ondevicepersonalization/ |
D | IsolatedServiceTest.java | 100 params.putParcelable(Constants.EXTRA_INPUT, input); in testOnExecute() 101 params.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in testOnExecute() 103 Constants.EXTRA_FEDERATED_COMPUTE_SERVICE_BINDER, in testOnExecute() 105 params.putBinder(Constants.EXTRA_MODEL_SERVICE_BINDER, new TestIsolatedModelService()); in testOnExecute() 106 mBinder.onRequest(Constants.OP_EXECUTE, params, new TestServiceCallback()); in testOnExecute() 110 mCallbackResult.getParcelable(Constants.EXTRA_RESULT, ExecuteOutputParcel.class); in testOnExecute() 126 params.putParcelable(Constants.EXTRA_INPUT, input); in testOnExecutePropagatesError() 127 params.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in testOnExecutePropagatesError() 129 Constants.EXTRA_FEDERATED_COMPUTE_SERVICE_BINDER, in testOnExecutePropagatesError() 131 params.putBinder(Constants.EXTRA_MODEL_SERVICE_BINDER, new TestIsolatedModelService()); in testOnExecutePropagatesError() [all …]
|
D | IsolatedServiceExceptionSafetyTest.java | 113 params.putParcelable(Constants.EXTRA_INPUT, input); in testOnRequestExceptions() 114 params.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in testOnRequestExceptions() 116 Constants.EXTRA_FEDERATED_COMPUTE_SERVICE_BINDER, in testOnRequestExceptions() 118 params.putBinder(Constants.EXTRA_MODEL_SERVICE_BINDER, new TestIsolatedModelService()); in testOnRequestExceptions() 119 mIsolatedService.onRequest(Constants.OP_EXECUTE, params, new TestServiceCallback()); in testOnRequestExceptions() 121 assertEquals(Constants.STATUS_INTERNAL_ERROR, mCallbackErrorCode); in testOnRequestExceptions() 131 params.putParcelable(Constants.EXTRA_INPUT, input); in testOnDownloadExceptions() 132 params.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in testOnDownloadExceptions() 134 Constants.EXTRA_FEDERATED_COMPUTE_SERVICE_BINDER, in testOnDownloadExceptions() 136 mIsolatedService.onRequest(Constants.OP_DOWNLOAD, params, new TestServiceCallback()); in testOnDownloadExceptions() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/ |
D | KeyboardCodesSet.java | 19 import com.android.inputmethod.latin.common.Constants; 59 Constants.CODE_TAB, 60 Constants.CODE_ENTER, 61 Constants.CODE_SPACE, 62 Constants.CODE_SHIFT, 63 Constants.CODE_CAPSLOCK, 64 Constants.CODE_SWITCH_ALPHA_SYMBOL, 65 Constants.CODE_OUTPUT_TEXT, 66 Constants.CODE_DELETE, 67 Constants.CODE_SETTINGS, [all …]
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/data/ |
D | DataAccessServiceImplTest.java | 19 import static android.adservices.ondevicepersonalization.Constants.API_NAME_LOCAL_DATA_GET; 20 import static android.adservices.ondevicepersonalization.Constants.STATUS_SUCCESS; 33 import android.adservices.ondevicepersonalization.Constants; 141 params.putString(Constants.EXTRA_LOOKUP_KEYS, "key"); in testRemoteDataLookup() 143 Constants.DATA_ACCESS_OP_REMOTE_DATA_LOOKUP, in testRemoteDataLookup() 149 Constants.EXTRA_RESULT, ByteArrayParceledSlice.class); in testRemoteDataLookup() 165 params.putString(Constants.EXTRA_LOOKUP_KEYS, "key1"); in testRemoteDataLookupWithOverride() 167 Constants.DATA_ACCESS_OP_REMOTE_DATA_LOOKUP, in testRemoteDataLookupWithOverride() 173 Constants.EXTRA_RESULT, ByteArrayParceledSlice.class); in testRemoteDataLookupWithOverride() 182 params.putString(Constants.EXTRA_LOOKUP_KEYS, "localkey"); in testLocalDataLookup() [all …]
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/ |
D | AnqpEvent.java | 20 import com.android.server.wifi.hotspot2.anqp.Constants; 30 private static final Map<String, Constants.ANQPElementType> sWpsNames = new HashMap<>(); 33 sWpsNames.put("anqp_venue_name", Constants.ANQPElementType.ANQPVenueName); 34 sWpsNames.put("anqp_roaming_consortium", Constants.ANQPElementType.ANQPRoamingConsortium); 36 Constants.ANQPElementType.ANQPIPAddrAvailability); 37 sWpsNames.put("anqp_nai_realm", Constants.ANQPElementType.ANQPNAIRealm); 38 sWpsNames.put("anqp_3gpp", Constants.ANQPElementType.ANQP3GPPNetwork); 39 sWpsNames.put("anqp_domain_name", Constants.ANQPElementType.ANQPDomName); 40 sWpsNames.put("hs20_operator_friendly_name", Constants.ANQPElementType.HSFriendlyName); 41 sWpsNames.put("hs20_wan_metrics", Constants.ANQPElementType.HSWANMetrics); [all …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | ANQPRequestManagerTest.java | 43 import com.android.server.wifi.hotspot2.anqp.Constants; 62 private static final List<Constants.ANQPElementType> R1_ANQP_WITHOUT_RC = Arrays.asList( 63 Constants.ANQPElementType.ANQPVenueName, 64 Constants.ANQPElementType.ANQPIPAddrAvailability, 65 Constants.ANQPElementType.ANQPNAIRealm, 66 Constants.ANQPElementType.ANQP3GPPNetwork, 67 Constants.ANQPElementType.ANQPDomName, 68 Constants.ANQPElementType.HSFriendlyName, 69 Constants.ANQPElementType.HSWANMetrics, 70 Constants.ANQPElementType.HSConnCapability); [all …]
|
D | PasspointEventHandlerTest.java | 31 import com.android.server.wifi.hotspot2.anqp.Constants; 74 List<Constants.ANQPElementType> elementToRequest = in requestR1AnqpElement() 75 Arrays.asList(Constants.ANQPElementType.ANQPRoamingConsortium); in requestR1AnqpElement() 77 new HashSet<>(Arrays.asList(Constants.getANQPElementID( in requestR1AnqpElement() 78 Constants.ANQPElementType.ANQPRoamingConsortium))); in requestR1AnqpElement() 97 List<Constants.ANQPElementType> elementToRequest = in requestR2AnqpElement() 98 Arrays.asList(Constants.ANQPElementType.HSFriendlyName); in requestR2AnqpElement() 101 new HashSet<>(Arrays.asList(Constants.getHS20ElementID( in requestR2AnqpElement() 102 Constants.ANQPElementType.HSFriendlyName))); in requestR2AnqpElement() 120 List<Constants.ANQPElementType> elementToRequest = in requestMixAnqpElements() [all …]
|
D | ANQPDataTest.java | 31 import com.android.server.wifi.hotspot2.anqp.Constants; 85 Map<Constants.ANQPElementType, ANQPElement> elements = data.getElements(); in createWithNullElements() 118 Map<Constants.ANQPElementType, ANQPElement> anqpList1 = new HashMap<>(); in createWithElementsAndUpdate() 124 anqpList1.put(Constants.ANQPElementType.ANQPVenueName, venueNameElement); in createWithElementsAndUpdate() 128 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueName) in createWithElementsAndUpdate() 132 Map<Constants.ANQPElementType, ANQPElement> anqpList2 = new HashMap<>(); in createWithElementsAndUpdate() 136 anqpList2.put(Constants.ANQPElementType.ANQPVenueUrl, venueUrlElement); in createWithElementsAndUpdate() 142 anqpList2.put(Constants.ANQPElementType.ANQPVenueName, venueNameElement); in createWithElementsAndUpdate() 145 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueName) in createWithElementsAndUpdate() 147 assertTrue(data.getElements().get(Constants.ANQPElementType.ANQPVenueUrl) in createWithElementsAndUpdate() [all …]
|
/packages/modules/OnDevicePersonalization/framework/java/android/adservices/ondevicepersonalization/ |
D | IsolatedService.java | 236 if (operationCode == Constants.OP_EXECUTE) { in performRequest() 238 } else if (operationCode == Constants.OP_DOWNLOAD) { in performRequest() 240 } else if (operationCode == Constants.OP_RENDER) { in performRequest() 242 } else if (operationCode == Constants.OP_WEB_VIEW_EVENT) { in performRequest() 244 } else if (operationCode == Constants.OP_TRAINING_EXAMPLE) { in performRequest() 246 } else if (operationCode == Constants.OP_WEB_TRIGGER) { in performRequest() 259 Constants.EXTRA_INPUT, WebTriggerInputParcel.class), in performOnWebTrigger() 263 Constants.EXTRA_INPUT)); in performOnWebTrigger() 266 UserData userData = params.getParcelable(Constants.EXTRA_USER_DATA, UserData.class); in performOnWebTrigger() 276 resultCallback.onError(Constants.STATUS_INTERNAL_ERROR, 0); in performOnWebTrigger() [all …]
|
D | LocalDataImpl.java | 53 params.putString(Constants.EXTRA_LOOKUP_KEYS, key); in get() 55 Constants.DATA_ACCESS_OP_LOCAL_DATA_LOOKUP, params, in get() 56 Constants.API_NAME_LOCAL_DATA_GET, startTimeMillis); in get() 64 params.putString(Constants.EXTRA_LOOKUP_KEYS, key); in put() 65 params.putParcelable(Constants.EXTRA_VALUE, new ByteArrayParceledSlice(value)); in put() 67 Constants.DATA_ACCESS_OP_LOCAL_DATA_PUT, params, in put() 68 Constants.API_NAME_LOCAL_DATA_PUT, startTimeMillis); in put() 76 params.putString(Constants.EXTRA_LOOKUP_KEYS, key); in remove() 78 Constants.DATA_ACCESS_OP_LOCAL_DATA_REMOVE, params, in remove() 79 Constants.API_NAME_LOCAL_DATA_REMOVE, startTimeMillis); in remove() [all …]
|
D | OnDevicePersonalizationManager.java | 217 Constants in execute() 228 Constants.EXTRA_OUTPUT_DATA); in execute() 241 Constants.API_NAME_EXECUTE, in execute() 246 Constants.STATUS_SUCCESS); in execute() 267 Constants.API_NAME_EXECUTE, in execute() 279 Constants.EXTRA_APP_PARAMS_SERIALIZED, in execute() 291 Constants.API_NAME_EXECUTE, in execute() 295 Constants.STATUS_INTERNAL_ERROR); in execute() 378 Constants.API_NAME_REQUEST_SURFACE_PACKAGE, in requestSurfacePackage() 383 Constants.STATUS_SUCCESS); in requestSurfacePackage() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
D | AbstractLayoutBase.java | 21 import com.android.inputmethod.latin.common.Constants; 137 protected static final ExpectedKey DELETE_KEY = key(ICON_DELETE, Constants.CODE_DELETE); 138 protected static final ExpectedKey TAB_KEY = key(ICON_TAB, Constants.CODE_TAB); 139 protected static final ExpectedKey SHORTCUT_KEY = key(ICON_SHORTCUT, Constants.CODE_SHORTCUT); 140 protected static final ExpectedKey SETTINGS_KEY = key(ICON_SETTINGS, Constants.CODE_SETTINGS); 142 ICON_LANGUAGE_SWITCH, Constants.CODE_LANGUAGE_SWITCH); 143 protected static final ExpectedKey ENTER_KEY = key(ICON_ENTER, Constants.CODE_ENTER); 144 …protected static final ExpectedKey EMOJI_ACTION_KEY = key(ICON_EMOJI_ACTION, Constants.CODE_EMOJI); 145 …protected static final ExpectedKey EMOJI_NORMAL_KEY = key(ICON_EMOJI_NORMAL, Constants.CODE_EMOJI); 146 protected static final ExpectedKey SPACE_KEY = key(ICON_SPACE, Constants.CODE_SPACE); [all …]
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/opp/ |
D | BluetoothOppReceiver.java | 103 } else if (action.equals(Constants.ACTION_INCOMING_FILE_CONFIRM) in onReceive() 112 } else if (action.equals(Constants.ACTION_DECLINE)) { in onReceive() 122 } else if (action.equals(Constants.ACTION_ACCEPT)) { in onReceive() 131 } else if (action.equals(Constants.ACTION_OPEN) || action.equals(Constants.ACTION_LIST)) { in onReceive() 132 if (action.equals(Constants.ACTION_OPEN)) { in onReceive() 167 } else if (action.equals(Constants.ACTION_OPEN_OUTBOUND_TRANSFER) in onReceive() 173 in.putExtra(Constants.EXTRA_DIRECTION, BluetoothShare.DIRECTION_OUTBOUND); in onReceive() 175 } else if (action.equals(Constants.ACTION_OPEN_INBOUND_TRANSFER) in onReceive() 181 in.putExtra(Constants.EXTRA_DIRECTION, BluetoothShare.DIRECTION_INBOUND); in onReceive() 183 } else if (action.equals(Constants.ACTION_HIDE)) { in onReceive() [all …]
|
/packages/services/Car/service/src/com/android/car/telemetry/sessioncontroller/ |
D | SessionAnnotation.java | 22 import com.android.car.telemetry.publisher.Constants; 67 .append(Constants.ANNOTATION_BUNDLE_KEY_SESSION_ID).append(": ") in toString() 69 .append(Constants.ANNOTATION_BUNDLE_KEY_SESSION_STATE).append(": ") in toString() 71 .append(Constants.ANNOTATION_BUNDLE_KEY_CREATED_AT_SINCE_BOOT_MILLIS).append(": ") in toString() 73 .append(Constants.ANNOTATION_BUNDLE_KEY_CREATED_AT_MILLIS).append(": ") in toString() 75 .append(Constants.ANNOTATION_BUNDLE_KEY_BOOT_REASON).append(": ") in toString() 77 .append(Constants.ANNOTATION_BUNDLE_KEY_BOOT_COUNT).append(": ") in toString() 111 bundle.putInt(Constants.ANNOTATION_BUNDLE_KEY_SESSION_ID, sessionId); in addAnnotationsToBundle() 112 bundle.putInt(Constants.ANNOTATION_BUNDLE_KEY_SESSION_STATE, sessionState); in addAnnotationsToBundle() 113 bundle.putLong(Constants.ANNOTATION_BUNDLE_KEY_CREATED_AT_SINCE_BOOT_MILLIS, in addAnnotationsToBundle() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/net/ |
D | RefinedStatsTest.java | 31 import com.android.car.telemetry.publisher.Constants; 83 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS, 10_000); in testAddNetworkStats_toPersistableBundle() 84 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_END_MILLIS, 20_000); in testAddNetworkStats_toPersistableBundle() 85 expected.putInt(Constants.CONNECTIVITY_BUNDLE_KEY_SIZE, 2); in testAddNetworkStats_toPersistableBundle() 86 expected.putIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_UID, new int[] {UID_0, UID_1}); in testAddNetworkStats_toPersistableBundle() 87 expected.putStringArray(Constants.CONNECTIVITY_BUNDLE_KEY_PACKAGES, in testAddNetworkStats_toPersistableBundle() 89 expected.putIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_TAG, new int[] {TAG_1, TAG_NONE}); in testAddNetworkStats_toPersistableBundle() 90 expected.putLongArray(Constants.CONNECTIVITY_BUNDLE_KEY_RX_BYTES, new long[] {14096, 4095}); in testAddNetworkStats_toPersistableBundle() 91 expected.putLongArray(Constants.CONNECTIVITY_BUNDLE_KEY_TX_BYTES, new long[] {12048, 2047}); in testAddNetworkStats_toPersistableBundle() 127 expected.putLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS, 10_000); in testSubtract() [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/event/ |
D | Event.java | 21 import com.android.inputmethod.latin.common.Constants; 152 Constants.EXTERNAL_KEYBOARD_COORDINATE, Constants.EXTERNAL_KEYBOARD_COORDINATE, in createHardwareKeypressEvent() 162 Constants.EXTERNAL_KEYBOARD_COORDINATE, Constants.EXTERNAL_KEYBOARD_COORDINATE, in createDeadEvent() 177 Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in createEventForCodePointFromUnknownSource() 205 Constants.SUGGESTION_STRIP_COORDINATE, Constants.SUGGESTION_STRIP_COORDINATE, in createSuggestionPickedEvent() 220 Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in createSoftwareTextEvent() 233 NOT_A_KEY_CODE, Constants.SUGGESTION_STRIP_COORDINATE, in createPunctuationSuggestionPickedEvent() 234 Constants.SUGGESTION_STRIP_COORDINATE, suggestedWordInfo, FLAG_NONE, in createPunctuationSuggestionPickedEvent() 247 moveAmount, Constants.NOT_A_COORDINATE, null, FLAG_NONE, null); in createCursorMovedEvent() 266 Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in createNotHandledEvent()
|
/packages/modules/OnDevicePersonalization/src/com/android/ondevicepersonalization/services/data/ |
D | DataAccessServiceImpl.java | 19 import android.adservices.ondevicepersonalization.Constants; 158 case Constants.DATA_ACCESS_OP_REMOTE_DATA_LOOKUP: in onRequest() 159 String lookupKey = params.getString(Constants.EXTRA_LOOKUP_KEYS); in onRequest() 167 case Constants.DATA_ACCESS_OP_REMOTE_DATA_KEYSET: in onRequest() 171 case Constants.DATA_ACCESS_OP_LOCAL_DATA_LOOKUP: in onRequest() 175 lookupKey = params.getString(Constants.EXTRA_LOOKUP_KEYS); in onRequest() 183 case Constants.DATA_ACCESS_OP_LOCAL_DATA_KEYSET: in onRequest() 190 case Constants.DATA_ACCESS_OP_LOCAL_DATA_PUT: in onRequest() 197 String putKey = params.getString(Constants.EXTRA_LOOKUP_KEYS); in onRequest() 199 Constants.EXTRA_VALUE, ByteArrayParceledSlice.class); in onRequest() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/publisher/ |
D | ConnectivityPublisherTest.java | 198 return savedResult.containsKey(Constants.ANNOTATION_BUNDLE_KEY_SESSION_ID) in verifyPublisherSavedData() 199 && savedResult.getInt(Constants.ANNOTATION_BUNDLE_KEY_SESSION_ID) in verifyPublisherSavedData() 299 assertThat(result.getLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS)) in testPullsTaggedAndUntaggedMobileStats() 301 assertThat(result.getLong(Constants.CONNECTIVITY_BUNDLE_KEY_END_MILLIS)) in testPullsTaggedAndUntaggedMobileStats() 302 .isGreaterThan(result.getLong(Constants.CONNECTIVITY_BUNDLE_KEY_START_MILLIS)); in testPullsTaggedAndUntaggedMobileStats() 303 assertThat(result.getInt(Constants.CONNECTIVITY_BUNDLE_KEY_SIZE)) in testPullsTaggedAndUntaggedMobileStats() 305 assertThat(result.getIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_UID)).asList() in testPullsTaggedAndUntaggedMobileStats() 307 assertThat(result.getIntArray(Constants.CONNECTIVITY_BUNDLE_KEY_TAG)).asList() in testPullsTaggedAndUntaggedMobileStats() 309 assertThat(result.getLongArray(Constants.CONNECTIVITY_BUNDLE_KEY_RX_BYTES)).asList() in testPullsTaggedAndUntaggedMobileStats() 311 assertThat(result.getLongArray(Constants.CONNECTIVITY_BUNDLE_KEY_TX_BYTES)).asList() in testPullsTaggedAndUntaggedMobileStats() [all …]
|
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/dvr/ |
D | DvrLibraryTest.java | 29 import com.android.tv.testing.uihelper.Constants; 84 controller.assertWaitForCondition(Until.hasObject(Constants.DVR_LIBRARY)); in testCancel() 86 controller.assertWaitForCondition(Until.gone(Constants.DVR_LIBRARY)); in testCancel() 87 controller.assertHas(Constants.MENU, false); in testCancel() 94 controller.assertWaitForCondition(Until.hasObject(Constants.DVR_LIBRARY)); in testEmptyLibrary() 104 controller.assertWaitForCondition(Until.gone(Constants.DVR_LIBRARY)); in testEmptyLibrary() 107 controller.assertHas(Constants.DVR_SCHEDULES, true); in testEmptyLibrary() 115 controller.assertWaitForCondition(Until.hasObject(Constants.DVR_LIBRARY)); in testEmptyLibrary() 117 controller.assertWaitForCondition(Until.gone(Constants.DVR_LIBRARY)); in testEmptyLibrary() 173 controller.assertWaitForCondition(Until.hasObject(Constants.DVR_LIBRARY)); in testScheduleRecordings() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/recentaccess/ |
D | RecentAccessViewModelTest.kt | 18 import android.health.connect.Constants in <lambda>() 105 Constants.READ), in <lambda>() 110 Constants.READ), in <lambda>() 115 Constants.UPSERT), in <lambda>() 120 Constants.UPSERT), in <lambda>() 125 Constants.UPSERT)) in <lambda>() 172 Constants.READ), in <lambda>() 177 Constants.READ), in <lambda>() 182 Constants.UPSERT), in <lambda>() 187 Constants.UPSERT), in <lambda>() [all …]
|
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/inference/ |
D | IsolatedModelServiceImplTest.java | 27 import android.adservices.ondevicepersonalization.Constants; 85 bundle.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in runModelInference_singleExample_success() 87 Constants.EXTRA_INFERENCE_INPUT, new InferenceInputParcel(inferenceInput)); in runModelInference_singleExample_success() 96 mCallbackResult.getParcelable(Constants.EXTRA_RESULT, InferenceOutputParcel.class); in runModelInference_singleExample_success() 115 bundle.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in runModelInference_setBatchSizeNotMatch_success() 117 Constants.EXTRA_INFERENCE_INPUT, new InferenceInputParcel(inferenceInput)); in runModelInference_setBatchSizeNotMatch_success() 126 mCallbackResult.getParcelable(Constants.EXTRA_RESULT, InferenceOutputParcel.class); in runModelInference_setBatchSizeNotMatch_success() 144 bundle.putBinder(Constants.EXTRA_DATA_ACCESS_SERVICE_BINDER, new TestDataAccessService()); in runModelInferenceBatch_setBatchSize_success() 146 Constants.EXTRA_INFERENCE_INPUT, new InferenceInputParcel(inferenceInput)); in runModelInferenceBatch_setBatchSize_success() 155 mCallbackResult.getParcelable(Constants.EXTRA_RESULT, InferenceOutputParcel.class); in runModelInferenceBatch_setBatchSize_success() [all …]
|
/packages/modules/OnDevicePersonalization/tests/federatedcomputetests/src/com/android/federatedcompute/services/training/ |
D | IsolatedTrainingServiceImplTest.java | 33 import com.android.federatedcompute.services.common.Constants; 133 byte[] flRunnerResultBytes = mCallbackResult.getByteArray(Constants.EXTRA_FL_RUNNER_RESULT); in runFlTrainingSuccess() 200 bundle.putParcelable(Constants.EXTRA_INPUT_CHECKPOINT_FD, mInputCheckpointFd); in runFlTrainingMissingExampleSelector_returnsFailure() 201 bundle.putParcelable(Constants.EXTRA_OUTPUT_CHECKPOINT_FD, mOutputCheckpointFd); in runFlTrainingMissingExampleSelector_returnsFailure() 203 Constants.EXTRA_EXAMPLE_STORE_ITERATOR_BINDER, FAKE_EXAMPLE_STORE_ITERATOR); in runFlTrainingMissingExampleSelector_returnsFailure() 205 Constants.EXTRA_TRAINING_FLAGS, in runFlTrainingMissingExampleSelector_returnsFailure() 219 bundle.putParcelable(Constants.EXTRA_INPUT_CHECKPOINT_FD, mInputCheckpointFd); in runFlTrainingInvalidExampleSelector_returnsFailure() 220 bundle.putParcelable(Constants.EXTRA_OUTPUT_CHECKPOINT_FD, mOutputCheckpointFd); in runFlTrainingInvalidExampleSelector_returnsFailure() 222 Constants.EXTRA_EXAMPLE_STORE_ITERATOR_BINDER, FAKE_EXAMPLE_STORE_ITERATOR); in runFlTrainingInvalidExampleSelector_returnsFailure() 224 Constants.EXTRA_TRAINING_FLAGS, in runFlTrainingInvalidExampleSelector_returnsFailure() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | InputLogicTestsDeadKeys.java | 22 import com.android.inputmethod.latin.common.Constants; 36 Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in addCodePoint() 45 Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in addKey() 70 .addKey(Constants.CODE_DELETE) in testDeadCircumflexBackspace() 97 .addCodePoint(Constants.CODE_SPACE, false) in testDeadDiaeresisSpace() 100 .addCodePoint(Constants.CODE_ENTER, false) in testDeadDiaeresisSpace() 122 Constants.CODE_DELETE, Constants.NOT_A_COORDINATE, Constants.NOT_A_COORDINATE, in testDeadAcuteLetterBackspace() 157 .addKey(Constants.CODE_DELETE) in testDoubleDeadOgonek() 190 .addKey(Constants.CODE_DELETE) in testDeadCircumflexDeadDiaeresisBackspace() 208 .addKey(Constants.CODE_DELETE) in testDeadCircumflexDoubleDeadDiaeresisBackspace()
|
/packages/services/Car/service/src/com/android/car/telemetry/publisher/ |
D | VehiclePropertyPublisher.java | 235 bundle.putLong(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_TIMESTAMP, propValue.getTimestamp()); in parseCarPropertyValue() 236 bundle.putInt(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_PROP_ID, propValue.getPropertyId()); in parseCarPropertyValue() 237 bundle.putInt(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_AREA_ID, propValue.getAreaId()); in parseCarPropertyValue() 238 bundle.putInt(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_STATUS, propValue.getStatus()); in parseCarPropertyValue() 242 bundle.putBoolean(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_BOOLEAN, (Boolean) value); in parseCarPropertyValue() 244 bundle.putDouble(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_FLOAT, in parseCarPropertyValue() 247 bundle.putInt(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_INT, (Integer) value); in parseCarPropertyValue() 249 bundle.putLong(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_LONG, (Long) value); in parseCarPropertyValue() 256 bundle.putDoubleArray(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_FLOAT_ARRAY, doubles); in parseCarPropertyValue() 263 bundle.putIntArray(Constants.VEHICLE_PROPERTY_BUNDLE_KEY_INT_ARRAY, ints); in parseCarPropertyValue() [all …]
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | Helpers.java | 33 import static com.android.providers.downloads.Constants.TAG; 329 if (Constants.LOGVV) { 330 Log.v(Constants.TAG, "getting filename from hint"); 344 if (Constants.LOGVV) { 345 Log.v(Constants.TAG, "getting filename from content-disposition"); 360 if (Constants.LOGVV) { 361 Log.v(Constants.TAG, "getting filename from content-location"); 379 if (Constants.LOGVV) { 380 Log.v(Constants.TAG, "getting filename from uri"); 389 if (Constants.LOGVV) { [all …]
|