/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 | 171 def _is_driver_table_entry(cmd): argument 177 if gencom.is_function_supported(cmd): 178 if cmd in _NEEDED_COMMANDS: 180 if cmd in gencom.extension_dict: 181 if (gencom.extension_dict[cmd] == 'VK_ANDROID_native_buffer' or 182 gencom.extension_dict[cmd] == 'VK_EXT_debug_report'): 187 def _is_instance_driver_table_entry(cmd): argument 193 return (_is_driver_table_entry(cmd) and 194 gencom.is_instance_dispatched(cmd)) 197 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 | 168 def base_name(cmd): argument 174 return cmd[2:] 204 def is_function_supported(cmd): argument 210 if cmd not in extension_dict: 213 if extension_dict[cmd] not in _BLOCKED_EXTENSIONS: 218 def get_dispatch_table_type(cmd): argument 224 if cmd not in param_dict: 227 if param_dict[cmd]: 228 return _DISPATCH_TYPE_DICT.get(param_dict[cmd][0][0], 'Global') 232 def is_globally_dispatched(cmd): argument [all …]
|
/frameworks/base/tools/protologtool/tests/com/android/protolog/tool/ |
D | CommandOptionsTest.kt | 78 val cmd = CommandOptions(testLine.split(' ').toTypedArray()) in transformClasses() constant 79 assertEquals(CommandOptions.TRANSFORM_CALLS_CMD, cmd.command) in transformClasses() 80 assertEquals(TEST_PROTOLOG_CLASS, cmd.protoLogClassNameArg) in transformClasses() 81 assertEquals(TEST_PROTOLOGGROUP_CLASS, cmd.protoLogGroupsClassNameArg) in transformClasses() 82 assertEquals(TEST_PROTOLOGGROUP_JAR, cmd.protoLogGroupsJarArg) in transformClasses() 83 assertEquals(TEST_VIEWER_CONFIG_FILE_PATH, cmd.viewerConfigFilePathArg) in transformClasses() 84 assertEquals(TEST_LEGACY_VIEWER_CONFIG_FILE_PATH, cmd.legacyViewerConfigFilePathArg) in transformClasses() 85 assertEquals(TEST_LEGACY_OUTPUT_FILE_PATH, cmd.legacyOutputFilePath) in transformClasses() 86 assertEquals(TEST_SRC_JAR, cmd.outputSourceJarArg) in transformClasses() 87 assertEquals(TEST_JAVA_SRC, cmd.javaSourceArgs) in transformClasses() [all …]
|
/frameworks/base/nfc/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 | 291 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 294 if (cmd.getOpcode() == Constants.MESSAGE_REPORT_PHYSICAL_ADDRESS) { in processCommand() 295 handleReportPhysicalAddress(cmd); in processCommand() 300 if (cmd.getOpcode() == Constants.MESSAGE_SET_OSD_NAME) { in processCommand() 301 handleSetOsdName(cmd); in processCommand() 303 } else if ((cmd.getOpcode() == Constants.MESSAGE_FEATURE_ABORT) && in processCommand() 304 ((cmd.getParams()[0] & 0xFF) == Constants.MESSAGE_GIVE_OSD_NAME)) { in processCommand() 305 handleSetOsdName(cmd); in processCommand() 310 if (cmd.getOpcode() == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand() 311 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 | 64 boolean processCommand(HdmiCecMessage cmd) { in processCommand() argument 65 switch (cmd.getOpcode()) { in processCommand() 67 return handleReportAudioStatus(cmd); in processCommand() 82 private boolean handleReportAudioStatus(HdmiCecMessage cmd) { in handleReportAudioStatus() argument 83 if (mTargetAddress != cmd.getSource() || cmd.getParams().length == 0) { in handleReportAudioStatus() 87 boolean mute = HdmiUtils.isAudioStatusMute(cmd); in handleReportAudioStatus() 88 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/packages/SystemUI/src/com/android/systemui/statusbar/commandline/ |
D | SubCommand.kt | 35 val cmd: ParseableCommand constant 54 override val cmd: T, in parseSubCommandArgs() constant in com.android.systemui.statusbar.commandline.OptionalSubCommand 57 override val longName: String = cmd.name in parseSubCommandArgs() 58 override val description: String? = cmd.description in parseSubCommandArgs() 65 validationStatus = cmd.parser.parseAsSubCommand(iterator) in parseSubCommandArgs() 71 cmd in parseSubCommandArgs() 77 cmd.help(pw) in parseSubCommandArgs() 86 override val cmd: T, constant in com.android.systemui.statusbar.commandline.RequiredSubCommand 89 override val longName: String = cmd.name 90 override val description: String? = cmd.description [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 79 public CreationAndCompletionThread(Command cmd) { in CreationAndCompletionThread() argument 81 mCmd = cmd; in CreationAndCompletionThread() 185 private void startSound(Command cmd) { in startSound() argument 203 mCompletionThread = new CreationAndCompletionThread(cmd); in startSound() 211 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in startSound() 217 Log.w(mTag, "error loading sound for " + cmd.uri, e); in startSound() 221 private void stopSound(Command cmd) { in stopSound() argument 232 long delay = SystemClock.uptimeMillis() - cmd.requestTime; in stopSound() 280 Command cmd = null; in run() local 284 cmd = mCmdQueue.removeFirst(); in run() [all …]
|
/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 | 65 public int onCommand(String cmd) { in onCommand() argument 70 if (TextUtils.isEmpty(cmd)) { in onCommand() 71 return handleDefaultCommands(cmd); in onCommand() 88 if (cmd.equals("dispatch")) { in onCommand() 90 } else if (cmd.equals("list-sessions")) { in onCommand() 92 } else if (cmd.equals("monitor")) { in onCommand() 94 } else if (cmd.equals("volume")) { in onCommand() 96 } else if (cmd.equals("expire-temp-engaged-sessions")) { in onCommand() 99 showError("Error: unknown command '" + cmd + "'"); in onCommand() 171 String cmd = getNextArgRequired(); in runDispatch() local [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("exec-out"); 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/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/base/tests/BinaryTransparencyHostTest/src/android/transparency/test/ |
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/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/base/services/core/java/com/android/server/pm/ |
D | DumpHelper.java | 127 String cmd = args[opti]; in doDump() local 130 if ("android".equals(cmd) || cmd.contains(".")) { in doDump() 131 dumpState.setTargetPackageName(cmd); in doDump() 135 } else if ("check-permission".equals(cmd)) { in doDump() 167 } else if ("l".equals(cmd) || "libraries".equals(cmd)) { in doDump() 169 } else if ("f".equals(cmd) || "features".equals(cmd)) { in doDump() 171 } else if ("r".equals(cmd) || "resolvers".equals(cmd)) { in doDump() 195 } else if ("perm".equals(cmd) || "permissions".equals(cmd)) { in doDump() 197 } else if ("permission".equals(cmd)) { in doDump() 209 } else if ("pref".equals(cmd) || "preferred".equals(cmd)) { in doDump() [all …]
|
/frameworks/base/cmds/svc/ |
D | svc.sh | 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/libs/binary_translation/kernel_api/ |
D | fcntl_emulation.cc | 112 int GuestFcntl(int fd, int cmd, long arg_3) { in GuestFcntl() argument 113 auto [processed, result] = GuestFcntlArch(fd, cmd, arg_3); in GuestFcntl() 118 switch (cmd) { in GuestFcntl() 123 return fcntl(fd, cmd); in GuestFcntl() 125 auto result = fcntl(fd, cmd); in GuestFcntl() 157 cmd + F_SETLK - GUEST_F_SETLK, in GuestFcntl() 159 if (result == 0 && cmd == GUEST_F_GETLK) { in GuestFcntl() 167 return fcntl(fd, cmd, arg_3); in GuestFcntl() 170 return fcntl(fd, cmd, ToHostOpenFlags(arg_3)); in GuestFcntl() 172 KAPI_TRACE("Unknown fcntl command: %d", cmd); in GuestFcntl()
|
/frameworks/native/cmds/installd/ |
D | otapreopt_script.sh | 93 PREPARE=$(cmd otadexopt prepare) 101 DONE=$(cmd otadexopt done) 108 DONE=$(cmd otadexopt done) 109 cmd otadexopt cleanup 114 for cmd in "${otadexopt_cmds[@]}" ; do 115 print "$cmd"
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/commandline/ |
D | ParseableCommandTest.kt | 138 val cmd = in executeDoesNotPropagateExceptions() constant 147 assertThrows(ArgParseError::class.java) { cmd.parser.parse(throwingCommand) } in executeDoesNotPropagateExceptions() 150 cmd.execute(pw, throwingCommand) in executeDoesNotPropagateExceptions() 155 val cmd = in executeFailingCommand_callsOnParseFailed() constant 168 cmd.execute(pw, throwingCommand) in executeFailingCommand_callsOnParseFailed() 170 assertTrue(cmd.onParseFailedCalled) in executeFailingCommand_callsOnParseFailed() 193 val cmd = MyCommand() in commandWithArgs() constant 194 cmd.execute(pw, cmdWithSingleArgParam) in commandWithArgs() 196 assertThat(cmd.singleParam).isEqualTo("single_param") in commandWithArgs() 201 val cmd = in commandWithRequiredParam_provided() constant [all …]
|