Home
last modified time | relevance | path

Searched refs:code (Results 1 – 25 of 549) sorted by relevance

12345678910>>...22

/packages/modules/Bluetooth/system/bta/ag/
Dbta_ag_rfc.cc41 void bta_ag_port_cback_1(uint32_t code, uint16_t port_handle);
42 void bta_ag_port_cback_2(uint32_t code, uint16_t port_handle);
43 void bta_ag_port_cback_3(uint32_t code, uint16_t port_handle);
44 void bta_ag_port_cback_4(uint32_t code, uint16_t port_handle);
45 void bta_ag_port_cback_5(uint32_t code, uint16_t port_handle);
46 void bta_ag_port_cback_6(uint32_t code, uint16_t port_handle);
47 void bta_ag_mgmt_cback_1(uint32_t code, uint16_t port_handle);
48 void bta_ag_mgmt_cback_2(uint32_t code, uint16_t port_handle);
49 void bta_ag_mgmt_cback_3(uint32_t code, uint16_t port_handle);
50 void bta_ag_mgmt_cback_4(uint32_t code, uint16_t port_handle);
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DKeyboardStateTestsBase.java84 private void pressKeyWithoutTimerExpire(final int code, final boolean isSinglePointer, in pressKeyWithoutTimerExpire() argument
86 mSwitcher.onPressKey(code, isSinglePointer); in pressKeyWithoutTimerExpire()
96 public void pressKey(final int code, final int afterPress) { in pressKey() argument
98 pressKeyWithoutTimerExpire(code, true, afterPress); in pressKey()
107 public void releaseKey(final int code, final int afterRelease) { in releaseKey() argument
108 mSwitcher.onCodeInput(code); in releaseKey()
109 mSwitcher.onReleaseKey(code, NOT_SLIDING); in releaseKey()
120 public void pressAndReleaseKey(final int code, final int afterPress, final int afterRelease) { in pressAndReleaseKey() argument
121 pressKey(code, afterPress); in pressAndReleaseKey()
122 releaseKey(code, afterRelease); in pressAndReleaseKey()
[all …]
DMockKeyboardSwitcher.java161 public void onPressKey(final int code, final boolean isSinglePointer) { in onPressKey() argument
162 mState.onPressKey(code, isSinglePointer, mAutoCapsState, in onPressKey()
166 public void onReleaseKey(final int code, final boolean withSliding) { in onReleaseKey() argument
167 onReleaseKey(code, withSliding, mAutoCapsState, RecapitalizeStatus.NOT_A_RECAPITALIZE_MODE); in onReleaseKey()
170 public void onReleaseKey(final int code, final boolean withSliding, in onReleaseKey() argument
172 mState.onReleaseKey(code, withSliding, currentAutoCapsState, currentRecapitalizeState); in onReleaseKey()
173 if (mLongPressTimeoutCode == code) { in onReleaseKey()
178 public void onCodeInput(final int code) { in onCodeInput() argument
180 if (Constants.isLetterCode(code)) { in onCodeInput()
181 mAutoCapsState = (code == MockConstants.CODE_AUTO_CAPS_TRIGGER) in onCodeInput()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DKeyboardLayoutSetNavigateMoreKeysBase.java79 private void doTestMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestMoreKeysOf() argument
88 final Key actualKey = keyboard.getKey(code); in doTestMoreKeysOf()
120 private void doTestNavigationMoreKeysOf(final int code, final InputMethodSubtype subtype, in doTestNavigationMoreKeysOf() argument
123 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
127 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
131 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
135 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
139 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
143 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
147 doTestMoreKeysOf(code, subtype, elementId, inputType, in doTestNavigationMoreKeysOf()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/settings/
DSpacingAndPunctuations.java95 public boolean isWordSeparator(final int code) { in isWordSeparator() argument
96 return Arrays.binarySearch(mSortedWordSeparators, code) >= 0; in isWordSeparator()
99 public boolean isWordConnector(final int code) { in isWordConnector() argument
100 return Arrays.binarySearch(mSortedWordConnectors, code) >= 0; in isWordConnector()
103 public boolean isWordCodePoint(final int code) { in isWordCodePoint() argument
104 return Character.isLetter(code) || isWordConnector(code); in isWordCodePoint()
107 public boolean isUsuallyPrecededBySpace(final int code) { in isUsuallyPrecededBySpace() argument
108 return Arrays.binarySearch(mSortedSymbolsPrecededBySpace, code) >= 0; in isUsuallyPrecededBySpace()
111 public boolean isUsuallyFollowedBySpace(final int code) { in isUsuallyFollowedBySpace() argument
112 return Arrays.binarySearch(mSortedSymbolsFollowedBySpace, code) >= 0; in isUsuallyFollowedBySpace()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/
Dl2cap_packets.pdl242 code : CommandCode,
254 packet CommandReject : Control (code = COMMAND_REJECT) {
271 packet ConnectionRequest : Control (code = CONNECTION_REQUEST) {
292 packet ConnectionResponse : Control (code = CONNECTION_RESPONSE) {
386 packet ConfigurationRequest : Control (code = CONFIGURATION_REQUEST) {
402 packet ConfigurationResponse : Control (code = CONFIGURATION_RESPONSE) {
410 packet DisconnectionRequest : Control (code = DISCONNECTION_REQUEST) {
415 packet DisconnectionResponse : Control (code = DISCONNECTION_RESPONSE) {
420 packet EchoRequest : Control (code = ECHO_REQUEST) {
424 packet EchoResponse : Control (code = ECHO_RESPONSE) {
[all …]
/packages/modules/Bluetooth/system/gd/security/
Dsmp_packets.pdl23 code : Code,
55 packet PairingRequest : Command (code = PAIRING_REQUEST) {
59 packet PairingResponse : Command (code = PAIRING_RESPONSE) {
63 packet PairingConfirm : Command (code = PAIRING_CONFIRM) {
67 packet PairingRandom : Command (code = PAIRING_RANDOM) {
88 packet PairingFailed : Command (code = PAIRING_FAILED) {
92 packet EncryptionInformation : Command (code = ENCRYPTION_INFORMATION) {
96 packet CentralIdentification : Command (code = CENTRAL_IDENTIFICATION) {
101 packet IdentityInformation : Command (code = IDENTITY_INFORMATION) {
110 packet IdentityAddressInformation : Command (code = IDENTITY_ADDRESS_INFORMATION) {
[all …]
/packages/inputmethods/LatinIME/common/src/com/android/inputmethod/latin/common/
DConstants.java251 public static boolean isLetterCode(final int code) { in isLetterCode() argument
252 return code >= CODE_SPACE; in isLetterCode()
256 public static String printableCode(final int code) { in printableCode() argument
257 switch (code) { in printableCode()
276 if (code < CODE_SPACE) return String.format("\\u%02X", code); in printableCode()
277 if (code < 0x100) return String.format("%c", code); in printableCode()
278 if (code < 0x10000) return String.format("\\u%04X", code); in printableCode()
279 return String.format("\\U%05X", code); in printableCode()
287 for (final int code : codes) { in printableCodes()
288 if (code == NOT_A_CODE) break; in printableCodes()
[all …]
/packages/modules/Bluetooth/system/gd/rust/stack/src/hci/
Dmod.rs130 pub async fn register(&mut self, code: EventCode, sender: Sender<EventPacket>) { in register()
131 match code { in register()
137 | EventCode::VendorSpecific => panic!("{:?} is a protected event", code), in register()
140 self.evt_handlers.lock().await.insert(code, sender).is_none(), in register()
142 code in register()
149 pub async fn unregister(&mut self, code: EventCode) { in unregister()
150 self.evt_handlers.lock().await.remove(&code); in unregister()
154 pub async fn register_le(&mut self, code: SubeventCode, sender: Sender<LeMetaEventPacket>) { in register_le()
156 self.le_evt_handlers.lock().await.insert(code, sender).is_none(), in register_le()
158 code in register_le()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/accessibility/
DKeyCodeDescriptionMapper.java94 final int code = key.getCode(); in getDescriptionForKey() local
96 if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in getDescriptionForKey()
103 if (code == Constants.CODE_SHIFT) { in getDescriptionForKey()
107 if (code == Constants.CODE_ENTER) { in getDescriptionForKey()
113 if (code == Constants.CODE_OUTPUT_TEXT) { in getDescriptionForKey()
120 if (code != Constants.CODE_UNSPECIFIED) { in getDescriptionForKey()
122 final boolean isDefinedNonCtrl = Character.isDefined(code) in getDescriptionForKey()
123 && !Character.isISOControl(code); in getDescriptionForKey()
127 final String description = getDescriptionForCodePoint(context, code); in getDescriptionForKey()
292 private String getSpokenAccentedLetterDescription(final Context context, final int code) { in getSpokenAccentedLetterDescription() argument
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DKeyboardState.java353 public void onPressKey(final int code, final boolean isSinglePointer, final int autoCapsFlags, in onPressKey() argument
356 Log.d(TAG, "onPressKey: code=" + Constants.printableCode(code) in onPressKey()
360 if (code != Constants.CODE_SHIFT) { in onPressKey()
365 if (code == Constants.CODE_SHIFT) { in onPressKey()
367 } else if (code == Constants.CODE_CAPSLOCK) { in onPressKey()
369 } else if (code == Constants.CODE_SWITCH_ALPHA_SYMBOL) { in onPressKey()
393 public void onReleaseKey(final int code, final boolean withSliding, final int autoCapsFlags, in onReleaseKey() argument
396 Log.d(TAG, "onReleaseKey: code=" + Constants.printableCode(code) in onReleaseKey()
400 if (code == Constants.CODE_SHIFT) { in onReleaseKey()
402 } else if (code == Constants.CODE_CAPSLOCK) { in onReleaseKey()
[all …]
/packages/modules/IPsec/src/java/android/net/ipsec/ike/exceptions/
DIkeProtocolException.java105 protected IkeProtocolException(@ErrorType int code) { in IkeProtocolException() argument
107 mErrorType = code; in IkeProtocolException()
112 protected IkeProtocolException(@ErrorType int code, String message) { in IkeProtocolException() argument
114 mErrorType = code; in IkeProtocolException()
119 protected IkeProtocolException(@ErrorType int code, Throwable cause) { in IkeProtocolException() argument
121 mErrorType = code; in IkeProtocolException()
126 protected IkeProtocolException(@ErrorType int code, String message, Throwable cause) { in IkeProtocolException() argument
128 mErrorType = code; in IkeProtocolException()
137 protected IkeProtocolException(@ErrorType int code, byte[] notifyData) { in IkeProtocolException() argument
143 + code in IkeProtocolException()
[all …]
/packages/apps/Settings/src/com/android/settings/wifi/dpp/
DWifiDppAddDeviceFragment.java71 public void onConfiguratorSuccess(int code) { in onConfiguratorSuccess() argument
76 public void onFailure(int code, String ssid, SparseArray<int[]> channelListArray, in onFailure() argument
78 Log.d(TAG, "EasyConnectConfiguratorStatusCallback.onFailure: " + code); in onFailure()
93 showErrorUi(code, getResultIntent(code, ssid, channelListArray, in onFailure()
98 public void onProgress(int code) { in onProgress() argument
125 private Intent getResultIntent(int code, String ssid, SparseArray<int[]> channelListArray, in getResultIntent() argument
128 intent.putExtra(EXTRA_EASY_CONNECT_ERROR_CODE, code); in getResultIntent()
171 private void showErrorUi(int code, Intent resultIntent, boolean isConfigurationChange) { in showErrorUi() argument
173 switch (code) { in showErrorUi()
197 if (code == mLatestStatusCode) { in showErrorUi()
[all …]
/packages/services/Telephony/testapps/TestRcsApp/aosp_test_rcsclient/src/com/android/libraries/rcs/simpleclient/service/chat/
DChatServiceException.java51 public ChatServiceException(@Nullable String message, @ErrorCode int code) { in ChatServiceException() argument
52 super(getMessage(message, code)); in ChatServiceException()
53 mCode = code; in ChatServiceException()
65 @Nullable String message, @ErrorCode int code, @Nullable Throwable cause) { in ChatServiceException() argument
66 super(getMessage(message, code), cause); in ChatServiceException()
67 mCode = code; in ChatServiceException()
70 private static String getMessage(String message, int code) { in getMessage() argument
75 builder.append(code); in getMessage()
79 return "code: " + code; in getMessage()
/packages/modules/Connectivity/service/jni/
Dcom_android_server_BpfNetMaps.cpp45 ALOGE("%s failed, error code = %d", __func__, status.code()); in native_init()
54 ALOGE("%s failed, error code = %d", __func__, status.code()); in native_addNaughtyApp()
56 return (jint)status.code(); in native_addNaughtyApp()
64 ALOGE("%s failed, error code = %d", __func__, status.code()); in native_removeNaughtyApp()
66 return (jint)status.code(); in native_removeNaughtyApp()
74 ALOGE("%s failed, error code = %d", __func__, status.code()); in native_addNiceApp()
76 return (jint)status.code(); in native_addNiceApp()
84 ALOGD("%s failed, error code = %d", __func__, status.code()); in native_removeNiceApp()
86 return (jint)status.code(); in native_removeNiceApp()
157 ALOGE("%s failed, error code = %d", __func__, status.code()); in native_addUidInterfaceRules()
[all …]
/packages/modules/DnsResolver/
DDnsTlsDispatcher.cpp117 DnsTlsTransport::Response code = DnsTlsTransport::Response::internal_error; in query() local
125 code = this->query(server, statp->netid, statp->mark, query, ans, resplen, in query()
136 switch (code) { in query()
143 return code; in query()
147 return code; in query()
155 return code; in query()
166 return code; in query()
193 DnsTlsTransport::Response code = result.code; in query() local
194 if (code == DnsTlsTransport::Response::success) { in query()
197 code = DnsTlsTransport::Response::limit_error; in query()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSupplicantStaIfaceCallbackHidlV1_4Impl.java139 public void onEapFailure_1_1(int code) { in onEapFailure_1_1() argument
140 mCallbackV13.onEapFailure_1_1(code); in onEapFailure_1_1()
144 public void onEapFailure_1_3(int code) { in onEapFailure_1_3() argument
145 mCallbackV13.onEapFailure_1_3(code); in onEapFailure_1_3()
186 public void onDppProgress(int code) { in onDppProgress() argument
187 mCallbackV13.onDppProgress(code); in onDppProgress()
223 public void onDppFailure(int code) { in onDppFailure() argument
224 mCallbackV13.onDppFailureInternal(halToFrameworkDppFailureCode(code)); in onDppFailure()
233 public void onDppProgress_1_3(int code) { in onDppProgress_1_3() argument
234 mCallbackV13.onDppProgress_1_3(code); in onDppProgress_1_3()
[all …]
DSupplicantStaIfaceCallbackHidlV1_3Impl.java118 public void onEapFailure_1_1(int code) { in onEapFailure_1_1() argument
119 mCallbackV12.onEapFailure_1_1(code); in onEapFailure_1_1()
123 public void onEapFailure_1_3(int code) { in onEapFailure_1_3() argument
124 mCallbackV12.onEapFailure_1_1(code); in onEapFailure_1_3()
165 public void onDppProgress(int code) { in onDppProgress() argument
166 mCallbackV12.onDppProgressInternal(halToFrameworkDppProgressCode(code)); in onDppProgress()
170 public void onDppFailure(int code) { in onDppFailure() argument
172 onDppFailureInternal(halToFrameworkDppFailureCode(code)); in onDppFailure()
198 public void onDppProgress_1_3(int code) { in onDppProgress_1_3() argument
200 mStaIfaceHal.getDppCallback().onProgress(halToFrameworkDppProgressCode(code)); in onDppProgress_1_3()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/error/
Derror.h106 ParseResult(ParseErrorCode code, size_t offset) : code_(code), offset_(offset) {} in ParseResult()
119 bool operator==(ParseErrorCode code) const { return code_ == code; }
120 … friend bool operator==(ParseErrorCode code, const ParseResult & err) { return code == err.code_; }
125 void Set(ParseErrorCode code, size_t offset = 0) { code_ = code; offset_ = offset; }
/packages/modules/Bluetooth/tools/rootcanal/scripts/
Dhci_socket.py201 bind_layers(HCI_Event_Hdr, HCI_Event_Inquiry_Result, code=0x02)
202 bind_layers(HCI_Event_Hdr, HCI_Event_Connection_Complete, code=0x03)
203 bind_layers(HCI_Event_Hdr, HCI_Event_Remote_Name_Request_Complete, code=0x07)
204 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Remote_Supported_Features_Complete, code=0x0b)
205 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Remote_Version_Information_Complete, code=0x0c)
206 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Clock_Offset_Complete, code=0x1c)
207 bind_layers(HCI_Event_Hdr, HCI_Event_Read_Remote_Extended_Features_Complete, code=0x23)
208 bind_layers(HCI_Event_Hdr, HCI_Event_Extended_Inquiry_Result, code=0x2f)
319 …).type and response[HCI_Event_Hdr].code == 0xf and response[HCI_Event_Command_Status].opcode == co…
331 connection_complete[HCI_Event_Hdr].code == 0x3):
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DStopRequestException.java50 public static StopRequestException throwUnhandledHttpError(int code, String message) in throwUnhandledHttpError() argument
52 final String error = "Unhandled HTTP response: " + code + " " + message; in throwUnhandledHttpError()
53 if (code >= 400 && code < 600) { in throwUnhandledHttpError()
54 throw new StopRequestException(code, error); in throwUnhandledHttpError()
55 } else if (code >= 300 && code < 400) { in throwUnhandledHttpError()
/packages/services/Car/tests/DiagnosticTools/src/com/google/android/car/diagnostictools/
DDTC.java67 String code, in DTC() argument
72 this.mCode = code; in DTC()
87 DTC(String code, long timestamp, Context context) { in DTC() argument
88 this.mCode = code; in DTC()
90 DTCMetadata dtcMetadata = getDTCMetadata(code, context); in DTC()
143 String code = String.format("P%04d", 8 + number); in createSampleDTC() local
148 return new DTC(code, timestamp, context); in createSampleDTC()
151 private DTCMetadata getDTCMetadata(String code, Context context) { in getDTCMetadata() argument
152 return MetadataProcessing.getInstance(context).getDTCMetadata(code); in getDTCMetadata()
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DFastPairDataProviderService.java156 void onError(@ErrorCode int code, @Nullable String message); in onError() argument
178 void onError(@ErrorCode int code, @Nullable String message); in onError() argument
200 void onError(@ErrorCode int code, @Nullable String message); in onError() argument
221 void onError(@ErrorCode int code, @Nullable String message); in onError() argument
484 public void onError(@ErrorCode int code, @Nullable String message) { in onError() argument
486 mCallback.onError(code, message); in onError()
531 public void onError(@ErrorCode int code, @Nullable String message) { in onError() argument
533 mCallback.onError(code, message); in onError()
578 public void onError(@ErrorCode int code, @Nullable String message) { in onError() argument
580 mCallback.onError(code, message); in onError()
[all …]
/packages/modules/common/
DREADME.md3 This project includes mainline build and other utility code. Any library code
7 ## java code
9 This project uses a single source path for java code. All java code should go
12 include java source for a single java package to encourage good code hygiene.
14 Tests for java code should go in the `javatests` directory and follow the same
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfp/
DHeadsetVendorSpecificResultCodeTest.java48 HeadsetVendorSpecificResultCode code = new HeadsetVendorSpecificResultCode(mTestDevice, in constructor() local
51 assertThat(code.mDevice).isEqualTo(mTestDevice); in constructor()
52 assertThat(code.mCommand).isEqualTo(TEST_COMMAND); in constructor()
53 assertThat(code.mArg).isEqualTo(TEST_ARG); in constructor()
58 HeadsetVendorSpecificResultCode code = new HeadsetVendorSpecificResultCode(mTestDevice, in buildString() local
62 code.buildString(builder); in buildString()
65 code.getClass().getSimpleName() + "[device=" + mTestDevice + ", command=" in buildString()

12345678910>>...22