Searched refs:name (Results 1 - 25 of 184) sorted by relevance

12345678

/system/core/include/sysutils/
H A DServiceManager.h25 int start(const char *name);
26 int stop(const char *name);
27 bool isRunning(const char *name);
/system/core/libsysutils/src/
H A DServiceManager.cpp13 /* The service name should not exceed SERVICE_NAME_MAX to avoid
16 * - Starting a service is done by writing its name to the "ctl.start"
20 * - Stopping the service is done by writing its name to "ctl.stop"
24 * named "init.svc.<name>"
26 * If strlen(<name>) > (PROPERTY_KEY_MAX-1)-9, then you can start/stop
28 * read its state due to the truncation of "init.svc.<name>" into a
41 int ServiceManager::start(const char *name) { argument
42 if (strlen(name) > SERVICE_NAME_MAX) {
43 SLOGE("Service name '%s' is too long", name);
70 stop(const char *name) argument
100 isRunning(const char *name) argument
[all...]
/system/core/toolbox/
H A Dtoolbox.c18 #define TOOL(name) int name##_main(int, char**);
24 const char *name; member in struct:__anon488
28 #define TOOL(name) { #name, name##_main },
37 char *name = argv[0]; local
40 name = argv[1] + 1;
46 name = cmd + 1;
49 for(i = 0; tools[i].name;
[all...]
H A Dsyren.c23 const char *name; member in struct:__anon487
43 static syren_reg *find_reg(const char *name) argument
47 for (i = 0; registers[i].name != 0; i++) {
48 if (!strcasecmp(registers[i].name, name))
67 char name[32]; local
110 for (i = 0; registers[i].name; i++) {
114 fprintf(stderr, "%s: error\n", registers[i].name);
116 fprintf(stderr, "%s: %04x\n", registers[i].name, sio.value);
126 strcpy(name, arg
[all...]
/system/core/include/netutils/
H A 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, cons
[all...]
/system/extras/ext4_utils/
H A Duuid.h22 void generate_uuid(const char *namespace, const char *name, u8 result[16]);
/system/core/include/cutils/
H A Dconfig_utils.h32 const char *name; member in struct:cnode
43 cnode* config_node(const char *name, const char *value);
46 cnode* config_find(cnode *root, const char *name);
48 /* look up a child by name and return the boolean value */
49 int config_bool(cnode *root, const char *name, int _default);
51 /* look up a child by name and return the string value */
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);
H A Dsockets.h41 * descriptor of our init-managed Unix domain socket. `name' is the name of the
47 static inline int android_get_control_socket(const char *name) argument
56 name,
60 name,
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/netd/
H A 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);
H A DNetlinkHandler.cpp96 void NetlinkHandler::notifyInterfaceAdded(const char *name) { argument
98 snprintf(msg, sizeof(msg), "Iface added %s", name);
104 void NetlinkHandler::notifyInterfaceRemoved(const char *name) { argument
106 snprintf(msg, sizeof(msg), "Iface removed %s", name);
112 void NetlinkHandler::notifyInterfaceChanged(const char *name, bool isUp) { argument
114 snprintf(msg, sizeof(msg), "Iface changed %s %s", name,
121 void NetlinkHandler::notifyInterfaceLinkChanged(const char *name, bool isUp) { argument
123 snprintf(msg, sizeof(msg), "Iface linkstate %s %s", name,
130 void NetlinkHandler::notifyQuotaLimitReached(const char *name, const char *iface) { argument
132 snprintf(msg, sizeof(msg), "limit alert %s %s", name, ifac
138 notifyInterfaceClassActivity(const char *name, bool isActive) argument
[all...]
/system/core/init/
H A Dproperty_service.h28 extern const char* property_get(const char *name);
29 extern int property_set(const char *name, const char *value);
H A Dueventd.c36 static void import_kernel_nv(char *name, int in_qemu) argument
38 if (*name != '\0') {
39 char *value = strchr(name, '=');
42 if (!strcmp(name,"androidboot.hardware"))
106 if (!strcmp(id, android_ids[i].name))
113 char *name; local
129 name = args[0];
131 if (!strncmp(name,"/sys/", 5) && (nargs == 5)) {
144 if (!strncmp(name, "mtd@", 4)) {
145 int n = mtd_name_to_number(name
[all...]
H A Dinit_parser.h29 void queue_property_triggers(const char *name, const char *value);
31 void queue_builtin_action(int (*func)(int nargs, char **args), char *name);
/system/core/libcorkscrew/
H A Ddemangle.c27 char* demangle_symbol_name(const char* name) { argument
29 return __cxa_demangle(name, 0, 0, 0);
/system/bluetooth/tools/
H A Dbttest.c49 char *name; member in struct:__anon263
62 for (i = 0; function_table[i].name; i++) {
63 printf("\tbttest %s\n", function_table[i].name);
74 for (i = 0; function_table[i].name; i++) {
75 if (!strcmp(argv[1], function_table[i].name)) {
76 printf("%s\n", function_table[i].name);
/system/core/include/corkscrew/
H A Ddemangle.h17 /* C++ symbol name demangling. */
30 * Demangles a C++ symbol name.
31 * If name is NULL or if the name cannot be demangled, returns NULL.
32 * Otherwise, returns a newly allocated string that contains the demangled name.
36 char* demangle_symbol_name(const char* name);
/system/core/libcutils/
H A Dsocket_local.h25 * name in the given namespace. The namespace must be one
32 * constants) or if the name is too long.
36 int socket_make_sockaddr_un(const char *name, int namespaceId,
H A Dsocket_local_client.c27 int socket_local_client(const char *name, int namespaceId, int type) argument
45 int socket_make_sockaddr_un(const char *name, int namespaceId, argument
54 namelen = strlen(name);
67 memcpy(p_addr->sun_path + 1, name, namelen);
71 namelen = strlen(name) + strlen(FILESYSTEM_SOCKET_PREFIX);
79 strcat(p_addr->sun_path, name);
84 namelen = strlen(name) + strlen(ANDROID_RESERVED_SOCKET_PREFIX);
92 strcat(p_addr->sun_path, name);
96 namelen = strlen(name);
103 strcpy(p_addr->sun_path, name);
124 socket_local_client_connect(int fd, const char *name, int namespaceId, int type) argument
152 socket_local_client(const char *name, int namespaceId, int type) argument
[all...]
H A Ddir_hash.c118 char *name; member in struct:list
126 return strcmp((*ra)->name, (*rb)->name);
149 char *name = malloc(strlen(de->d_name) + 1); local
152 if (name == NULL || node == NULL) {
156 free(f->name);
160 free(name);
165 strcpy(name, de->d_name);
167 node->name = name;
176 char *name; local
[all...]
/system/core/sh/
H A Dalias.h18 * 3. Neither the name of the University nor the names of its contributors
41 char *name; member in struct:alias
H A Dalias.c18 * 3. Neither the name of the University nor the names of its contributors
65 setalias(char *name, char *val) argument
69 app = hashalias(name);
71 if (equal(name, ap->name)) {
82 ap->name = savestr(name);
117 unalias(char *name) argument
121 app = hashalias(name);
124 if (equal(name, a
179 lookupalias(char *name, int check) argument
195 get_alias_text(char *name) argument
[all...]
/system/vold/
H A DDevmapper.h27 static int create(const char *name, const char *loopFile, const char *key,
29 static int destroy(const char *name);
30 static int lookupActive(const char *name, char *buffer, size_t len);
36 const char *name, unsigned flags);
/system/core/mkbootimg/
H A Dbootimg.h45 unsigned char name[BOOT_NAME_SIZE]; /* asciiz product name */ member in struct:boot_img_hdr
83 char name[16]; /* asciiz partition name */
/system/core/adb/
H A Dservices.c372 static int create_subproc_thread(const char *name) argument
378 if(name) {
379 ret_fd = create_subprocess(SHELL_COMMAND, "-c", name, &pid);
403 int service_to_fd(const char *name) argument
407 if(!strncmp(name, "tcp:", 4)) {
408 int port = atoi(name + 4);
409 name = strchr(name + 4, ':');
410 if(name == 0) {
417 ret = socket_network_client(name
525 host_service_to_socket(const char* name, const char *serial) argument
[all...]
/system/core/include/sync/
H A Dsync.h30 char name[32]; member in struct:sync_fence_info_data
46 int sync_merge(const char *name, int fd1, int fd2);
58 int sw_sync_fence_create(int fd, const char *name, unsigned value);

Completed in 324 milliseconds

12345678