/external/selinux/libsemanage/tests/ |
D | test_semanage_store.c | 59 int err; in semanage_store_test_init() local 62 err = mkdir(rootpath, S_IRUSR | S_IWUSR | S_IXUSR); in semanage_store_test_init() 63 if (err != 0) in semanage_store_test_init() 66 err = mkdir(polpath, S_IRUSR | S_IWUSR | S_IXUSR); in semanage_store_test_init() 67 if (err != 0) in semanage_store_test_init() 70 err = mkdir(actpath, S_IRUSR | S_IWUSR | S_IXUSR); in semanage_store_test_init() 71 if (err != 0) in semanage_store_test_init() 74 err = mkdir(modpath, S_IRUSR | S_IWUSR | S_IXUSR); in semanage_store_test_init() 75 if (err != 0) in semanage_store_test_init() 91 err = semanage_check_init(sh, rootpath); in semanage_store_test_init() [all …]
|
/external/pdfium/third_party/libjpeg/ |
D | fpdfapi_jerror.c | 64 (*cinfo->err->output_message) (cinfo); in error_exit() 94 (*cinfo->err->format_message) (cinfo, buffer); in output_message() 115 struct jpeg_error_mgr * err = cinfo->err; in emit_message() local 122 if (err->num_warnings == 0 || err->trace_level >= 3) in emit_message() 123 (*err->output_message) (cinfo); in emit_message() 125 err->num_warnings++; in emit_message() 128 if (err->trace_level >= msg_level) in emit_message() 129 (*err->output_message) (cinfo); in emit_message() 145 struct jpeg_error_mgr * err = cinfo->err; in format_message() 146 int msg_code = err->msg_code; in format_message() [all …]
|
/external/libjpeg-turbo/ |
D | jerror.c | 72 (*cinfo->err->output_message) (cinfo); in error_exit() 102 (*cinfo->err->format_message) (cinfo, buffer); in output_message() 129 struct jpeg_error_mgr *err = cinfo->err; in emit_message() local 136 if (err->num_warnings == 0 || err->trace_level >= 3) in emit_message() 137 (*err->output_message) (cinfo); in emit_message() 139 err->num_warnings++; in emit_message() 142 if (err->trace_level >= msg_level) in emit_message() 143 (*err->output_message) (cinfo); in emit_message() 158 struct jpeg_error_mgr *err = cinfo->err; in format_message() local 159 int msg_code = err->msg_code; in format_message() [all …]
|
/external/mdnsresponder/mDNSWindows/NSPTool/ |
D | NSPTool.c | 52 OSStatus err; in main() local 57 err = ProcessArgs( argc, argv ); in main() 58 return( (int) err ); in main() 102 OSStatus err; in ProcessArgs() local 111 err = 0; in ProcessArgs() 124 err = kParamErr; in ProcessArgs() 140 err = InstallNSP( name, guid, path ); in ProcessArgs() 141 require_noerr( err, exit ); in ProcessArgs() 151 err = kParamErr; in ProcessArgs() 160 err = RemoveNSP( guid ); in ProcessArgs() [all …]
|
/external/bison/lib/glthread/ |
D | lock.c | 40 int err; in glthread_rwlock_init_multithreaded() local 42 err = pthread_rwlock_init (&lock->rwlock, NULL); in glthread_rwlock_init_multithreaded() 43 if (err != 0) in glthread_rwlock_init_multithreaded() 44 return err; in glthread_rwlock_init_multithreaded() 54 int err; in glthread_rwlock_rdlock_multithreaded() local 56 err = pthread_mutex_lock (&lock->guard); in glthread_rwlock_rdlock_multithreaded() 57 if (err != 0) in glthread_rwlock_rdlock_multithreaded() 58 return err; in glthread_rwlock_rdlock_multithreaded() 61 err = glthread_rwlock_init_multithreaded (lock); in glthread_rwlock_rdlock_multithreaded() 62 if (err != 0) in glthread_rwlock_rdlock_multithreaded() [all …]
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Functions/ |
D | tFunction_listingFunctions.py | 98 … out, err = self.pfw.sendCmd("importDomainsWithSettingsXML",self.reference_dumpDomains_xml, "") 99 …assert err == None, log.E("Command [importDomainsWithSettingsXML %s] : %s"%(self.reference_dumpDom… 103 out, err = self.pfw.sendCmd("dumpDomains","","") 104 assert err == None, log.E("Command [dumpDomains] : %s"%(err)) 125 out, err = self.pfw.sendCmd("help","") 126 assert err == None, log.E("Command [help] : %s"%(err)) 147 out, err = self.pfw.sendCmd("status","") 148 assert err == None, log.E("Command [help] : %s"%(err)) 169 out, err = self.pfw.sendCmd("listCriteria", "XML") 170 assert err == None, log.E("Command [listCriteria] : %s"%(err)) [all …]
|
D | tFunction_Export_Import_Domains.py | 115 out, err = self.pfw.sendCmd("importDomainsWithSettingsXML",self.reference_xml, "") 116 …assert err == None, log.E("Command [importDomainsWithSettingsXML %s] : %s"%(self.reference_xml,err… 123 out, err = self.pfw.sendCmd("listDomains","","") 124 assert err == None, log.E("Command [listDomains] : %s"%(err)) 137 out, err = self.pfw.sendCmd("listConfigurations",domain_name,"") 138 assert err == None, log.E("Command [listConfigurations %s] : %s"%(domain_name,err)) 161 out, err = self.pfw.sendCmd("getRule",domain_name,conf_name) 162 … assert err == None, log.E("Command [getRules %s %s] : %s"%(domain_name,conf_name,err)) 173 out, err = self.pfw.sendCmd("restoreConfiguration",domain_name,conf_name) 174 … assert err == None, log.E("Command [restoreConfiguration %s %s] : %s"%(domain_name,conf_name,err)) [all …]
|
/external/boringssl/src/util/ |
D | run_android_tests.go | 77 stdout, err := cmd.StdoutPipe() 78 if err != nil { 79 return 0, err 82 if err := cmd.Start(); err != nil { 83 return 0, err 89 n, err := stdout.Read(buf[:]) 92 if err != nil { 97 if err := cmd.Wait(); err != nil { 98 return 0, err 129 if _, err := os.Stat("BUILDING.md"); err == nil { [all …]
|
D | make_errors.go | 38 topLevelPath, err := findToplevel() 39 if err != nil { 40 return err 43 dirName, err := os.Getwd() 44 if err != nil { 45 return err 53 headerFile, err := os.Open(headerPath) 54 if err != nil { 55 if os.IsNotExist(err) { 59 return err [all …]
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | test_FCMOV.c | 55 int err = 0; in main() local 67 err |= !(fcmovb(0) == 1.0); err |= !(fcmovnb(0) != 1.0); in main() 68 err |= !(fcmove(0) == 1.0); err |= !(fcmovne(0) != 1.0); in main() 69 err |= !(fcmovbe(0) == 1.0); err |= !(fcmovnbe(0) != 1.0); in main() 70 err |= !(fcmovu(0) == 1.0); err |= !(fcmovnu(0) != 1.0); in main() 72 err |= !(fcmovb(CF) != 1.0); err |= !(fcmovnb(CF) == 1.0); in main() 73 err |= !(fcmove(CF) == 1.0); err |= !(fcmovne(CF) != 1.0); in main() 74 err |= !(fcmovbe(CF) != 1.0); err |= !(fcmovnbe(CF) == 1.0); in main() 75 err |= !(fcmovu(CF) == 1.0); err |= !(fcmovnu(CF) != 1.0); in main() 77 err |= !(fcmovb(ZF) == 1.0); err |= !(fcmovnb(ZF) != 1.0); in main() [all …]
|
/external/zlib/src/contrib/pascal/ |
D | example.pas | 37 procedure CHECK_ERR(err: Integer; msg: String); 39 if err <> Z_OK then 41 WriteLn(msg, ' error: ', err); 58 var err: Integer; 63 err := compress(compr, comprLen, hello, len); 64 CHECK_ERR(err, 'compress'); 68 err := uncompress(uncompr, uncomprLen, compr, comprLen); 69 CHECK_ERR(err, 'uncompress'); 85 var err: Integer; 101 WriteLn('gzputs err: ', gzerror(zfile, err)); [all …]
|
/external/parameter-framework/upstream/test/functional-tests-legacy/PfwTestCase/Domains/ |
D | tDomain_Configuration_Backup.py | 82 out, err = self.pfw.sendCmd("restoreConfiguration", self.domain_name, self.conf_1) 83 …assert err == None, "Error when restoring configuration %s from domain %s : %s" % (self.conf_1, se… 85 out, err = self.pfw.sendCmd("getParameter", self.param_name) 86 assert err == None, "Error when getting parameter %s : %s" % (self.param_name, err) 92 out, err = self.pfw.sendCmd("setParameter", self.param_name, str(Param_saved_1+1)) 93 assert err == None, "Error when setting parameter %s : %s" % (self.param_name, err) 98 out, err = self.pfw.sendCmd("saveConfiguration", self.domain_name, self.conf_1) 99 …assert err == None, "Error when saving configuration %s from domain %s : %s" % (self.conf_1, self.… 101 out, err = self.pfw.sendCmd("getParameter", self.param_name) 102 assert err == None, "Error when getting parameter %s : %s" % (self.param_name, err) [all …]
|
/external/mdnsresponder/mDNSWindows/SystemService/ |
D | Firewall.cpp | 43 HRESULT err = kNoErr; in mDNSFirewallInitialize() local 52 …err = CoCreateInstance( __uuidof(NetFwMgr), NULL, CLSCTX_INPROC_SERVER, __uuidof(INetFwMgr), (void… in mDNSFirewallInitialize() 53 require(SUCCEEDED(err) && ( fwMgr != NULL ), exit); in mDNSFirewallInitialize() 57 err = fwMgr->get_LocalPolicy(&fwPolicy); in mDNSFirewallInitialize() 58 require(SUCCEEDED(err) && ( fwPolicy != NULL ), exit); in mDNSFirewallInitialize() 69 err = fwPolicy->get_CurrentProfile(fwProfile); in mDNSFirewallInitialize() 71 if (err) in mDNSFirewallInitialize() 76 while (err && (numRetries++ < kMaxTries)); in mDNSFirewallInitialize() 78 require(SUCCEEDED(err), exit); in mDNSFirewallInitialize() 80 err = kNoErr; in mDNSFirewallInitialize() [all …]
|
D | Service.c | 237 OSStatus err; in Main() local 261 err = InstallService( kServiceName, kServiceName, desc, argv[0] ); in Main() 262 if( err ) in Main() 264 ReportStatus( EVENTLOG_ERROR_TYPE, "install service failed (%d)\n", err ); in Main() 270 err = RemoveService( kServiceName ); in Main() 271 if( err ) in Main() 273 ReportStatus( EVENTLOG_ERROR_TYPE, "remove service failed (%d)\n", err ); in Main() 283 err = RunDirect( argc, argv ); in Main() 284 if( err ) in Main() 286 ReportStatus( EVENTLOG_ERROR_TYPE, "run service directly failed (%d)\n", err ); in Main() [all …]
|
/external/selinux/python/semanage/ |
D | test-semanage.py | 12 def assertDenied(self, err): argument 13 self.assertTrue('Permission denied' in err, 14 '"Permission denied" not found in %r' % err) 16 def assertNotFound(self, err): argument 17 self.assertTrue('not found' in err, 18 '"not found" not found in %r' % err) 24 def assertSuccess(self, status, err): argument 26 '"semanage should have succeeded for this test %r' % err) 34 out, err = p.communicate() 35 self.assertSuccess(p.returncode, err) [all …]
|
/external/e2fsprogs/lib/ext2fs/ |
D | fallocate.c | 109 errcode_t err; in ext_falloc_helper() local 172 err = ext2fs_extent_goto(handle, left_ext->e_lblk); in ext_falloc_helper() 173 if (err) in ext_falloc_helper() 181 err = ext2fs_extent_replace(handle, 0, left_ext); in ext_falloc_helper() 182 if (err) in ext_falloc_helper() 184 err = ext2fs_extent_fix_parents(handle); in ext_falloc_helper() 185 if (err) in ext_falloc_helper() 190 err = ext2fs_zero_blocks2(fs, left_ext->e_pblk + in ext_falloc_helper() 194 if (err) in ext_falloc_helper() 221 err = ext2fs_extent_goto(handle, right_ext->e_lblk); in ext_falloc_helper() [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.numeric/locale.num.get/facet.num.get.members/ |
D | get_long.pass.cpp | 53 std::ios_base::iostate err = ios.goodbit; in main() local 57 ios, err, v); in main() 59 assert(err == ios.goodbit); in main() 66 std::ios_base::iostate err = ios.goodbit; in main() local 70 ios, err, v); in main() 72 assert(err == ios.goodbit); in main() 78 std::ios_base::iostate err = ios.goodbit; in main() local 82 ios, err, v); in main() 84 assert(err == ios.goodbit); in main() 90 std::ios_base::iostate err = ios.goodbit; in main() local [all …]
|
/external/e2fsprogs/misc/ |
D | fuse2fs.c | 196 errcode_t err; in fuse_to_ext4_acl() local 203 err = ext2fs_get_mem(h_sz, &h); in fuse_to_ext4_acl() 204 if (err) in fuse_to_ext4_acl() 205 return err; in fuse_to_ext4_acl() 227 err = EXT2_ET_INVALID_ARGUMENT; in fuse_to_ext4_acl() 234 return err; in fuse_to_ext4_acl() 237 return err; in fuse_to_ext4_acl() 249 errcode_t err; in ext4_to_fuse_acl() local 257 err = ext2fs_get_mem(f_sz, &f); in ext4_to_fuse_acl() 258 if (err) in ext4_to_fuse_acl() [all …]
|
/external/icu/icu4c/source/test/iotest/ |
D | trnstst.c | 22 UErrorCode err = U_ZERO_ERROR; in TestTranslitOps() local 34 a = utrans_open("Latin-Greek", UTRANS_FORWARD, NULL, -1, NULL, &err); in TestTranslitOps() 35 if(U_FAILURE(err)) in TestTranslitOps() 37 log_err("Error opening transliterator %s\n", u_errorName(err)); in TestTranslitOps() 44 b = u_fsettransliterator(f, U_WRITE, a, &err); in TestTranslitOps() 45 if(U_FAILURE(err)) in TestTranslitOps() 47 log_err("Error setting transliterator %s\n", u_errorName(err)); in TestTranslitOps() 57 b = u_fsettransliterator(NULL, U_WRITE, a, &err); in TestTranslitOps() 58 if(err != U_ILLEGAL_ARGUMENT_ERROR) in TestTranslitOps() 60 log_err("Error setting transliterator on NULL file err=%s\n", u_errorName(err)); in TestTranslitOps() [all …]
|
/external/e2fsprogs/e2fsck/ |
D | readahead.c | 26 errcode_t err; member 41 pr->err = io_channel_cache_readahead(fs->io, in readahead_dir_block() 46 (int)pr->err); in readahead_dir_block() 53 return pr->err ? DBLIST_ABORT : 0; in readahead_dir_block() 61 errcode_t err; in e2fsck_readahead_dblist() local 70 err = ext2fs_dblist_iterate3(dblist, readahead_dir_block, start, in e2fsck_readahead_dblist() 72 if (pr.err) in e2fsck_readahead_dblist() 73 return pr.err; in e2fsck_readahead_dblist() 74 if (err) in e2fsck_readahead_dblist() 75 return err; in e2fsck_readahead_dblist() [all …]
|
/external/zlib/src/test/ |
D | example.c | 22 #define CHECK_ERR(err, msg) { \ argument 23 if (err != Z_OK) { \ 24 fprintf(stderr, "%s error: %d\n", msg, err); \ 92 int err; local 95 err = compress(compr, &comprLen, (const Bytef*)hello, len); 96 CHECK_ERR(err, "compress"); 100 err = uncompress(uncompr, &uncomprLen, compr, comprLen); 101 CHECK_ERR(err, "uncompress"); 122 int err; 134 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)); [all …]
|
/external/protobuf/examples/ |
D | add_person.go | 24 if _, err := fmt.Fscanf(rd, "%d\n", &p.Id); err != nil { 25 return p, err 29 name, err := rd.ReadString('\n') 30 if err != nil { 31 return p, err 39 email, err := rd.ReadString('\n') 40 if err != nil { 41 return p, err 47 phone, err := rd.ReadString('\n') 48 if err != nil { [all …]
|
/external/selinux/python/sepolicy/ |
D | test_sepolicy.py | 10 def assertDenied(self, err): argument 11 self.assert_('Permission denied' in err, 12 '"Permission denied" not found in %r' % err) 14 def assertNotFound(self, err): argument 15 self.assert_('not found' in err, 16 '"not found" not found in %r' % err) 22 def assertSuccess(self, status, err): argument 24 'sepolicy should have succeeded for this test %r' % err) 29 out, err = p.communicate() 30 self.assertSuccess(p.returncode, err) [all …]
|
/external/libcxx/test/std/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/ |
D | get_monthname.pass.cpp | 38 std::ios_base::iostate err; in main() local 42 err = std::ios_base::goodbit; in main() 44 I i = f.get_monthname(I(in), I(in+sizeof(in)-1), ios, err, &t); in main() 47 assert(err == std::ios_base::eofbit); in main() 51 err = std::ios_base::goodbit; in main() 53 I i = f.get_monthname(I(in), I(in+sizeof(in)-1), ios, err, &t); in main() 56 assert(err == std::ios_base::eofbit); in main() 60 err = std::ios_base::goodbit; in main() 62 I i = f.get_monthname(I(in), I(in+sizeof(in)-1), ios, err, &t); in main() 65 assert(err == std::ios_base::eofbit); in main() [all …]
|
/external/libbrillo/brillo/errors/ |
D | error_unittest.cc | 29 brillo::ErrorPtr err = GenerateNetworkError(); in TEST() local 30 EXPECT_EQ("network", err->GetDomain()); in TEST() 31 EXPECT_EQ("not_found", err->GetCode()); in TEST() 32 EXPECT_EQ("Resource not found", err->GetMessage()); in TEST() 33 EXPECT_EQ("GenerateNetworkError", err->GetLocation().function_name); in TEST() 34 EXPECT_EQ("error_unittest.cc", err->GetLocation().file_name); in TEST() 35 EXPECT_EQ(15, err->GetLocation().line_number); in TEST() 36 EXPECT_EQ(nullptr, err->GetInnerError()); in TEST() 37 EXPECT_TRUE(err->HasDomain("network")); in TEST() 38 EXPECT_FALSE(err->HasDomain("HTTP")); in TEST() [all …]
|