Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 49) sorted by relevance

12

/system/core/nexus/
DSupplicantState.cpp24 char *SupplicantState::toString(int val, char *buffer, int max) { in toString() argument
26 strncpy(buffer, "UNKNOWN", max); in toString()
28 strncpy(buffer, "DISCONNECTED", max); in toString()
30 strncpy(buffer, "INACTIVE", max); in toString()
32 strncpy(buffer, "SCANNING", max); in toString()
34 strncpy(buffer, "ASSOCIATING", max); in toString()
36 strncpy(buffer, "ASSOCIATED", max); in toString()
38 strncpy(buffer, "FOURWAY_HANDSHAKE", max); in toString()
40 strncpy(buffer, "GROUP_HANDSHAKE", max); in toString()
42 strncpy(buffer, "COMPLETED", max); in toString()
[all …]
DDhcpState.cpp24 char *DhcpState::toString(int val, char *buffer, int max) { in toString() argument
26 strncpy(buffer, "INIT", max); in toString()
28 strncpy(buffer, "DISCOVERING", max); in toString()
30 strncpy(buffer, "REQUESTING", max); in toString()
32 strncpy(buffer, "BOUND", max); in toString()
34 strncpy(buffer, "RENEWING", max); in toString()
36 strncpy(buffer, "REBINDING", max); in toString()
38 strncpy(buffer, "REBOOT", max); in toString()
40 strncpy(buffer, "RENEW_REQUESTED", max); in toString()
42 strncpy(buffer, "INIT_IPV4LL", max); in toString()
[all …]
DDhcpEvent.cpp24 char *DhcpEvent::toString(int val, char *buffer, int max) { in toString() argument
26 strncpy(buffer, "UNKNOWN", max); in toString()
28 strncpy(buffer, "STOP", max); in toString()
30 strncpy(buffer, "RENEW", max); in toString()
32 strncpy(buffer, "RELEASE", max); in toString()
34 strncpy(buffer, "TIMEOUT", max); in toString()
36 strncpy(buffer, "(internal error)", max); in toString()
DWifiNetwork.h91 virtual int get(int idx, char *buffer, size_t max) = 0;
124 int get(int idx, char *buffer, size_t max);
132 int get(int idx, char *buffer, size_t max);
140 int get(int idx, char *buffer, size_t max);
148 int get(int idx, char *buffer, size_t max);
156 int get(int idx, char *buffer, size_t max);
164 int get(int idx, char *buffer, size_t max);
172 int get(int idx, char *buffer, size_t max);
180 int get(int idx, char *buffer, size_t max);
188 int get(int idx, char *buffer, size_t max);
[all …]
DWifiNetwork.cpp695 int WifiNetwork::WifiNetworkSsidProperty::get(int idx, char *buffer, size_t max) { in get() argument
698 max); in get()
708 int WifiNetwork::WifiNetworkBssidProperty::get(int idx, char *buffer, size_t max) { in get() argument
711 max); in get()
721 int WifiNetwork::WifiNetworkPskProperty::get(int idx, char *buffer, size_t max) { in get() argument
724 max); in get()
735 int WifiNetwork::WifiNetworkWepKeyProperty::get(int idx, char *buffer, size_t max) { in get() argument
738 strncpy(buffer, (key ? key : "none"), max); in get()
770 int WifiNetwork::WifiNetworkKeyManagementProperty::get(int idx, char *buffer, size_t max) { in get() argument
773 strncpy(buffer, "NONE", max); in get()
[all …]
DProperty.h44 virtual int get(int idx, char *buffer, size_t max) = 0;
63 virtual int get(int idx, char *buffer, size_t max) = 0;
73 char *buffer, size_t max);
75 int get(int idx, char *buffer, size_t max);
87 int get(int idx, char *buffer, size_t max);
109 int get(int idx, char *buffer, size_t max);
DProperty.cpp62 char *buffer, size_t max) : in StringPropertyHelper() argument
65 mMax = max; in StringPropertyHelper()
78 int StringPropertyHelper::get(int idx, char *buffer, size_t max) { in get() argument
84 strncpy(buffer, mBuffer, max); in get()
102 int IntegerProperty::get(int idx, char *buffer, size_t max) { in get() argument
153 int IPV4AddressProperty::get(int idx, char *buffer, size_t max) { in get() argument
DWifiStatusPoller.cpp85 int max = 0; in run() local
92 max = mCtrlPipe[0]; in run()
94 if ((rc = select(max + 1, &read_fds, NULL, NULL, &to)) < 0) { in run()
DPropertyManager.h40 const char *get(const char *name, char *buffer, size_t max);
46 int doGet(Property *p, int idx, char *buffer, size_t max);
DPropertyManager.cpp156 int PropertyManager::doGet(Property *p, int idx, char *buffer, size_t max) { in doGet() argument
159 if (p->get(idx, buffer, max)) { in doGet()
172 snprintf(buffer, max, "%d", tmp); in doGet()
180 strncpy(buffer, inet_ntoa(tmp), max); in doGet()
224 const char *PropertyManager::get(const char *name, char *buffer, size_t max) { in get() argument
241 if (doGet((*p_it), i, buffer, max)) in get()
DDhcpEvent.h28 static char *toString(int val, char *buffer, int max);
DSupplicantState.h33 static char *toString(int val, char *buffer, int max);
DDhcpState.h34 static char *toString(int val, char *buffer, int max);
/system/core/toolbox/
Did.c32 int n, max; in id_main() local
34 max = getgroups(64, list); in id_main()
35 if (max < 0) max = 0; in id_main()
41 if (max) { in id_main()
44 for(n = 1; n < max; n++) { in id_main()
/system/extras/tests/schedtest/
Dschedtest.c28 long max = 0; in main() local
39 if (usec > max) max = usec; in main()
42 printf("max %ld\tavg %ld\n", max, avg); in main()
43 max = 0; in main()
/system/vold/
DProcess.cpp35 int Process::readSymLink(const char *path, char *link, size_t max) { in readSymLink() argument
45 length = readlink(path, link, max- 1); in readSymLink()
66 void Process::getProcessName(int pid, char *buffer, size_t max) { in getProcessName() argument
68 snprintf(buffer, max, "/proc/%d/cmdline", pid); in getProcessName()
73 int length = read(fd, buffer, max - 1); in getProcessName()
83 …ess::checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max) { in checkFileDescriptorSymLinks() argument
112 memset(openFilename, 0, max); in checkFileDescriptorSymLinks()
113 strncpy(openFilename, link, max-1); in checkFileDescriptorSymLinks()
128 int Process::checkFileMaps(int pid, const char *mountPoint, char *openFilename, size_t max) { in checkFileMaps() argument
142 memset(openFilename, 0, max); in checkFileMaps()
[all …]
DProcess.h26 static int checkFileMaps(int pid, const char *path, char *openFilename, size_t max);
28 …c int checkFileDescriptorSymLinks(int pid, const char *mountPoint, char *openFilename, size_t max);
29 static void getProcessName(int pid, char *buffer, size_t max);
31 static int readSymLink(const char *path, char *link, size_t max);
/system/extras/latencytop/
Dlatencytop.c36 unsigned long max; member
328 unsigned long count, max, total; in read_latency_file() local
345 sscanf(line, "%ld %ld %ld %s", &count, &total, &max, reason); in read_latency_file()
346 if (max > 0 || total > 0) { in read_latency_file()
350 if (max > e->max) in read_latency_file()
351 e->max = max; in read_latency_file()
356 e->max = max; in read_latency_file()
398 e->max / 1000, (e->max % 1000) / 10, in print_latency_entries()
441 return numcmp(pb->max, pa->max); in lat_cmp()
/system/core/libsysutils/src/
DSocketListener.cpp142 int max = 0; in runListener() local
147 max = mSock; in runListener()
152 if (mCtrlPipe[0] > max) in runListener()
153 max = mCtrlPipe[0]; in runListener()
158 if ((*it)->getSocket() > max) in runListener()
159 max = (*it)->getSocket(); in runListener()
163 if ((rc = select(max + 1, &read_fds, NULL, NULL, NULL)) < 0) { in runListener()
/system/core/init/
Dlogo.c110 unsigned count, max; in load_565rle_image() local
133 max = fb_width(&fb) * fb_height(&fb); in load_565rle_image()
139 if (n > max) in load_565rle_image()
143 max -= n; in load_565rle_image()
/system/wlan/ti/sta_dk_4_0_4_32/pform/common/inc/
Dcli_cu_common.h96 #ifndef max
97 # define max(a, b) (((a)>(b)) ? (a) : (b)) macro
/system/wlan/ti/wilink_6_1/platforms/os/common/inc/
Dcli_cu_common.h99 #ifndef max
100 # define max(a, b) (((a)>(b)) ? (a) : (b)) macro
/system/core/include/cutils/
Dtztime.h46 size_t strftime_tz(char *s, size_t max, const char *format, const struct tm *tm, const struct strft…
/system/core/libpixelflinger/
Dtrap.cpp64 static inline int max(int a, int b) CONST;
66 static inline int max(int a, int b, int c) CONST;
77 inline int max(int a, int b) { in max() function
83 inline int max(int a, int b, int c) { in max() function
84 return max(a,max(b,c)); in max()
542 const int32_t bmaxx = TRI_CEIL( max(x0, x1, x2)) >> TRI_FRACTION_BITS; in trianglex_small()
543 const int32_t bmaxy = TRI_CEIL( max(y0, y1, y2)) >> TRI_FRACTION_BITS; in trianglex_small()
544 const int32_t minx = max(bminx, c->state.scissor.left); in trianglex_small()
545 const int32_t miny = max(bminy, c->state.scissor.top); in trianglex_small()
745 const int32_t xl = max(left_x >> TRI_ITERATORS_BITS, xmin); in triangle_sweep_edges()
[all …]
/system/wlan/ti/wilink_6_1/CUDK/os/common/inc/
Dcu_osapi.h40 #if !defined(max)
41 #define max(a,b) ((a>b)?a:b) macro

12