/frameworks/native/vulkan/scripts/ |
D | api_generator.py | 43 for cmd in gencom.command_list: 44 if cmd not in gencom.alias_dict: 45 if gencom.is_instance_dispatch_table_entry(cmd): 47 'PFN_' + cmd + ' ' + gencom.base_name(cmd) + ';') 48 elif gencom.is_device_dispatch_table_entry(cmd): 50 'PFN_' + cmd + ' ' + gencom.base_name(cmd) + ';') 105 def _define_extension_stub(cmd, f): argument 112 if (cmd in gencom.extension_dict and gencom.is_function_exported(cmd)): 113 ext_name = gencom.extension_dict[cmd] 114 ret = gencom.return_type_dict[cmd] [all …]
|
D | driver_generator.py | 165 def _is_driver_table_entry(cmd): argument 171 if gencom.is_function_supported(cmd): 172 if cmd in _NEEDED_COMMANDS: 174 if cmd in gencom.extension_dict: 175 if (gencom.extension_dict[cmd] == 'VK_ANDROID_native_buffer' or 176 gencom.extension_dict[cmd] == 'VK_EXT_debug_report'): 181 def _is_instance_driver_table_entry(cmd): argument 187 return (_is_driver_table_entry(cmd) and 188 gencom.is_instance_dispatched(cmd)) 191 def _is_device_driver_table_entry(cmd): argument [all …]
|
D | null_generator.py | 31 def _is_driver_function(cmd): argument 37 if cmd in gencom.extension_dict: 38 return gencom.extension_dict[cmd] in _DRIVER_EXTENSION_DICT 65 for cmd in gencom.command_list: 66 if _is_driver_function(cmd): 67 param_list = [''.join(i) for i in gencom.param_dict[cmd]] 68 f.write('VKAPI_ATTR ' + gencom.return_type_dict[cmd] + ' ' + 69 gencom.base_name(cmd) + '(' + ', '.join(param_list) + ');\n') 125 for cmd in sorted_command_list: 126 if (_is_driver_function(cmd) and [all …]
|
D | generator_common.py | 166 def base_name(cmd): argument 172 return cmd[2:] 202 def is_function_supported(cmd): argument 208 if cmd not in extension_dict: 211 if extension_dict[cmd] not in _BLOCKED_EXTENSIONS: 216 def get_dispatch_table_type(cmd): argument 222 if cmd not in param_dict: 225 if param_dict[cmd]: 226 return _DISPATCH_TYPE_DICT.get(param_dict[cmd][0][0], 'Global') 230 def is_globally_dispatched(cmd): argument [all …]
|
/frameworks/base/core/java/android/nfc/tech/ |
D | MifareClassic.java | 373 byte[] cmd = new byte[12]; in authenticate() 377 cmd[0] = 0x60; // phHal_eMifareAuthentA in authenticate() 379 cmd[0] = 0x61; // phHal_eMifareAuthentB in authenticate() 385 cmd[1] = (byte) sectorToBlock(sector); in authenticate() 389 System.arraycopy(uid, uid.length - 4, cmd, 2, 4); in authenticate() 392 System.arraycopy(key, 0, cmd, 6, 6); in authenticate() 395 if (transceive(cmd, false) != null) { in authenticate() 424 byte[] cmd = { 0x30, (byte) blockIndex }; in readBlock() 425 return transceive(cmd, false); in readBlock() 449 byte[] cmd = new byte[data.length + 2]; in writeBlock() [all …]
|
/frameworks/base/media/java/android/media/ |
D | AsyncPlayer.java | 54 private void startSound(Command cmd) { in startSound() argument 61 player.setAudioAttributes(cmd.attributes); in startSound() 62 player.setDataSource(cmd.context, cmd.uri); in startSound() 63 player.setLooping(cmd.looping); in startSound() 70 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 76 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 87 Command cmd = null; in run() local 91 cmd = mCmdQueue.removeFirst(); in run() 94 switch (cmd.code) { in run() 97 startSound(cmd); in run() [all …]
|
/frameworks/base/services/core/java/com/android/server/hdmi/ |
D | DeviceDiscoveryAction.java | 285 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 288 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS) { in processCommand() 289 handleReportPhysicalAddress(cmd); in processCommand() 294 if (cmd.getOpcode() == Constants.MESSAGE_SET_OSD_NAME) { in processCommand() 295 handleSetOsdName(cmd); in processCommand() 297 } else if ((cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT) && in processCommand() 298 ((cmd.getParams()[0] & 0xFF) == Constants.MESSAGE_GIVE_OSD_NAME)) { in processCommand() 299 handleSetOsdName(cmd); in processCommand() 304 if (cmd.getOpcode() == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand() 305 handleVendorId(cmd); in processCommand() [all …]
|
D | RequestSadAction.java | 157 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 159 || mTargetAddress != cmd.getSource()) { in processCommand() 162 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_SHORT_AUDIO_DESCRIPTOR) { in processCommand() 163 if (cmd.getParams() == null || cmd.getParams().length == 0 in processCommand() 164 || cmd.getParams().length % 3 != 0) { in processCommand() 168 for (int i = 0; i < cmd.getParams().length - 2; i += 3) { in processCommand() 169 if (isValidCodec(cmd.getParams()[i])) { in processCommand() 170 byte[] sad = new byte[]{cmd.getParams()[i], cmd.getParams()[i + 1], in processCommand() 171 cmd.getParams()[i + 2]}; in processCommand() 175 Slog.w(TAG, "Dropped invalid codec " + cmd.getParams()[i] + "."); in processCommand() [all …]
|
D | AbsoluteVolumeAudioStatusAction.java | 61 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 62 switch (cmd.getOpcode()) { in processCommand() 64 return handleReportAudioStatus(cmd); in processCommand() 70 private boolean handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument 71 if (mTargetAddress != cmd.getSource() || cmd.getParams().length == 0) { in handleReportAudioStatus() 75 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus() 76 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus()
|
D | VolumeControlAction.java | 126 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 127 if (mState != STATE_WAIT_FOR_NEXT_VOLUME_PRESS || cmd.getSource() != mAvrAddress) { in processCommand() 131 switch (cmd.getOpcode()) { in processCommand() 133 return handleReportAudioStatus(cmd); in processCommand() 135 return handleFeatureAbort(cmd); in processCommand() 140 private boolean handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument 141 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus() 142 int volume = HdmiUtils.getAudioStatusVolume(cmd); in handleReportAudioStatus() 172 private boolean handleFeatureAbort(HdmiCecMessage cmd) { in handleFeatureAbort() argument 173 int originalOpcode = cmd.getParams()[0] & 0xFF; in handleFeatureAbort()
|
D | OneTouchRecordAction.java | 79 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 80 if (mState != STATE_WAITING_FOR_RECORD_STATUS || mRecorderAddress != cmd.getSource()) { in processCommand() 84 switch (cmd.getOpcode()) { in processCommand() 86 return handleRecordStatus(cmd); in processCommand() 91 private boolean handleRecordStatus(HdmiCecMessage cmd) { in handleRecordStatus() argument 93 if (cmd.getSource() != mRecorderAddress) { in handleRecordStatus() 97 int recordStatus = cmd.getParams()[0]; in handleRecordStatus() 99 Slog.i(TAG, "Got record status:" + recordStatus + " from " + cmd.getSource()); in handleRecordStatus()
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | VolumeCtrl.java | 64 public static void run(MediaShellCommand cmd) throws Exception { in run() argument 78 while ((option = cmd.getNextOption()) != null) { in run() 85 cmd.log(LOG_V, "will get volume"); in run() 88 stream = Integer.decode(cmd.getNextArgRequired()).intValue(); in run() 89 cmd.log(LOG_V, in run() 93 volIndex = Integer.decode(cmd.getNextArgRequired()).intValue(); in run() 95 cmd.log(LOG_V, "will set volume to index=" + volIndex); in run() 99 adjustment = cmd.getNextArgRequired(); in run() 100 cmd.log(LOG_V, "will adjust volume"); in run() 111 cmd.showError("Error: no valid volume adjustment (null)"); in run() [all …]
|
D | MediaShellCommand.java | 64 public int onCommand(String cmd) { in onCommand() argument 69 if (TextUtils.isEmpty(cmd)) { in onCommand() 70 return handleDefaultCommands(cmd); in onCommand() 87 if (cmd.equals("dispatch")) { in onCommand() 89 } else if (cmd.equals("list-sessions")) { in onCommand() 91 } else if (cmd.equals("monitor")) { in onCommand() 93 } else if (cmd.equals("volume")) { in onCommand() 96 showError("Error: unknown command '" + cmd + "'"); in onCommand() 164 String cmd = getNextArgRequired(); in runDispatch() local 166 if ("play".equals(cmd)) { in runDispatch() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 78 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument 80 mCmd = cmd; in CreationAndCompletionThread() 183 private void startSound(Command cmd) { in startSound() argument 201 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound() 209 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 215 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 226 Command cmd = null; in run() local 230 cmd = mCmdQueue.removeFirst(); in run() 233 switch (cmd.code) { in run() 236 startSound(cmd); in run() [all …]
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | CommandOptionsTest.kt | 64 val cmd = CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses() constant 65 assertEquals(CommandOptions.TRANSFORM_CALLS_CMD, cmd.command) in transformClasses() 66 assertEquals(TEST_PROTOLOG_CLASS, cmd.protoLogClassNameArg) in transformClasses() 67 assertEquals(TEST_PROTOLOGIMPL_CLASS, cmd.protoLogImplClassNameArg) in transformClasses() 68 assertEquals(TEST_PROTOLOGGROUP_CLASS, cmd.protoLogGroupsClassNameArg) in transformClasses() 69 assertEquals(TEST_PROTOLOGGROUP_JAR, cmd.protoLogGroupsJarArg) in transformClasses() 70 assertEquals(TEST_SRC_JAR, cmd.outputSourceJarArg) in transformClasses() 71 assertEquals(TEST_JAVA_SRC, cmd.javaSourceArgs) in transformClasses() 252 val cmd = CommandOptions(testLine.split(' ').toTypedArray()) in generateConfig() constant 253 assertEquals(CommandOptions.GENERATE_CONFIG_CMD, cmd.command) in generateConfig() [all …]
|
/frameworks/base/tools/bit/ |
D | adb.cpp | 50 Command cmd("adb"); in run_adb() local 56 cmd.AddArg(first); in run_adb() 65 cmd.AddArg(arg); in run_adb() 69 return run_command(cmd); in run_adb() 75 Command cmd("adb"); in get_system_property() local 76 cmd.AddArg("shell"); in get_system_property() 77 cmd.AddArg("getprop"); in get_system_property() 78 cmd.AddArg(name); in get_system_property() 80 return trim(get_command_output(cmd, err, false)); in get_system_property() 280 Command cmd("adb"); in run_instrumentation_test() local [all …]
|
/frameworks/base/tests/ApkVerityTest/src/com/android/apkverity/ |
D | BaseInstallMultiple.java | 85 final StringBuilder cmd = new StringBuilder(); in run() local 86 cmd.append("pm install-create"); in run() 88 cmd.append(' ').append(arg); in run() 91 String result = device.executeShellCommand(cmd.toString()); in run() 118 cmd.setLength(0); in run() 119 cmd.append("pm install-write"); in run() 120 cmd.append(' ').append(sessionId); in run() 121 cmd.append(' ').append(remoteName); in run() 122 cmd.append(' ').append(remotePath); in run() 124 result = device.executeShellCommand(cmd.toString()); in run() [all …]
|
/frameworks/base/core/java/com/android/internal/widget/ |
D | AdapterHelper.java | 96 switch (op.cmd) { in preProcess() 230 if (op.cmd == UpdateOp.ADD || op.cmd == UpdateOp.MOVE) { in dispatchAndUpdateViewHolders() 244 int tmpStart = updatePositionWithPostponed(op.positionStart, op.cmd); in dispatchAndUpdateViewHolders() 251 switch (op.cmd) { in dispatchAndUpdateViewHolders() 263 int updatedPos = updatePositionWithPostponed(pos, op.cmd); in dispatchAndUpdateViewHolders() 268 switch (op.cmd) { in dispatchAndUpdateViewHolders() 280 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, op.payload); in dispatchAndUpdateViewHolders() 286 if (op.cmd == UpdateOp.UPDATE) { in dispatchAndUpdateViewHolders() 296 UpdateOp tmp = obtainUpdateOp(op.cmd, tmpStart, tmpCnt, payload); in dispatchAndUpdateViewHolders() 315 switch (op.cmd) { in dispatchFirstPassAndUpdateViewHolders() [all …]
|
/frameworks/native/opengl/tools/glgen2/ |
D | glgen.py | 119 def genCmd(self, cmd, name): argument 122 reg.OutputGenerator.genCmd(self, cmd, name) 124 rtype, fname = parseProto(cmd.elem.find('proto')) 125 params = [parseParam(p) for p in cmd.elem.findall('param')] 146 def genCmd(self, cmd, name): argument 149 reg.OutputGenerator.genCmd(self, cmd, name) 150 rtype, fname = parseProto(cmd.elem.find('proto')) 151 params = [parseParam(p) for p in cmd.elem.findall('param')] 192 for cmd in self.cmds: 193 if len(cmds) == 0 or cmd != cmds[-1]: [all …]
|
/frameworks/native/cmds/installd/ |
D | otapreopt_script.sh | 53 PREPARE=$(cmd otadexopt prepare) 58 PROGRESS=$(cmd otadexopt progress) 63 DEXOPT_PARAMS=$(cmd otadexopt next) 67 PROGRESS=$(cmd otadexopt progress) 70 DONE=$(cmd otadexopt done) 79 DONE=$(cmd otadexopt done) 87 cmd otadexopt cleanup
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | DumpHelper.java | 122 String cmd = args[opti]; in doDump() local 125 if ("android".equals(cmd) || cmd.contains(".")) { in doDump() 126 dumpState.setTargetPackageName(cmd); in doDump() 130 } else if ("check-permission".equals(cmd)) { in doDump() 161 } else if ("l".equals(cmd) || "libraries".equals(cmd)) { in doDump() 163 } else if ("f".equals(cmd) || "features".equals(cmd)) { in doDump() 165 } else if ("r".equals(cmd) || "resolvers".equals(cmd)) { in doDump() 189 } else if ("perm".equals(cmd) || "permissions".equals(cmd)) { in doDump() 191 } else if ("permission".equals(cmd)) { in doDump() 203 } else if ("pref".equals(cmd) || "preferred".equals(cmd)) { in doDump() [all …]
|
/frameworks/base/cmds/svc/ |
D | svc | 9 exec cmd wifi set-wifi-enabled enabled 11 exec cmd wifi set-wifi-enabled disabled 24 exec cmd phone data enable 26 exec cmd phone data disable 42 exec cmd bluetooth_manager enable 44 exec cmd bluetooth_manager disable
|
/frameworks/base/cmds/uiautomator/cmds/uiautomator/ |
D | uiautomator | 50 cmd=${1} 53 cmd="help" 70 if [ "${cmd}" == "runtest" ]; then 80 cmd="help" 99 cmd="help" 122 args="${cmd} ${args}"
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/flags/ |
D | FlagCommandTest.kt | 41 private lateinit var cmd: FlagCommand in <lambda>() variable in com.android.systemui.flags.FlagCommandTest 61 cmd = FlagCommand(featureFlags, flagMap) in <lambda>() 66 cmd.execute(pw, listOf(flagA.name)) in <lambda>() 72 cmd.execute(pw, listOf(stringFlag.name)) in <lambda>() 78 cmd.execute(pw, listOf(intFlag.name)) in <lambda>() 84 cmd.execute(pw, listOf(flagB.name, "on")) in <lambda>() 90 cmd.execute(pw, listOf(stringFlag.name, "set", "foobar")) in <lambda>() 96 cmd.execute(pw, listOf(intFlag.name, "put", "123")) in <lambda>() 102 cmd.execute(pw, listOf(flagB.name, "toggle")) in <lambda>() 108 cmd.execute(pw, listOf(flagA.name, "erase")) in <lambda>()
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamShellCommand.java | 41 public int onCommand(String cmd) { in onCommand() argument 48 if (TextUtils.isEmpty(cmd)) { in onCommand() 49 return super.handleDefaultCommands(cmd); in onCommand() 52 Slog.d(TAG, "onCommand:" + cmd); in onCommand() 55 switch (cmd) { in onCommand() 61 return super.handleDefaultCommands(cmd); in onCommand()
|