Home
last modified time | relevance | path

Searched refs:fp (Results 1 – 25 of 27) sorted by relevance

12

/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dfilestreamtest.cpp34 FILE* fp = 0; in SetUp() local
36 fp = fopen(paths[i], "rb"); in SetUp()
37 if (fp) { in SetUp()
42 ASSERT_TRUE(fp != 0); in SetUp()
44 fseek(fp, 0, SEEK_END); in SetUp()
45 length_ = (size_t)ftell(fp); in SetUp()
46 fseek(fp, 0, SEEK_SET); in SetUp()
48 size_t readLength = fread(json_, 1, length_, fp); in SetUp()
50 fclose(fp); in SetUp()
69 FILE *fp = fopen(filename_, "rb"); in TEST_F() local
[all …]
Dencodedstreamtest.cpp54 FILE *fp = fopen(buffer, "rb"); in Open() local
55 if (fp) in Open()
56 return fp; in Open()
62 FILE *fp = appendPath ? Open(filename) : fopen(filename, "rb"); in ReadFile() local
64 if (!fp) { in ReadFile()
69 fseek(fp, 0, SEEK_END); in ReadFile()
70 *outLength = (size_t)ftell(fp); in ReadFile()
71 fseek(fp, 0, SEEK_SET); in ReadFile()
73 size_t readLength = fread(buffer, 1, *outLength, fp); in ReadFile()
75 fclose(fp); in ReadFile()
[all …]
Djsoncheckertest.cpp30 FILE *fp = 0; in ReadFile() local
33 fp = fopen(buffer, "rb"); in ReadFile()
34 if (fp) in ReadFile()
38 if (!fp) in ReadFile()
41 fseek(fp, 0, SEEK_END); in ReadFile()
42 length = (size_t)ftell(fp); in ReadFile()
43 fseek(fp, 0, SEEK_SET); in ReadFile()
45 size_t readLength = fread(json, 1, length, fp); in ReadFile()
47 fclose(fp); in ReadFile()
Dprettywritertest.cpp141 FILE* fp = TempFile(filename); in TEST() local
143 FileWriteStream os(fp, buffer, sizeof(buffer)); in TEST()
148 fclose(fp); in TEST()
150 fp = fopen(filename, "rb"); in TEST()
151 fseek(fp, 0, SEEK_END); in TEST()
152 size_t size = (size_t)ftell(fp); in TEST()
153 fseek(fp, 0, SEEK_SET); in TEST()
155 size_t readLength = fread(json, 1, size, fp); in TEST()
157 fclose(fp); in TEST()
Ddocumenttest.cpp109 FILE *fp = fopen(buffer, "rb"); in OpenEncodedFile() local
110 if (fp) in OpenEncodedFile()
111 return fp; in OpenEncodedFile()
118 FILE* fp = OpenEncodedFile("utf8.json"); in TEST() local
120 FileReadStream bis(fp, buffer, sizeof(buffer)); in TEST()
127 fclose(fp); in TEST()
144 FILE *fp = OpenEncodedFile("utf8.json"); in TEST() local
145 FileReadStream is(fp, buffer, sizeof(buffer)); in TEST()
150 fclose(fp); in TEST()
159 FILE* fp = OpenEncodedFile("utf32be.json"); in TEST() local
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/
DPop3StoreUnitTests.java534 FetchProfile fp = new FetchProfile(); in testCatchClosed2() local
535 fp.add(FetchProfile.Item.FLAGS); in testCatchClosed2()
536 fp.add(FetchProfile.Item.ENVELOPE); in testCatchClosed2()
537 mFolder.fetch(messages, fp, null); in testCatchClosed2()
582 FetchProfile fp = new FetchProfile(); in testCatchClosed2a() local
583 fp.add(FetchProfile.Item.FLAGS); in testCatchClosed2a()
584 fp.add(FetchProfile.Item.ENVELOPE); in testCatchClosed2a()
585 mFolder.fetch(messages, fp, null); in testCatchClosed2a()
629 FetchProfile fp = new FetchProfile(); in testCatchClosed3() local
630 fp.add(FetchProfile.Item.FLAGS); in testCatchClosed3()
[all …]
DImapStoreUnitTests.java771 final FetchProfile fp = new FetchProfile(); in testFetchFlagEnvelope() local
772 fp.add(FetchProfile.Item.FLAGS); in testFetchFlagEnvelope()
773 fp.add(FetchProfile.Item.ENVELOPE); in testFetchFlagEnvelope()
792 mFolder.fetch(new Message[] { message }, fp, null); in testFetchFlagEnvelope()
812 final FetchProfile fp = new FetchProfile(); in testFetchBodyStructureSimple() local
813 fp.add(FetchProfile.Item.STRUCTURE); in testFetchBodyStructureSimple()
820 mFolder.fetch(new Message[] { message }, fp, null); in testFetchBodyStructureSimple()
851 final FetchProfile fp = new FetchProfile(); in testFetchBodyStructureMultipart() local
852 fp.add(FetchProfile.Item.STRUCTURE); in testFetchBodyStructureMultipart()
868 mFolder.fetch(new Message[] { message }, fp, null); in testFetchBodyStructureMultipart()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Dperftest.h76 FILE *fp = 0; in SetUp() local
78 fp = fopen(filename_ = paths[i], "rb"); in SetUp()
79 if (fp) in SetUp()
82 ASSERT_TRUE(fp != 0); in SetUp()
84 fseek(fp, 0, SEEK_END); in SetUp()
85 length_ = (size_t)ftell(fp); in SetUp()
86 fseek(fp, 0, SEEK_SET); in SetUp()
88 ASSERT_EQ(length_, fread(json_, 1, length_, fp)); in SetUp()
90 fclose(fp); in SetUp()
Drapidjsontest.cpp339 FILE *fp = fopen(filename_, "rb"); in TEST_F() local
341 FileReadStream s(fp, buffer, sizeof(buffer)); in TEST_F()
344 fclose(fp); in TEST_F()
350 FILE *fp = fopen(filename_, "rb"); in TEST_F() local
352 FileReadStream s(fp, buffer, sizeof(buffer)); in TEST_F()
356 fclose(fp); in TEST_F()
Dplatformtest.cpp106 FILE *fp = fopen(filename_, "rb"); in TEST_F() local
107 ASSERT_EQ(length_, fread(temp_, 1, length_, fp)); in TEST_F()
109 fclose(fp); in TEST_F()
/packages/apps/Email/provider_src/com/android/email/service/
DImapService.java258 FetchProfile fp = new FetchProfile(); in loadUnsyncedMessages() local
259 fp.add(FetchProfile.Item.STRUCTURE); in loadUnsyncedMessages()
260 remoteFolder.fetch(messages.toArray(new Message[messages.size()]), fp, null); in loadUnsyncedMessages() local
271 fp.clear(); in loadUnsyncedMessages()
272 fp.add(part); in loadUnsyncedMessages()
273 remoteFolder.fetch(oneMessageArray, fp, null); in loadUnsyncedMessages()
285 FetchProfile fp = new FetchProfile(); in downloadFlagAndEnvelope() local
286 fp.add(FetchProfile.Item.FLAGS); in downloadFlagAndEnvelope()
287 fp.add(FetchProfile.Item.ENVELOPE); in downloadFlagAndEnvelope()
296 remoteFolder.fetch(unsyncedMessages.toArray(new Message[unsyncedMessages.size()]), fp, in downloadFlagAndEnvelope() local
[all …]
DEmailServiceStub.java217 final FetchProfile fp = new FetchProfile(); in loadAttachment() local
218 fp.add(storePart); in loadAttachment()
219 remoteFolder.fetch(new Message[] { storeMessage }, fp, in loadAttachment()
/packages/apps/Test/connectivity/sl4n/rapidjson/doc/
Dstream.md80 FILE* fp = fopen("big.json", "rb"); // non-Windows use "r"
83 FileReadStream is(fp, readBuffer, sizeof(readBuffer));
88 fclose(fp);
109 FILE* fp = fopen("output.json", "wb"); // non-Windows use "w"
112 FileWriteStream os(fp, writeBuffer, sizeof(writeBuffer));
117 fclose(fp);
146 FILE* fp = fopen("utf16le.json", "rb"); // non-Windows use "r"
149 FileReadStream bis(fp, readBuffer, sizeof(readBuffer));
156 fclose(fp);
171 FILE* fp = fopen("output_utf32le.json", "wb"); // non-Windows use "w"
[all …]
Ddom.md44 FILE* fp = fopen("localization.json", "rb"); // non-Windows use "r"
47 FileReadStream bis(fp, readBuffer, sizeof(readBuffer));
192 FILE* fp = fopen("test.json", "r");
193 fseek(fp, 0, SEEK_END);
194 size_t filesize = (size_t)ftell(fp);
195 fseek(fp, 0, SEEK_SET);
197 size_t readLength = fread(buffer, 1, filesize, fp);
199 fclose(fp);
/packages/services/Telephony/src/com/android/phone/common/mail/store/
DImapFolder.java258 public void fetch(Message[] messages, FetchProfile fp, in fetch() argument
261 fetchInternal(messages, fp, listener); in fetch()
268 public void fetchInternal(Message[] messages, FetchProfile fp, in fetchInternal() argument
293 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
296 if (fp.contains(FetchProfile.Item.ENVELOPE)) { in fetchInternal()
301 if (fp.contains(FetchProfile.Item.STRUCTURE)) { in fetchInternal()
305 if (fp.contains(FetchProfile.Item.BODY_SANE)) { in fetchInternal()
308 if (fp.contains(FetchProfile.Item.BODY)) { in fetchInternal()
313 final Part fetchPart = fp.getFirstPart(); in fetchInternal()
347 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
[all …]
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_camera.h316 double f,fp,fpi; in db_UpdateRotFocalHomography() local
323 fp=f+dx[3]; in db_UpdateRotFocalHomography()
324 fpi=db_SafeReciprocal(fp); in db_UpdateRotFocalHomography()
325 H_p_dx[2]*=fp; in db_UpdateRotFocalHomography()
326 H_p_dx[5]*=fp; in db_UpdateRotFocalHomography()
Ddb_metrics.h39 inline void db_CauchyDerivative(double J[4],double fp[2],const double f[2],double one_over_scale2) in db_CauchyDerivative()
90 fp[0]=r_fu*f[0]; in db_CauchyDerivative()
91 fp[1]=r_fu*f[1]; in db_CauchyDerivative()
110 fp[0]=0.0; in db_CauchyDerivative()
111 fp[1]=0.0; in db_CauchyDerivative()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java608 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) in fetch() argument
611 fetchInternal(messages, fp, listener); in fetch()
621 public void fetchInternal(Message[] messages, FetchProfile fp, in fetchInternal() argument
646 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
649 if (fp.contains(FetchProfile.Item.ENVELOPE)) { in fetchInternal()
654 if (fp.contains(FetchProfile.Item.STRUCTURE)) { in fetchInternal()
658 if (fp.contains(FetchProfile.Item.BODY_SANE)) { in fetchInternal()
661 if (fp.contains(FetchProfile.Item.BODY)) { in fetchInternal()
666 final Part fetchPart = fp.getFirstPart(); in fetchInternal()
700 if (fp.contains(FetchProfile.Item.FLAGS)) { in fetchInternal()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/
Dfilereadstream.h37 …FileReadStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), bufferS… in FileReadStream() argument
Dfilewritestream.h31 …FileWriteStream(std::FILE* fp, char* buffer, size_t bufferSize) : fp_(fp), buffer_(buffer), buffer… in FileWriteStream() argument
/packages/apps/Settings/src/com/android/settings/fingerprint/
DFingerprintSettings.java199 public void onRemovalError(Fingerprint fp, int errMsgId, CharSequence errString) {
426 final Fingerprint fp =fpref.getFingerprint(); in onPreferenceTreeClick() local
427 showRenameDeleteDialog(fp); in onPreferenceTreeClick()
433 private void showRenameDeleteDialog(final Fingerprint fp) { in showRenameDeleteDialog() argument
436 args.putParcelable("fingerprint", fp); in showRenameDeleteDialog()
/packages/apps/Test/connectivity/sl4n/rapidjson/include/rapidjson/internal/
Ddiyfp.h41 DiyFp(uint64_t fp, int exp) : f(fp), e(exp) {} in DiyFp()
/packages/apps/Email/tests/src/com/android/emailcommon/mail/
DMockFolder.java64 public void fetch(Message[] messages, FetchProfile fp, MessageRetrievalListener listener) { in fetch() argument
/packages/apps/UnifiedEmail/src/com/android/emailcommon/mail/
DFolder.java163 public abstract void fetch(Message[] messages, FetchProfile fp, in fetch() argument
/packages/apps/Settings/src/com/android/settings/
DChooseLockGeneric.java667 public void onRemovalError(Fingerprint fp, int errMsgId, in removeAllFingerprintForUserAndFinish()
669 Log.v(TAG, "Fingerprint removed: " + fp.getFingerId()); in removeAllFingerprintForUserAndFinish()
670 if (fp.getFingerId() == 0) { in removeAllFingerprintForUserAndFinish()

12