/frameworks/native/cmds/atrace/ |
H A D | atrace.cpp | 51 // The name identifying the category. 52 const char* name; member in struct:TracingCategory 752 static bool setCategoryEnable(const char* name, bool enable) argument 756 if (strcmp(name, c.name) == 0) { 763 "privileges.\n", name); 766 "on this device.\n", name); 772 fprintf(stderr, "error: unknown tracing category \"%s\"\n", name); 781 printf(" %10s - %s\n", c.name, c.longname); 879 if (!strcmp(long_options[option_index].name, "async_star [all...] |
/frameworks/native/cmds/dumpstate/ |
H A D | dumpstate.c | 56 char name[TOMBSTONE_MAX_LEN]; member in struct:__anon1163 66 snprintf(data[i].name, sizeof(data[i].name), "%s%02zu", TOMBSTONE_FILE_PREFIX, i); 67 int fd = open(data[i].name, O_RDONLY | O_CLOEXEC | O_NOFOLLOW); 217 dump_file_from_fd("TOMBSTONE", tombstone_data[i].name, tombstone_data[i].fd);
|
H A D | dumpstate.h | 62 void show_wchan(int pid, int tid, const char *name); 65 void do_showmap(int pid, const char *name);
|
H A D | utils.c | 174 void show_wchan(int pid, int tid, const char *name) { argument 194 pid == tid ? 0 : 3, "", name); 244 void do_showmap(int pid, const char *name) { argument 248 sprintf(title, "SHOW MAP %d (%s)", pid, name); 375 static void print_prop(const char *key, const char *name, void *user) { argument 379 snprintf(buf, sizeof(buf), "[%s]: [%s]\n", key, name); 680 // Each line has an integer (the table number), a space, and a string (the table name). We only 681 // need the table number. It's a 32-bit unsigned number, so max 10 chars. Skip the table name.
|
/frameworks/native/cmds/flatland/ |
H A D | GLHelper.cpp | 154 GLuint* name) { 159 *name = 0; 160 glGenTextures(1, name); 161 if (*name == 0) { 166 return createNamedSurfaceTexture(*name, w, h, glConsumer, surface); 189 bool GLHelper::getShaderProgram(const char* name, GLuint* outPgm) { argument 191 if (strcmp(mShaderDescs[i].name, name) == 0) { 197 fprintf(stderr, "unknown shader name: \"%s\"\n", name); 152 createSurfaceTexture(uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface, GLuint* name) argument 202 createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h, sp<GLConsumer>* glConsumer, EGLSurface* surface) argument [all...] |
H A D | GLHelper.h | 33 const char* name; member in struct:android::ShaderDesc 56 GLuint* name); 65 bool getShaderProgram(const char* name, GLuint* outPgm); 71 bool createNamedSurfaceTexture(GLuint name, uint32_t w, uint32_t h,
|
H A D | Main.cpp | 43 // The name of the test. 44 const char* name; member in struct:BenchmarkDesc 209 name: "Blit", 243 name: "Gradient", 603 printf(" %-*s | %4d x %4d | ", static_cast<int>(g_BenchmarkNameLen), b.name, 713 // Return the length longest benchmark name. 718 size_t len = strlen(b.name); 767 if (strcmp(long_options[option_index].name, "help")) {
|
/frameworks/native/cmds/installd/ |
H A D | commands.c | 369 const char *name = de->d_name; local 371 if (name[0] == '.') { 372 if (name[1] == 0) continue; 373 if ((name[1] == '.') && (name[2] == 0)) continue; 375 if ((strlen(name)+(dirpos-tmpdir)) < (sizeof(tmpdir)-1)) { 376 strcpy(dirpos, name); 380 ALOGW("Path exceeds limit: %s%s", tmpdir, name); 395 const char *name = de->d_name; local 397 if (name[ 541 const char *name = de->d_name; local 1174 const char *name = de->d_name; local 1236 const char *name = de->d_name; local [all...] |
H A D | installd.c | 159 const char *name; member in struct:cmdinfo 262 if (!strcmp(cmds[i].name,arg[0])) { 265 cmds[i].name, cmds[i].numargs, n); 459 const char *name = dirent->d_name; local 462 if (name[0] == '.') { 463 if (name[1] == 0) continue; 464 if ((name[1] == '.') && (name[2] == 0)) continue; 468 snprintf(user_media_dir, PATH_MAX, "%s%s", android_media_dir.path, name); 534 const char *name local [all...] |
H A D | installd.h | 52 /* elements combined with a valid package name to form paths */ 83 #define PKG_NAME_MAX 128 /* largest allowed package name */ 111 char name[]; member in struct:cache_dir_struct 117 char name[]; member in struct:__anon1170 164 int (*exclusion_predicate)(const char *name, const int is_dir)); 166 int delete_dir_contents_fd(int dfd, const char *name);
|
H A D | utils.c | 55 * Create the package path name for a given package name with a postfix for 102 * Create the path name for user data for a certain userid. 142 * Create the path name for media for a certain userid. 153 * Create the path name for config for a certain userid. 178 * Checks whether the package name is valid. Returns -1 on error and 191 ALOGE("invalid package name '%s'\n", pkgname); 200 ALOGE("invalid package name '%s'\n", pkgname); 212 ALOGE("invalid package name '%s' should include only numbers after -\n", pkgname); 223 int (*exclusion_predicate)(const char *name, cons 222 _delete_dir_contents(DIR *d, int (*exclusion_predicate)(const char *name, const int is_dir)) argument 234 const char *name = de->d_name; local 306 delete_dir_contents_fd(int dfd, const char *name) argument 360 const char *name = de->d_name; local 555 _add_cache_dir_t(cache_t* cache, cache_dir_t* parent, const char *name) argument 588 _add_cache_file_t(cache_t* cache, cache_dir_t* dir, time_t modTime, const char *name) argument 639 const char *name = de->d_name; local 749 const char *name = de->d_name; local [all...] |
/frameworks/native/cmds/ip-up-vpn/ |
H A D | ip-up-vpn.c | 36 static const char *env(const char *name) { argument 37 const char *value = getenv(name);
|
/frameworks/native/cmds/service/ |
H A D | service.cpp | 43 // get the name of the generic interface we hold a reference to 118 String16 name = services[i]; local 119 sp<IBinder> service = sm->checkService(name); 121 << "\t" << good_old_string(name) 135 // the interface name is first
|
/frameworks/native/cmds/servicemanager/ |
H A D | bctest.c | 10 uint32_t svcmgr_lookup(struct binder_state *bs, uint32_t target, const char *name) argument 19 bio_put_string16_x(&msg, name); 34 int svcmgr_publish(struct binder_state *bs, uint32_t target, const char *name, void *ptr) argument 43 bio_put_string16_x(&msg, name);
|
H A D | service_manager.c | 59 static bool check_mac_perms(pid_t spid, const char *tctx, const char *perm, const char *name) argument 70 int result = selinux_check_access(sctx, tctx, class, perm, (void *) name); 86 static bool check_mac_perms_from_lookup(pid_t spid, const char *perm, const char *name) argument 100 if (selabel_lookup(sehandle, &tctx, name, 0) != 0) { 101 ALOGE("SELinux: No match for %s in service_contexts.\n", name); 105 allowed = check_mac_perms(spid, tctx, perm, name); 110 static int svc_can_register(const uint16_t *name, size_t name_len, pid_t spid) argument 113 return check_mac_perms_from_lookup(spid, perm, str8(name, name_len)) ? 1 : 0; 122 static int svc_can_find(const uint16_t *name, size_t name_len, pid_t spid) argument 125 return check_mac_perms_from_lookup(spid, perm, str8(name, name_le 135 uint16_t name[0]; member in struct:svcinfo [all...] |
/frameworks/native/include/binder/ |
H A D | IServiceManager.h | 39 virtual sp<IBinder> getService( const String16& name) const = 0; 44 virtual sp<IBinder> checkService( const String16& name) const = 0; 49 virtual status_t addService( const String16& name, 69 status_t getService(const String16& name, sp<INTERFACE>* outService) argument 73 *outService = interface_cast<INTERFACE>(sm->getService(name));
|
H A D | MemoryDealer.h | 37 MemoryDealer(size_t size, const char* name = 0,
|
H A D | MemoryHeapBase.h | 53 * maps memory from ashmem, with the given name for debugging 55 MemoryHeapBase(size_t size, uint32_t flags = 0, char const* name = NULL);
|
H A D | PermissionCache.h | 43 String16 name; member in struct:android::PermissionCache::Entry 47 return (uid == e.uid) ? (name < e.name) : (uid < e.uid); 57 // free the whole cache, but keep the permission name pool
|
H A D | ProcessState.h | 41 const String16& name); 42 sp<IBinder> getContextObject(const String16& name, 47 typedef bool (*context_check_func)(const String16& name,
|
/frameworks/native/include/gui/ |
H A D | BufferItemConsumer.h | 63 // set the name of the BufferItemConsumer that will be used to identify it in 65 void setName(const String8& name);
|
H A D | BufferQueueConsumer.h | 123 // setConsumerName sets the name used in logging 124 virtual void setConsumerName(const String8& name); 173 // This is a cached copy of the name stored in the BufferQueueCore.
|
H A D | ConsumerBase.h | 65 // set the name of the ConsumerBase that will be used to identify it in 67 void setName(const String8& name);
|
H A D | CpuConsumer.h | 78 // set the name of the CpuConsumer that will be used to identify it in 80 void setName(const String8& name);
|
H A D | GLConsumer.h | 60 // the tex parameter is used, tex indicates the name of the OpenGL ES 194 // set the name of the GLConsumer that will be used to identify it in 196 void setName(const String8& name); 224 // The tex argument specifies the OpenGL ES texture object name in the 403 // mTexName is the name of the OpenGL texture to which streamed images will
|