Home
last modified time | relevance | path

Searched refs:name (Results 1 – 25 of 248) sorted by relevance

12345678910

/system/core/libsysutils/src/
DServiceManager.cpp41 int ServiceManager::start(const char *name) { in start() argument
42 if (strlen(name) > SERVICE_NAME_MAX) { in start()
43 SLOGE("Service name '%s' is too long", name); in start()
46 if (isRunning(name)) { in start()
47 SLOGW("Service '%s' is already running", name); in start()
51 SLOGD("Starting service '%s'", name); in start()
52 property_set("ctl.start", name); in start()
58 if (isRunning(name)) in start()
62 SLOGW("Timed out waiting for service '%s' to start", name); in start()
66 SLOGD("Sucessfully started '%s'", name); in start()
[all …]
/system/core/include/netutils/
Difc.h28 extern int ifc_get_ifindex(const char *name, int *if_indexp);
29 extern int ifc_get_hwaddr(const char *name, void *ptr);
31 extern int ifc_up(const char *name);
32 extern int ifc_down(const char *name);
42 extern int ifc_get_addr(const char *name, in_addr_t *addr);
43 extern int ifc_set_addr(const char *name, in_addr_t addr);
44 extern int ifc_add_address(const char *name, const char *address,
46 extern int ifc_del_address(const char *name, const char *address,
48 extern int ifc_set_prefixLength(const char *name, int prefixLength);
49 extern int ifc_set_hwaddr(const char *name, const void *ptr);
[all …]
/system/core/toolbox/
Dtoolbox.c18 #define TOOL(name) int name##_main(int, char**); argument
24 const char *name; member
28 #define TOOL(name) { #name, name##_main }, argument
37 char *name = argv[0]; in main() local
40 name = argv[1] + 1; in main()
46 name = cmd + 1; in main()
49 for(i = 0; tools[i].name; i++){ in main()
50 if(!strcmp(tools[i].name, name)){ in main()
Dsyren.c23 const char *name; member
43 static syren_reg *find_reg(const char *name) in find_reg() argument
47 for (i = 0; registers[i].name != 0; i++) { in find_reg()
48 if (!strcasecmp(registers[i].name, name)) in find_reg()
67 char name[32]; in syren_main() local
110 for (i = 0; registers[i].name; i++) { in syren_main()
114 fprintf(stderr, "%s: error\n", registers[i].name); in syren_main()
116 fprintf(stderr, "%s: %04x\n", registers[i].name, sio.value); in syren_main()
126 strcpy(name, argv[2]); in syren_main()
134 strcpy(name, r->name); in syren_main()
[all …]
Dls.c33 static int listpath(const char *name, int flags);
171 const char *name; in listfile_long() local
174 name = strrchr(path, '/'); in listfile_long()
175 if(name == 0) { in listfile_long()
176 name = path; in listfile_long()
178 name++; in listfile_long()
206 date, name); in listfile_long()
210 mode, user, group, s.st_size, date, name); in listfile_long()
229 mode, user, group, date, name, linkto); in listfile_long()
234 mode, user, group, date, name); in listfile_long()
[all …]
/system/core/include/cutils/
Dtrace.h178 #define ATRACE_BEGIN(name) atrace_begin(ATRACE_TAG, name) argument
179 static inline void atrace_begin(uint64_t tag, const char* name) in atrace_begin() argument
185 len = snprintf(buf, ATRACE_MESSAGE_LENGTH, "B|%d|%s", getpid(), name); in atrace_begin()
210 #define ATRACE_ASYNC_BEGIN(name, cookie) \ argument
211 atrace_async_begin(ATRACE_TAG, name, cookie)
212 static inline void atrace_async_begin(uint64_t tag, const char* name, in atrace_async_begin() argument
220 name, cookie); in atrace_async_begin()
229 #define ATRACE_ASYNC_END(name, cookie) atrace_async_end(ATRACE_TAG, name, cookie) argument
230 static inline void atrace_async_end(uint64_t tag, const char* name, in atrace_async_end() argument
238 name, cookie); in atrace_async_end()
[all …]
Dconfig_utils.h32 const char *name; member
43 cnode* config_node(const char *name, const char *value);
46 cnode* config_find(cnode *root, const char *name);
49 int config_bool(cnode *root, const char *name, int _default);
52 const char* config_str(cnode *root, const char *name, const char *_default);
55 void config_set(cnode *root, const char *name, const char *value);
Dsockets.h47 static inline int android_get_control_socket(const char *name) in android_get_control_socket() argument
56 name, in android_get_control_socket()
60 name, in android_get_control_socket()
90 extern int socket_local_server(const char *name, int namespaceId, int type);
91 extern int socket_local_server_bind(int s, const char *name, int namespaceId);
93 const char *name, int namespaceId, int type);
94 extern int socket_local_client(const char *name, int namespaceId, int type);
/system/core/init/
Dueventd.c36 static void import_kernel_nv(char *name, int in_qemu) in import_kernel_nv() argument
38 if (*name != '\0') { in import_kernel_nv()
39 char *value = strchr(name, '='); in import_kernel_nv()
42 if (!strcmp(name,"androidboot.hardware")) in import_kernel_nv()
106 if (!strcmp(id, android_ids[i].name)) in get_android_id()
113 char *name; in set_device_permission() local
129 name = args[0]; in set_device_permission()
131 if (!strncmp(name,"/sys/", 5) && (nargs == 5)) { in set_device_permission()
144 if (!strncmp(name, "mtd@", 4)) { in set_device_permission()
145 int n = mtd_name_to_number(name + 4); in set_device_permission()
[all …]
Dproperty_service.c199 static int check_mac_perms(const char *name, char *sctx) in check_mac_perms() argument
215 if (selabel_lookup(sehandle_prop, &tctx, name, 1) != 0) in check_mac_perms()
218 if (selinux_check_access(sctx, tctx, class, perm, name) == 0) in check_mac_perms()
226 static int check_control_mac_perms(const char *name, char *sctx) in check_control_mac_perms() argument
235 int ret = snprintf(ctl_name, sizeof(ctl_name), "ctl.%s", name); in check_control_mac_perms()
249 static int check_control_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) { in check_control_perms() argument
253 return check_control_mac_perms(name, sctx); in check_control_perms()
257 if (strcmp(control_perms[i].service, name) == 0) { in check_control_perms()
260 return check_control_mac_perms(name, sctx); in check_control_perms()
271 static int check_perms(const char *name, unsigned int uid, unsigned int gid, char *sctx) in check_perms() argument
[all …]
/system/core/sh/
Dalias.c65 setalias(char *name, char *val) in setalias() argument
69 app = hashalias(name); in setalias()
71 if (equal(name, ap->name)) { in setalias()
82 ap->name = savestr(name); in setalias()
117 unalias(char *name) in unalias() argument
121 app = hashalias(name); in unalias()
124 if (equal(name, ap->name)) { in unalias()
133 *ap->name = '\0'; in unalias()
137 ckfree(ap->name); in unalias()
168 ckfree(ap->name); in rmaliases()
[all …]
Dexec.c292 padvance(const char **path, const char *name) in padvance() argument
303 len = p - start + strlen(name) + 2; /* "2" is for '/' and '\0' */ in padvance()
312 strcpy(q, name); in padvance()
338 char *name; in hashcmd() local
357 while ((name = *argptr) != NULL) { in hashcmd()
358 if ((cmdp = cmdlookup(name, 0)) != NULL in hashcmd()
362 find_command(name, &entry, DO_ERR, pathval()); in hashcmd()
365 cmdp = cmdlookup(name, 0); in hashcmd()
381 char *name; in printentry() local
388 name = padvance(&path, cmdp->cmdname); in printentry()
[all …]
/system/core/adb/
Dservices.c372 static int create_subproc_thread(const char *name) in create_subproc_thread() argument
378 if(name) { in create_subproc_thread()
379 ret_fd = create_subprocess(SHELL_COMMAND, "-c", name, &pid); in create_subproc_thread()
403 int service_to_fd(const char *name) in service_to_fd() argument
407 if(!strncmp(name, "tcp:", 4)) { in service_to_fd()
408 int port = atoi(name + 4); in service_to_fd()
409 name = strchr(name + 4, ':'); in service_to_fd()
410 if(name == 0) { in service_to_fd()
417 ret = socket_network_client(name + 1, port, SOCK_STREAM); in service_to_fd()
424 } else if(!strncmp(name, "local:", 6)) { in service_to_fd()
[all …]
/system/core/libcutils/
Dsocket_local_client.c27 int socket_local_client(const char *name, int namespaceId, int type) in socket_local_client() argument
45 int socket_make_sockaddr_un(const char *name, int namespaceId, in socket_make_sockaddr_un() argument
54 namelen = strlen(name); in socket_make_sockaddr_un()
67 memcpy(p_addr->sun_path + 1, name, namelen); in socket_make_sockaddr_un()
71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX); in socket_make_sockaddr_un()
79 strcat(p_addr->sun_path, name); in socket_make_sockaddr_un()
84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX); in socket_make_sockaddr_un()
92 strcat(p_addr->sun_path, name); in socket_make_sockaddr_un()
96 namelen = strlen(name); in socket_make_sockaddr_un()
103 strcpy(p_addr->sun_path, name); in socket_make_sockaddr_un()
[all …]
Ddir_hash.c118 char *name; member
126 return strcmp((*ra)->name, (*rb)->name); in cmp()
149 char *name = malloc(strlen(de->d_name) + 1); in recurse() local
152 if (name == NULL || node == NULL) { in recurse()
156 free(f->name); in recurse()
160 free(name); in recurse()
165 strcpy(name, de->d_name); in recurse()
167 node->name = name; in recurse()
176 char *name; in recurse() local
181 name = malloc(strlen(f->name) + strlen(directory_path) + 2); in recurse()
[all …]
Dconfig_utils.c26 cnode* config_node(const char *name, const char *value) in config_node() argument
32 node->name = name ? name : ""; in config_node()
39 cnode* config_find(cnode *root, const char *name) in config_find() argument
45 if(!strcmp(node->name, name)) in config_find()
51 static cnode* _config_create(cnode *root, const char *name) in _config_create() argument
55 node = config_node(name, NULL); in _config_create()
67 int config_bool(cnode *root, const char *name, int _default) in config_bool() argument
71 node = config_find(root, name); in config_bool()
85 const char* config_str(cnode *root, const char *name, const char *_default) in config_str() argument
89 node = config_find(root, name); in config_str()
[all …]
/system/netd/
DNetlinkHandler.h36 void notifyInterfaceAdded(const char *name);
37 void notifyInterfaceRemoved(const char *name);
38 void notifyInterfaceChanged(const char *name, bool isUp);
39 void notifyInterfaceLinkChanged(const char *name, bool isUp);
40 void notifyQuotaLimitReached(const char *name, const char *iface);
41 void notifyInterfaceClassActivity(const char *name, bool isActive);
DNetlinkHandler.cpp96 void NetlinkHandler::notifyInterfaceAdded(const char *name) { in notifyInterfaceAdded() argument
98 snprintf(msg, sizeof(msg), "Iface added %s", name); in notifyInterfaceAdded()
104 void NetlinkHandler::notifyInterfaceRemoved(const char *name) { in notifyInterfaceRemoved() argument
106 snprintf(msg, sizeof(msg), "Iface removed %s", name); in notifyInterfaceRemoved()
112 void NetlinkHandler::notifyInterfaceChanged(const char *name, bool isUp) { in notifyInterfaceChanged() argument
114 snprintf(msg, sizeof(msg), "Iface changed %s %s", name, in notifyInterfaceChanged()
121 void NetlinkHandler::notifyInterfaceLinkChanged(const char *name, bool isUp) { in notifyInterfaceLinkChanged() argument
123 snprintf(msg, sizeof(msg), "Iface linkstate %s %s", name, in notifyInterfaceLinkChanged()
130 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { in notifyQuotaLimitReached() argument
132 snprintf(msg, sizeof(msg), "limit alert %s %s", name, iface); in notifyQuotaLimitReached()
[all …]
/system/extras/tests/fstest/
Dperm_checker.c200 static void print_new_rule(const char *name, mode_t mode, uid_t uid, gid_t gid) in print_new_rule() argument
206 printf("%s %4o %4o %s %d %s %d\n", name, mode, mode, pw->pw_name, uid, in print_new_rule()
223 static int validate_file(const char *name, mode_t mode, uid_t uid, gid_t gid) in validate_file() argument
231 if (strcmp(name, pr->spec) == 0) { in validate_file()
241 printf("# WARNING # Multiple exact rules for file: %s\n", name); in validate_file()
245 print_new_rule(name, mode, uid, gid); in validate_file()
253 if ((strstr(name, pr->spec) == name) && in validate_file()
254 (!strchr(name + strlen(pr->spec), '/'))) { in validate_file()
265 if (strstr(name, pr->spec) == name) { in validate_file()
278 print_new_rule(name, mode, uid, gid); in validate_file()
[all …]
/system/security/keystore/include/keystore/
DIKeystoreService.h61 virtual int32_t get(const String16& name, uint8_t** item, size_t* itemLength) = 0;
63 virtual int32_t insert(const String16& name, const uint8_t* item, size_t itemLength, int uid,
66 virtual int32_t del(const String16& name, int uid) = 0;
68 virtual int32_t exist(const String16& name, int uid) = 0;
70 virtual int32_t saw(const String16& name, int uid, Vector<String16>* matches) = 0;
82 virtual int32_t generate(const String16& name, int uid, int32_t flags) = 0;
84 virtual int32_t import(const String16& name, const uint8_t* data, size_t length, int uid,
87 virtual int32_t sign(const String16& name, const uint8_t* data, size_t length, uint8_t** out,
90 virtual int32_t verify(const String16& name, const uint8_t* data, size_t dataLength,
93 virtual int32_t get_pubkey(const String16& name, uint8_t** pubkey, size_t* pubkeyLength) = 0;
[all …]
/system/extras/showmap/
Dshowmap.c27 char name[1]; member
30 static int is_library(const char *name) { in is_library() argument
31 int len = strlen(name); in is_library()
32 return len >= 4 && name[0] == '/' in is_library()
33 && name[len - 3] == '.' && name[len - 2] == 's' && name[len - 1] == 'o'; in is_library()
43 char name[128]; in parse_header() local
57 strlcpy(name, line + name_pos, sizeof(name)); in parse_header()
59 if (prev && start == prev->end && is_library(prev->name)) { in parse_header()
63 strlcpy(name, prev->name, sizeof(name)); in parse_header()
66 strlcpy(name, "[anon]", sizeof(name)); in parse_header()
[all …]
/system/core/libnetutils/
Difc_utils.c160 static void ifc_init_ifr(const char *name, struct ifreq *ifr) in ifc_init_ifr() argument
163 strncpy(ifr->ifr_name, name, IFNAMSIZ); in ifc_init_ifr()
167 int ifc_get_hwaddr(const char *name, void *ptr) in ifc_get_hwaddr() argument
171 ifc_init_ifr(name, &ifr); in ifc_get_hwaddr()
180 int ifc_get_ifindex(const char *name, int *if_indexp) in ifc_get_ifindex() argument
184 ifc_init_ifr(name, &ifr); in ifc_get_ifindex()
193 static int ifc_set_flags(const char *name, unsigned set, unsigned clr) in ifc_set_flags() argument
196 ifc_init_ifr(name, &ifr); in ifc_set_flags()
203 int ifc_up(const char *name) in ifc_up() argument
205 int ret = ifc_set_flags(name, IFF_UP, 0); in ifc_up()
[all …]
/system/core/libsync/
Dsync.c37 int sync_merge(const char *name, int fd1, int fd2) in sync_merge() argument
43 strlcpy(data.name, name, sizeof(data.name)); in sync_merge()
103 int sw_sync_fence_create(int fd, const char *name, unsigned value) in sw_sync_fence_create() argument
109 strlcpy(data.name, name, sizeof(data.name)); in sw_sync_fence_create()
/system/bluetooth/tools/
Dbttest.c49 char *name; member
62 for (i = 0; function_table[i].name; i++) { in usage()
63 printf("\tbttest %s\n", function_table[i].name); in usage()
74 for (i = 0; function_table[i].name; i++) { in main()
75 if (!strcmp(argv[1], function_table[i].name)) { in main()
76 printf("%s\n", function_table[i].name); in main()
/system/vold/
DDevmapper.cpp90 ioctlInit(io2, DEVMAPPER_BUFFER_SIZE, n->name, 0); in dumpState()
100 … asprintf(&tmp, "%s %llu:%llu (no status available)", n->name, MAJOR(n->dev), MINOR(n->dev)); in dumpState()
102 asprintf(&tmp, "%s %llu:%llu %d %d 0x%.8x %llu:%llu", n->name, MAJOR(n->dev), in dumpState()
118 const char *name, unsigned flags) { in ioctlInit() argument
126 if (name) { in ioctlInit()
127 size_t ret = strlcpy(io->name, name, sizeof(io->name)); in ioctlInit()
128 if (ret >= sizeof(io->name)) in ioctlInit()
133 int Devmapper::lookupActive(const char *name, char *ubuffer, size_t len) { in lookupActive() argument
149 ioctlInit(io, DEVMAPPER_BUFFER_SIZE, name, 0); in lookupActive()
166 int Devmapper::create(const char *name, const char *loopFile, const char *key, in create() argument
[all …]

12345678910