Lines Matching refs:args
49 def _error_handler(*args): argument
51 return func(*args)
464 def do_initialize(self, args): argument
466 if args:
477 def do_adapters(self, args): argument
479 if args:
489 def do_adapter_status(self, args): argument
491 args = args.strip().split(' ')
492 if len(args) != 1 or not args[0]:
495 self._nfc_client.print_adapter_status(NEARD_PATH + args[0])
502 def do_enable_adapter(self, args): argument
504 args = args.strip().split(' ')
505 if len(args) != 1 or not args[0]:
508 self._nfc_client.set_powered(NEARD_PATH + args[0], True)
514 def do_disable_adapter(self, args): argument
516 args = args.strip().split(' ')
517 if len(args) != 1 or not args[0]:
520 self._nfc_client.set_powered(NEARD_PATH + args[0], False)
526 def do_start_poll(self, args): argument
528 args = args.strip().split(' ')
529 if len(args) != 1 or not args[0]:
532 self._nfc_client.start_polling(NEARD_PATH + args[0])
538 def do_stop_poll(self, args): argument
540 args = args.split(' ')
541 if len(args) != 1 or not args[0]:
544 self._nfc_client.stop_polling(NEARD_PATH + args[0])
550 def do_read_tag(self, args): argument
552 args = args.strip().split(' ')
553 if len(args) != 1 or not args[0]:
556 self._nfc_client.show_tag_data(NEARD_PATH + args[0])
562 def _parse_record_args(self, record_type, args): argument
564 if len(args) < 5:
568 if args[2] not in [ 'UTF-8', 'UTF-16' ]:
572 'Encoding': args[2],
573 'Language': args[3],
574 'Representation': ' '.join(args[4:])
577 if len(args) != 3:
581 'URI': args[2]
587 def do_write_tag(self, args): argument
589 args = args.strip().split(' ')
590 if len(args) < 3:
593 record_type = args[1]
594 params = self._parse_record_args(record_type, args)
597 self._nfc_client.write_tag(NEARD_PATH + args[0],
606 def do_read_device(self, args): argument
608 args = args.strip().split(' ')
609 if len(args) != 1 or not args[0]:
612 self._nfc_client.show_device_data(NEARD_PATH + args[0])
619 def do_push_to_device(self, args): argument
621 args = args.strip().split(' ')
622 if len(args) < 3:
625 record_type = args[1]
626 params = self._parse_record_args(record_type, args)
629 self._nfc_client.push_to_device(NEARD_PATH + args[0],
638 def do_exit(self, args): argument
645 if args: