Searched defs:size (Results 151 - 175 of 1111) sorted by last modified time

1234567891011>>

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
H A DByteBufferReader.java41 * @param size The number of bytes to read from the buffer
46 public static long readInteger(ByteBuffer payload, ByteOrder byteOrder, int size) { argument
47 if (size < MINIMUM_INTEGER_SIZE || size > MAXIMUM_INTEGER_SIZE) {
48 throw new IllegalArgumentException("Invalid size " + size);
52 byte[] octets = new byte[size];
H A DScanDetailCache.java45 * The cache size is trimmed down to |trimSize| once it crosses the provided |maxSize|.
50 * @param maxSize Max size desired for the cache.
62 if (mMap.size() >= mMaxSize) {
94 int size() { method in class:ScanDetailCache
95 return mMap.size();
99 return size() == 0;
111 * Method to reduce the cache to |mTrimSize| size by removing the oldest entries.
115 int currentSize = mMap.size();
120 if (list.size() != 0) {
146 if (list.size() !
[all...]
H A DWifiDiagnostics.java91 /** minimum buffer size for each of the log levels */
230 for (int i = 0; i < mLastAlerts.size(); i++) {
237 for (int i = 0; i < mLastBugReports.size(); i++) {
306 for (int i = 0; i < kernelLogLines.size(); i++) {
314 for (int i = 0; i < logcatLines.size(); i++) {
325 int size = 0;
327 size += buffers[i].length;
330 byte[] buffer = new byte[size];
373 if (mArrayList.size() >= mMax)
378 public final int size() { method in class:WifiDiagnostics.LimitedCircularArray
[all...]
H A DWifiMetrics.java632 while(mConnectionEventList.size() >= MAX_CONNECTION_EVENTS) {
1248 * within [MIN_WIFI_SCORE, MAX_WIFI_SCORE] to limit size of SparseArray.
1349 if (softApEventList.size() > MAX_NUM_SOFT_AP_EVENTS) {
1375 for (int index = softApEventList.size() - 1; index >= 0; index--) {
1578 * Counts the size of various sets of scanDetails within a scan, and increment the occurrence
1579 * of that size for the associated histogram. There are ten histograms generated for each
1690 incrementTotalScanSsids(mTotalSsidsInScanHistogram, ssids.size());
1692 incrementSsid(mAvailableOpenSsidsInScanHistogram, openSsids.size());
1694 incrementSsid(mAvailableSavedSsidsInScanHistogram, savedSsids.size());
1697 incrementSsid(mAvailableOpenOrSavedSsidsInScanHistogram, openSsids.size());
1746 setNetworkRecommenderBlacklistSize(String notifierTag, int size) argument
[all...]
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/
H A DIconEvent.java9 public IconEvent(long bssid, String fileName, int size, byte[] data) { argument
12 mSize = size;
37 ", size=" + mSize;
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
H A DBackgroundScanScheduler.java68 // anecdotally, some chipsets will fail without explanation with a higher batch size, and
69 // there is apparently no way to retrieve the maximum batch size
203 for (int i = 0; i < mScanSettingsList.size(); ++i) {
292 public int size() { method in class:BackgroundScanScheduler.BucketList
349 // TODO: find a way to get max batch size
438 schedule.num_buckets = bucketList.size();
439 schedule.buckets = new WifiNative.BucketSettings[bucketList.size()];
576 currentBucketSettings.channels = new WifiScanner.ChannelSpec[currentBucketChannels.size()];
595 targetBucketSettings.channels = new WifiScanner.ChannelSpec[targetBucketChannels.size()];
762 if (channelSet.size()
[all...]
/frameworks/opt/net/wifi/service/jni/
H A Dcom_android_server_wifi_WifiNative.cpp38 int size = klogctl(/* SYSLOG_ACTION_SIZE_BUFFER */ 10, 0, 0); local
39 if (size < 1) {
44 char *buf = (char *)malloc(size);
50 int read = klogctl(/* SYSLOG_ACTION_READ_ALL */ 3, buf, size);
59 if (read != size) {
60 ALOGV("read %d bytes, expecting %d", read, size);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DWifiConnectivityHelperTest.java80 private ArrayList<String> buildBssidBlacklist(int size) { argument
83 for (int i = 0; i < size; i++) {
92 private ArrayList<String> buildSsidWhitelist(int size) { argument
95 for (int i = 0; i < size; i++) {
160 * is supported but returned invalid max BSSID balcklist size. Firmware roaming capabilty values
182 * is supported but returned invalid max SSID whitelist size. Firmware roaming capabilty values
203 * Verify that correct size BSSID blacklist and SSID whitelist are accepted.
230 * Verify that incorrect size BSSID blacklist is rejected.
241 * Verify that incorrect size SSID whitelist is rejected.
262 assertEquals(0, mRoamingConfigCaptor.getValue().blacklistBssids.size());
[all...]
H A DWifiMetricsTest.java1713 * Test Open Network Notification blacklist size and feature state are not cleared when proto
1736 // Check that blacklist size and feature state persist on next dump but
1775 private void verifyHist(WifiMetricsProto.NumConnectableNetworksBucket[] hist, int size, argument
1777 assertEquals(size, hist.length);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/
H A DMatrixTest.java114 public Matrix generatePermutationMatrix(int size, Random random) { argument
115 Matrix matrix = new Matrix(size, size);
116 ArrayList<Integer> j = new ArrayList(size);
117 for (int i = 0; i < size; i++) {
121 for (int i = 0; i < size; i++) {
132 int size = 20;
133 Matrix m1 = generatePermutationMatrix(size, new Random(132));
/frameworks/opt/chips/tests/src/com/android/ex/chips/
H A DChipsTest.java960 private void populateMocks(int size) { argument
961 mMockEntries = new RecipientEntry[size];
962 for (int i = 0; i < size; i++) {
966 mMockRecips = new DrawableRecipientChip[size];
967 for (int i = 0; i < size; i++) {
/frameworks/opt/colorpicker/src/com/android/colorpicker/
H A DColorPickerDialog.java46 protected static final String KEY_SIZE = "size";
65 int columns, int size) {
67 ret.initialize(titleResId, colors, selectedColor, columns, size);
71 public void initialize(int titleResId, int[] colors, int selectedColor, int columns, int size) { argument
72 setArguments(titleResId, columns, size);
76 public void setArguments(int titleResId, int columns, int size) { argument
80 bundle.putInt(KEY_SIZE, size);
64 newInstance(int titleResId, int[] colors, int selectedColor, int columns, int size) argument
H A DColorPickerPalette.java54 * Initialize the size, columns, and listener. Size should be a pre-defined size (SIZE_LARGE
57 public void init(int size, int columns, OnColorSelectedListener listener) { argument
60 if (size == ColorPickerDialog.SIZE_LARGE) {
/frameworks/native/cmds/dumpstate/
H A DDumpstateUtil.cpp217 int size = full_command.size() + 1; // null terminated local
221 size += starting_index;
225 args.resize(size);
234 for (size_t i = 0; i < full_command.size(); i++) {
237 if (i != full_command.size() - 1) {
241 args[size - 1] = nullptr;
H A Dutils.cpp150 if (lines.size() < 1) {
152 (int)lines.size(), max_);
527 /* Get size of kernel buffer */
528 int size = klogctl(KLOG_SIZE_BUFFER, NULL, 0); local
529 if (size <= 0) {
530 printf("Unexpected klogctl return value: %d\n\n", size);
533 char *buf = (char *) malloc(size + 1);
538 int retval = klogctl(KLOG_READ_ALL, buf, size);
/frameworks/native/cmds/installd/
H A DCacheItem.h51 int64_t size; member in class:android::installd::CacheItem
H A DInstalldNativeService.cpp92 // fsverity assumes the page size is always 4096. If not, the feature can not be
1145 active->cacheUsed -= item->size;
1146 needed -= item->size;
1147 cleared += item->size;
1217 for (size_t i = 0; i < values.size(); i++) {
1219 if (i < values.size() - 1) {
1330 int64_t size = 0; local
1332 size = s.st_blocks * 512;
1337 // Don't recurse, but still count node size
1339 // Don't recurse or count node size
1420 int64_t size = (p->fts_statp->st_blocks * 512); local
1816 int64_t size = (p->fts_statp->st_blocks * 512); local
[all...]
H A Dotapreopt.cpp159 size_t size = std::min(kPropertyValueMax - 1, prop_value->length()) + 1; local
160 strlcpy(value, prop_value->data(), size);
161 return static_cast<int>(size - 1);
200 if (export_match.size() != 3) {
639 CHECK_GE(arg_vector.size(), 1U) << command_line;
644 for (size_t i = 0; i < arg_vector.size(); ++i) {
H A Dutils.cpp253 if (dirIndex == dex_path.size() - 1) {
337 int calculate_tree_size(const std::string& path, int64_t* size, argument
380 LOG(DEBUG) << "Measured " << path << " size " << matchedSize;
382 LOG(DEBUG) << "Measured " << path << " size " << matchedSize << "; include " << include_gid
386 *size += matchedSize;
600 ssize_t size; local
601 while ((size = read(fsfd, buf, sizeof(buf))) > 0) {
602 write(fdfd, buf, size);
604 if (size < 0) {
767 if (dir.find('/') != 0 || dir.rfind('/') != dir.size()
[all...]
/frameworks/native/cmds/installd/tests/
H A Dinstalld_cache_test.cpp89 static int64_t size(const char* path) { function in namespace:android::installd
197 EXPECT_EQ(2 * kMbInBytes, size("com.example/cache/bar/bar1"));
198 EXPECT_EQ(2 * kMbInBytes, size("com.example/cache/bar/bar2"));
207 EXPECT_EQ(0, size("com.example/cache/bar/bar1"));
208 EXPECT_EQ(0, size("com.example/cache/bar/bar2"));
270 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/file1"));
271 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/file2"));
272 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/dir/file1"));
273 EXPECT_EQ(kMbInBytes, size("com.example/cache/group/dir/file2"));
274 EXPECT_EQ(kMbInBytes, size("co
[all...]
/frameworks/native/cmds/lshal/
H A DTableEntry.h118 size_t size() const { return mEntries.size(); } function in class:android::lshal::Table
/frameworks/native/cmds/rawbu/
H A Dbackup.cpp195 static int copy_file(FILE* dest, FILE* src, off_t size, const char* destName, argument
200 off_t origSize = size;
202 while (size > 0) {
203 int amt = size > (off_t)sizeof(copyBuffer) ? sizeof(copyBuffer) : (int)size;
226 size -= readLen;
339 off_t size = statBuffer.st_size; local
340 if (!write_int64(fh, size)) {
353 int copyres = copy_file(fh, src, size, NULL, fullPath);
563 off_t size local
[all...]
/frameworks/native/cmds/servicemanager/
H A Dbinder.c218 uintptr_t ptr, size_t size, binder_handler func)
221 uintptr_t end = ptr + (uintptr_t) size;
454 static void *bio_alloc(struct binder_io *bio, size_t size) argument
456 size = (size + 3) & (~3);
457 if (size > bio->data_avail) {
462 bio->data += size;
463 bio->data_avail -= size;
558 /* Note: The payload will carry 32bit size instead of size_t */
584 /* Note: The payload will carry 32bit size instea
217 binder_parse(struct binder_state *bs, struct binder_io *bio, uintptr_t ptr, size_t size, binder_handler func) argument
595 bio_get(struct binder_io *bio, size_t size) argument
[all...]
/frameworks/native/cmds/surfacereplayer/replayer/trace_creator/
H A Dtrace_creator.py113 change.size.w, change.size.h = size()
158 change.size.w, change.size.h = size()
200 def size(): function
/frameworks/native/include/binder/
H A DParcel.h66 status_t setDataSize(size_t size);
68 status_t setDataCapacity(size_t size);
483 inline size_t size() const { return mSize; } function in class:android::Parcel::Blob
488 void init(int fd, void* data, size_t size, bool isMutable);
509 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const = 0;
510 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) = 0;
535 virtual status_t flatten(void* buffer, size_t size, int* fds, size_t count) const { argument
536 return val.flatten(buffer, size, fds, count);
538 virtual status_t unflatten(void const* buffer, size_t size, int const* fds, size_t count) { argument
539 return const_cast<Flattenable<T>&>(val).unflatten(buffer, size, fd
605 size_t size; local
643 int32_t size; local
658 int32_t size; local
708 int32_t size; local
750 int32_t size; local
834 int32_t size; local
[all...]

Completed in 363 milliseconds

1234567891011>>