/external/expat/tests/ |
chardata.c | 44 int maxchars = sizeof(storage->data) / sizeof(storage->data[0]); 54 if (len + storage->count < sizeof(storage->data)) { 55 memcpy(storage->data + storage->count, s, len); 67 maxchars = sizeof(storage->data) / sizeof(storage->data[0]); 75 if (len + storage->count < sizeof(storage->data)) { 76 memcpy(storage->data + storage->count, s, 77 len * sizeof(storage->data[0])); 95 sprintf(buffer, "wrong number of data characters: [all...] |
/system/core/toolbox/ |
wipe.c | 19 "/data/misc", 20 "/data/local", 21 "/data/local/tmp", 22 "/data/data", 23 "/data/app_private", 24 "/data/app", 32 fprintf(stderr, "wipe <system|data|all>\n\n" 34 "data means '/data'\n") [all...] |
/development/samples/BackupRestore/src/com/example/android/backuprestore/ |
ExampleAgent.java | 43 * to change what data we back up and how we store the state blob. 49 * data is backed up. This key identifies different data records 50 * within this one application's data set. Since we only maintain 51 * one piece of data we don't need to distinguish, so we just pick 56 /** The app's current data, read from the live disk file */ 61 /** The location of the application's persistent data file */ 64 /** For convenience, we set up the File object for the app's data on creation */ 71 * The set of data backed up by this application is very small: just 73 * easiest to simply store a copy of the backed-up data as the stat [all...] |
/system/extras/tests/sdcard/ |
plot_sdcard.py | 25 -p profile data generated by profile_sdcard.sh 27 ./plot_sdcard.py -t /tmp/data.txt 28 ./plot_sdcard.py -i /tmp/data.txt 33 >>> (metadata, data) = p.Parse('/tmp/data.txt') 34 >>> p.PlotIterations(metadata, data) 35 >>> p.PlotTimes(metadata, data) 48 """Dataset holds the summary and data (time,value pairs).""" 54 self.data = [] 61 return str(zip(self.time, self.data)) [all...] |
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
DataStream.java | 22 * classes to provide the chunks of data. 27 * Checks if there is data to be read. 28 * @return true if there is the input data in the stream, 34 * Retrieves the data of specified length from the stream. 35 * If the data size in the stream is less than specified length, 36 * method returns all the data contained in the stream. 37 * @return byte array containing the demanded data.
|
Finished.java | 33 // verify data 34 private byte[] data; field in class:Finished 41 data = bytes; 42 length = data.length; 54 data = in.read(length); 55 length = data.length; 63 out.write(data); 76 * Returns verify data 80 return data;
|
/external/icu4c/tools/makeconv/ |
makeconv.c | 49 initConvData(ConvData *data) { 50 uprv_memset(data, 0, sizeof(ConvData)); 51 data->sharedData.structSize=sizeof(UConverterSharedData); 52 data->staticData.structSize=sizeof(UConverterStaticData); 53 data->sharedData.staticData=&data->staticData; 57 cleanupConvData(ConvData *data) { 58 if(data!=NULL) { 59 if(data->cnvData!=NULL) { 60 data->cnvData->close(data->cnvData) 192 ConvData data; local [all...] |
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/ |
eap_tls_common.h | 45 int eap_server_tls_ssl_init(struct eap_sm *sm, struct eap_ssl_data *data, 47 void eap_server_tls_ssl_deinit(struct eap_sm *sm, struct eap_ssl_data *data); 48 u8 * eap_server_tls_derive_key(struct eap_sm *sm, struct eap_ssl_data *data, 50 struct wpabuf * eap_server_tls_build_msg(struct eap_ssl_data *data, 53 int eap_server_tls_phase1(struct eap_sm *sm, struct eap_ssl_data *data); 55 struct eap_ssl_data *data, 57 int eap_server_tls_process(struct eap_sm *sm, struct eap_ssl_data *data,
|
/frameworks/base/core/java/android/app/backup/ |
package.html | 4 applications. If a user wipes the data on their device or upgrades to a new Android-powered 5 device, all applications that have enabled backup will restore the user's previous data.</p> 10 like to enable backup and preserve its data on remote strage must implement a 20 <li>Perform backup of arbitrary data to remote storage</li> 22 <li>Restore the data saved to remote storage</li> 26 href="{@docRoot}guide/topics/data/backup.html">Data Backup</a> developer guide.</p>
|
AbsoluteFileBackupHelper.java | 53 * Based on oldState, determine which of the files from the application's data directory 54 * need to be backed up, write them to the data stream, and fill in newState with the 57 public void performBackup(ParcelFileDescriptor oldState, BackupDataOutput data, 60 performBackup_checked(oldState, data, newState, mFiles, mFiles); 66 public void restoreEntity(BackupDataInputStream data) { 67 if (DEBUG) Log.d(TAG, "got entity '" + data.getKey() + "' size=" + data.size()); 68 String key = data.getKey(); 71 writeFile(f, data);
|
/sdk/ddms/libs/ddmlib/src/com/android/ddmlib/ |
IShellOutputReceiver.java | 25 * Called every time some new data is available. 26 * @param data The new data. 27 * @param offset The offset at which the new data starts. 28 * @param length The length of the new data. 30 public void addOutput(byte[] data, int offset, int length); 35 * data was not yet processed.
|
/external/openssl/crypto/stack/ |
stack.c | 47 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 98 s=(char **)OPENSSL_realloc((char *)ret->data, 101 ret->data=s; 104 memcpy(ret->data,sk->data,sizeof(char *)*sk->num); 127 if ((ret->data=(char **)OPENSSL_malloc(sizeof(char *)*MIN_NODES)) == NULL) 130 ret->data[i]=NULL; 142 int sk_insert(STACK *st, char *data, int loc) 149 s=(char **)OPENSSL_realloc((char *)st->data, 153 st->data=s [all...] |
/dalvik/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
Chunk.java | 22 * A chunk of DDM data. This is really just meant to hold a few pieces 23 * of data together. 34 public byte[] data; // chunk data field in class:Chunk 35 public int offset, length; // position within "data" 45 public Chunk(int type, byte[] data, int offset, int length) { 47 this.data = data; 59 this.data = buf.array();
|
/dalvik/libcore/xml/src/main/java/org/apache/harmony/xml/dom/ |
ProcessingInstructionImpl.java | 38 private String data; field in class:ProcessingInstructionImpl 40 ProcessingInstructionImpl(DocumentImpl document, String target, String data) { 43 this.data = data; 47 return data; 62 return data; 69 public void setData(String data) throws DOMException { 70 this.data = data;
|
/development/tools/axl/ |
axl.py | 35 def write(self, data): 36 self.log("BaseProtocol.write()", len(data), data) 37 return self.transport.write(data) 39 def dataReceived(self, data): 40 self.log("BaseProtocol.dataReceived()", len(data), data) 69 def dataReceived(self, data): 70 BaseProtocol.dataReceived(self, data) 76 def dataReceived(self, data) [all...] |
/external/elfutils/libelf/ |
gelf_getsyminfo.c | 30 gelf_getsyminfo (data, ndx, dst) 31 Elf_Data *data; 37 if (data == NULL) 40 if (unlikely (data->d_type != ELF_T_SYMINFO)) 50 rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock); 52 /* The data is already in the correct form. Just make sure the 54 if (unlikely ((ndx + 1) * sizeof (GElf_Syminfo) > data->d_size)) 60 *dst = ((GElf_Syminfo *) data->d_buf)[ndx]; 65 rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
|
gelf_getverdaux.c | 30 gelf_getverdaux (data, offset, dst) 31 Elf_Data *data; 37 if (data == NULL) 40 if (unlikely (data->d_type != ELF_T_VDEF)) 51 rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock); 53 /* The data is already in the correct form. Just make sure the 56 || unlikely (offset + sizeof (GElf_Verdaux) > data->d_size) 63 result = (GElf_Verdaux *) memcpy (dst, (char *) data->d_buf + offset, 67 rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
|
gelf_getverdef.c | 30 gelf_getverdef (data, offset, dst) 31 Elf_Data *data; 37 if (data == NULL) 40 if (unlikely (data->d_type != ELF_T_VDEF)) 51 rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock); 53 /* The data is already in the correct form. Just make sure the 56 || unlikely (offset + sizeof (GElf_Verdef) > data->d_size) 63 result = (GElf_Verdef *) memcpy (dst, (char *) data->d_buf + offset, 66 rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
|
gelf_getvernaux.c | 30 gelf_getvernaux (data, offset, dst) 31 Elf_Data *data; 37 if (data == NULL) 40 if (unlikely (data->d_type != ELF_T_VNEED)) 54 rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock); 56 /* The data is already in the correct form. Just make sure the 59 || unlikely (offset + sizeof (GElf_Vernaux) > data->d_size) 66 result = (GElf_Vernaux *) memcpy (dst, (char *) data->d_buf + offset, 69 rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
|
gelf_getverneed.c | 30 gelf_getverneed (data, offset, dst) 31 Elf_Data *data; 37 if (data == NULL) 40 if (unlikely (data->d_type != ELF_T_VNEED)) 54 rwlock_rdlock (((Elf_Data_Scn *) data)->s->elf->lock); 56 /* The data is already in the correct form. Just make sure the 59 || unlikely (offset + sizeof (GElf_Verneed) > data->d_size) 66 result = (GElf_Verneed *) memcpy (dst, (char *) data->d_buf + offset, 69 rwlock_unlock (((Elf_Data_Scn *) data)->s->elf->lock);
|
/external/oprofile/libdb/ |
db_stat.c | 17 /// hold various statistics data for a db file 34 odb_data_t * data = odb->data; local 42 result->node_nr = data->descr->size; 43 result->used_node_nr = data->descr->current_size; 44 result->hash_table_size = data->descr->size * BUCKET_FACTOR; 51 size_t index = data->hash_base[pos]; 53 result->total_count += data->node_base[index].value; 54 index = data->node_base[index].next;
|
/system/core/nexus/ |
TiwlanEventListener.cpp | 33 struct ipc_ev_data *data; local 35 if (!(data = (struct ipc_ev_data *) malloc(sizeof(struct ipc_ev_data)))) { 40 if (recv(cli->getSocket(), data, sizeof(struct ipc_ev_data), 0) < 0) { 45 if (data->event_type == IPC_EVENT_LINK_SPEED) { 46 uint32_t *spd = (uint32_t *) data->buffer; 49 } else if (data->event_type == IPC_EVENT_LOW_SNR) { 51 } else if (data->event_type == IPC_EVENT_LOW_RSSI) { 54 // LOGD("Dropping unhandled driver event %d", data->event_type); 59 free(data);
|
/external/wpa_supplicant/ |
eap_mschapv2.c | 43 /* followed by data */ 46 /* Response Data field */ 54 /* Change-Password Data field */ 115 struct eap_mschapv2_data *data; local 116 data = os_zalloc(sizeof(*data)); 117 if (data == NULL) 120 data->full_key = sm->mschapv2_full_key; 123 data->full_key = 1; 124 data->peer_challenge = os_malloc(MSCHAPV2_CHAL_LEN) 151 struct eap_mschapv2_data *data = priv; local 808 struct eap_mschapv2_data *data = priv; local 872 struct eap_mschapv2_data *data = priv; local 879 struct eap_mschapv2_data *data = priv; local [all...] |
/build/tools/droiddoc/src/ |
TagInfo.java | 58 public void makeHDF(HDF data, String base) 60 data.setValue(base + ".name", name()); 61 data.setValue(base + ".text", text()); 62 data.setValue(base + ".kind", kind()); 65 public static void makeHDF(HDF data, String base, TagInfo[] tags) 67 makeHDF(data, base, tags, null, 0, 0); 70 public static void makeHDF(HDF data, String base, InheritedTags tags) 72 makeHDF(data, base, tags.tags(), tags.inherited(), 0, 0); 75 private static int makeHDF(HDF data, String base, TagInfo[] tags, 81 j = makeHDF(data, base, inherited.tags(), inherited.inherited(), j, depth+1) [all...] |
/dalvik/libcore/nio/src/main/java/java/nio/ |
package.html | 4 Provides buffers that help handling data. 7 There are buffers for most primitive data types such as 9 provide methods to get and put data from the
|