Home
last modified time | relevance | path

Searched refs:functions (Results 1 – 25 of 53) sorted by relevance

123

/packages/apps/Settings/src/com/android/settings/connecteddevice/usb/
DUsbBackend.java90 public void setCurrentFunctions(long functions) { in setCurrentFunctions() argument
91 mUsbManager.setCurrentFunctions(functions); in setCurrentFunctions()
98 public void setDefaultUsbFunctions(long functions) { in setDefaultUsbFunctions() argument
99 mUsbManager.setScreenUnlockedFunctions(functions); in setDefaultUsbFunctions()
102 public boolean areFunctionsSupported(long functions) { in areFunctionsSupported() argument
103 if ((!mMidiSupported && (functions & UsbManager.FUNCTION_MIDI) != 0) in areFunctionsSupported()
104 || (!mTetheringSupported && (functions & UsbManager.FUNCTION_RNDIS) != 0)) { in areFunctionsSupported()
107 return !(areFunctionDisallowed(functions) || areFunctionsDisallowedBySystem(functions) in areFunctionsSupported()
108 || areFunctionsDisallowedByNonAdminUser(functions)); in areFunctionsSupported()
167 public static String usbFunctionsToString(long functions) { in usbFunctionsToString() argument
[all …]
DUsbDefaultFragment.java72 (connected, functions, powerRole, dataRole, isUsbConfigured) -> {
75 + functions + ", defaultFunctions : " + defaultFunctions
80 && defaultFunctions == functions)
87 mCurrentFunctions = functions;
88 refresh(functions);
165 long functions = UsbBackend.usbFunctionsFromString(key); in setDefaultKey() local
168 if (functions == UsbManager.FUNCTION_RNDIS || functions == UsbManager.FUNCTION_NCM) { in setDefaultKey()
171 mCurrentFunctions = functions; in setDefaultKey()
175 mCurrentFunctions = functions; in setDefaultKey()
176 mUsbBackend.setDefaultUsbFunctions(functions); in setDefaultKey()
[all …]
DConnectedUsbDeviceUpdater.java58 (connected, functions, powerRole, dataRole, isUsbConfigured) -> {
61 ? functions : UsbManager.FUNCTION_NONE, powerRole));
121 public static int getSummary(long functions, int power) { in getSummary() argument
124 if (functions == UsbManager.FUNCTION_MTP) { in getSummary()
126 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
128 } else if (functions == UsbManager.FUNCTION_PTP) { in getSummary()
130 } else if (functions == UsbManager.FUNCTION_MIDI) { in getSummary()
136 if (functions == UsbManager.FUNCTION_MTP) { in getSummary()
138 } else if (functions == UsbManager.FUNCTION_RNDIS) { in getSummary()
140 } else if (functions == UsbManager.FUNCTION_PTP) { in getSummary()
[all …]
DUsbConnectionBroadcastReceiver.java69 long functions = UsbManager.FUNCTION_NONE; in onReceive() local
72 functions |= UsbManager.FUNCTION_MTP; in onReceive()
76 functions |= UsbManager.FUNCTION_PTP; in onReceive()
79 functions |= UsbManager.FUNCTION_MIDI; in onReceive()
82 functions |= UsbManager.FUNCTION_RNDIS; in onReceive()
85 functions |= UsbManager.FUNCTION_ACCESSORY; in onReceive()
88 functions |= UsbManager.FUNCTION_NCM; in onReceive()
90 mFunctions = functions; in onReceive()
147 void onUsbConnectionChanged(boolean connected, long functions, int powerRole, int dataRole, in onUsbConnectionChanged() argument
DUsbDetailsTranscodeMtpController.java63 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
73 connected && isDeviceInFileTransferMode(functions, dataRole)); in refresh()
99 private static boolean isDeviceInFileTransferMode(long functions, int dataRole) { in isDeviceInFileTransferMode() argument
100 return dataRole == DATA_ROLE_DEVICE && ((functions & UsbManager.FUNCTION_MTP) != 0 in isDeviceInFileTransferMode()
101 || (functions & UsbManager.FUNCTION_PTP) != 0); in isDeviceInFileTransferMode()
DUsbDetailsFunctionsController.java100 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
102 Log.d(TAG, "refresh() connected : " + connected + ", functions : " + functions in refresh()
117 if (isAccessoryMode(functions)) { in refresh()
119 } else if (functions == UsbManager.FUNCTION_NCM) { in refresh()
122 pref.setChecked(functions == option); in refresh()
DUsbDetailsFragment.java53 (connected, functions, powerRole, dataRole, isUsbFigured) -> {
55 controller.refresh(connected, functions, powerRole, dataRole);
DUsbDetailsController.java63 protected abstract void refresh(boolean connected, long functions, int powerRole, int dataRole); in refresh() argument
DUsbDetailsHeaderController.java50 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
DUsbDetailsPowerRoleController.java69 protected void refresh(boolean connected, long functions, int powerRole, int dataRole) { in refresh() argument
/packages/modules/Bluetooth/system/main/
Dbte_logmsg.cc235 for (tBTTRC_FUNC_MAP* functions = &bttrc_set_level_map[0]; in load_levels_from_config() local
236 functions->trc_name; ++functions) { in load_levels_from_config()
238 functions->trc_name, -1); in load_levels_from_config()
240 functions->trace_level = value; in load_levels_from_config()
244 functions->trc_name); in load_levels_from_config()
245 functions->trace_level = BT_TRACE_LEVEL_VERBOSE; in load_levels_from_config()
247 LOG_INFO("BTE_InitTraceLevels -- %s : Level %d", functions->trc_name, in load_levels_from_config()
248 functions->trace_level); in load_levels_from_config()
249 if (functions->p_f) functions->p_f(functions->trace_level); in load_levels_from_config()
DAndroid.bp95 // References to global symbols and functions should bind to the library
99 ldflags: ["-Wl,-Bsymbolic,-Bsymbolic-functions"],
/packages/apps/Car/DebuggingRestrictionController/server/functions/
Dindex.js3 const functions = require('firebase-functions'); constant
10 exports.requestAccessToken = functions.https.onCall((data, context) => {
12 throw new functions.https.HttpsError('failed-precondition', 'Unauthorized user');
20 functions.logger.log("Payload: ", payload);
21 const config = functions.config().api_config;
30 functions.logger.log("Signed Token: ", token);
/packages/apps/Car/DebuggingRestrictionController/server/
DHOW_TO.md18 +- functions/ # Directory containing the function code
35 …[https://firebase.google.com/docs/functions/get-started](https://firebase.google.com/docs/function…
44 * Deploy the config file by running `firebase functions:config:set
47 …ttps://firebase.google.com/docs/functions/manage-functions](hhttps://firebase.google.com/docs/func…
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dpointer.md78 …-intuitive, RapidJSON also provides helper functions, which just wrap the member functions with fr…
126 The other functions, including `Create()`, `GetWithDefault()`, `Set()` and `Swap()`, will change th…
136 …y. `Get()` only treats this token as a member name '"-"'. Yet the other functions can resolve this…
149functions have two groups of signature. One group uses `Document& document` as parameter, another …
184 Note that, all resolving functions assumes valid pointer. Resolving with an invalid pointer causes …
Dsax.md94 …e, instead of using class with virtual functions. This paradigm can improve the performance by inl…
98 …the events (function calls) from `Reader`. The handler must contain the following member functions.
126 …s members it first calls `Key()` for the name of member, and then calls functions depending on the…
128 …rray, the `Reader` calls `BeginArary()`. If there is elements, it calls functions according to the…
130 Every handler functions returns a `bool`. Normally it should returns `true`. If the handler encount…
174 …()` to obtain the error states. Actually `Document` uses these `Reader` functions to obtain parse …
/packages/modules/Bluetooth/system/doc/
Dstyle_guide.md63 * use functions or, if absolutely necessary, inline functions instead of macros
81 ### Variadic functions
82 Variadic functions are dangerous and should be avoided for most code. The
173 Likewise, use `osi_free` over `free`. These wrapped functions provide additional
176 By convention, functions that contain `*_new` in their name are allocation
177 routines and objects returned from those functions must be freed with the
/packages/modules/Bluetooth/system/osi/src/socket_utils/
DREADME26 and"osi_" prefix is added to all functions
29 the functions as well.
/packages/apps/Car/DebuggingRestrictionController/libs/
DAndroid.bp6 name: "drc-lib-firebase-functions-19.2.0",
7 aars: ["firebase-functions-19.2.0.aar"],
/packages/modules/DnsResolver/
Dcbindgen.toml16 item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions", "constant…
/packages/modules/DnsResolver/tests/doh/
Dcbindgen.toml21 item_types = ["globals", "enums", "structs", "unions", "typedefs", "opaque", "functions", "constant…
/packages/services/Car/car-lib/src/android/car/telemetry/
Dtelemetry.proto48 // functions defined in the listeners below.
49 // The script functions must be `pure` functions.
/packages/apps/Car/DebuggingRestrictionController/app/src/main/java/com/android/car/debuggingrestrictioncontroller/ui/token/
DTokenViewModel.java27 import com.google.firebase.functions.FirebaseFunctions;
/packages/apps/Car/DebuggingRestrictionController/
DAndroid.bp39 "drc-lib-firebase-functions-19.2.0",
/packages/apps/Car/DebuggingRestrictionController/app/
Dbuild.gradle71 implementation 'com.google.firebase:firebase-functions'

123