Home
last modified time | relevance | path

Searched refs:doc (Results 1 – 25 of 106) sorted by relevance

12345

/packages/apps/Test/connectivity/sl4n/facades/test/
Dtest_facade.cpp65 void test_bool_true_return_wrapper(rapidjson::Document &doc) { in test_bool_true_return_wrapper() argument
67 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_bool_true_return_wrapper()
74 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in test_bool_true_return_wrapper()
75 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in test_bool_true_return_wrapper()
77 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in test_bool_true_return_wrapper()
78 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in test_bool_true_return_wrapper()
82 void test_bool_false_return_wrapper(rapidjson::Document &doc) { in test_bool_false_return_wrapper() argument
84 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in test_bool_false_return_wrapper()
91 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in test_bool_false_return_wrapper()
92 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in test_bool_false_return_wrapper()
[all …]
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/
Dbt_binder_facade.cpp207 void bt_binder_get_local_name_wrapper(rapidjson::Document &doc) { in bt_binder_get_local_name_wrapper() argument
209 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_get_local_name_wrapper()
217 doc.AddMember(sl4n::kResultStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
218 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
222 tmp.SetString(name.c_str(), doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
223 doc.AddMember(sl4n::kResultStr, tmp, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
224 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in bt_binder_get_local_name_wrapper()
228 void bt_binder_init_interface_wapper(rapidjson::Document &doc) { in bt_binder_init_interface_wapper() argument
230 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in bt_binder_init_interface_wapper()
237 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in bt_binder_init_interface_wapper()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/files/
DActionHandler.java146 DocumentInfo doc = mModel.getDocument(selection.iterator().next()); in openSelectedInNewWindow() local
147 assert(doc != null); in openSelectedInNewWindow()
148 openInNewWindow(new DocumentStack(mState.stack, doc)); in openSelectedInNewWindow()
164 (DocumentInfo doc) -> pasteIntoFolder(root, doc)); in pasteIntoFolder()
167 private void pasteIntoFolder(RootInfo root, @Nullable DocumentInfo doc) { in pasteIntoFolder() argument
168 DocumentStack stack = new DocumentStack(root, doc); in pasteIntoFolder()
169 mClipper.copyFromClipboard(doc, stack, mDialogs::showFileOperationStatus); in pasteIntoFolder()
200 DocumentInfo doc = mModel.getDocument(details.getSelectionKey()); in openItem() local
201 if (doc == null) { in openItem()
208 return openDocument(doc, type, fallback); in openItem()
[all …]
/packages/apps/Test/connectivity/sl4n/facades/wifi/
Dwifi_facade.cpp157 void wifi_init_wrapper(rapidjson::Document &doc) { in wifi_init_wrapper() argument
159 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in wifi_init_wrapper()
166 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in wifi_init_wrapper()
167 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in wifi_init_wrapper()
169 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); in wifi_init_wrapper()
170 doc.AddMember(sl4n::kErrorStr, NULL, doc.GetAllocator()); in wifi_init_wrapper()
174 void wifi_get_supported_feature_set_wrapper(rapidjson::Document &doc) { in wifi_get_supported_feature_set_wrapper() argument
176 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { in wifi_get_supported_feature_set_wrapper()
183 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
184 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); in wifi_get_supported_feature_set_wrapper()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestModel.java104 DocumentInfo doc = new DocumentInfo(); in createDocument() local
105 doc.authority = mAuthority; in createDocument()
106 doc.documentId = Integer.toString(++mLastId); in createDocument()
107 doc.derivedUri = DocumentsContract.buildDocumentUri(doc.authority, doc.documentId); in createDocument()
108 doc.displayName = name; in createDocument()
109 doc.mimeType = mimeType; in createDocument()
110 doc.flags = flags; in createDocument()
111 doc.size = mRand.nextInt(); in createDocument()
113 addToCursor(doc); in createDocument()
115 return doc; in createDocument()
[all …]
DTestDocumentsProvider.java121 for (DocumentInfo doc : docs) { in createDocumentsCursor()
123 .add(Document.COLUMN_DOCUMENT_ID, doc.documentId) in createDocumentsCursor()
124 .add(Document.COLUMN_MIME_TYPE, doc.mimeType) in createDocumentsCursor()
125 .add(Document.COLUMN_DISPLAY_NAME, doc.displayName) in createDocumentsCursor()
126 .add(Document.COLUMN_LAST_MODIFIED, doc.lastModified) in createDocumentsCursor()
127 .add(Document.COLUMN_FLAGS, doc.flags) in createDocumentsCursor()
128 .add(Document.COLUMN_SUMMARY, doc.summary) in createDocumentsCursor()
129 .add(Document.COLUMN_SIZE, doc.size) in createDocumentsCursor()
130 .add(Document.COLUMN_ICON, doc.icon); in createDocumentsCursor()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Ddocumenttest.cpp27 void ParseCheck(DocumentType& doc) { in ParseCheck() argument
30 EXPECT_FALSE(doc.HasParseError()); in ParseCheck()
32 EXPECT_TRUE(doc.IsObject()); in ParseCheck()
34 EXPECT_TRUE(doc.HasMember("hello")); in ParseCheck()
35 const ValueType& hello = doc["hello"]; in ParseCheck()
39 EXPECT_TRUE(doc.HasMember("t")); in ParseCheck()
40 const ValueType& t = doc["t"]; in ParseCheck()
43 EXPECT_TRUE(doc.HasMember("f")); in ParseCheck()
44 const ValueType& f = doc["f"]; in ParseCheck()
47 EXPECT_TRUE(doc.HasMember("n")); in ParseCheck()
[all …]
Dnamespacetest.cpp37 DocumentType doc; in TEST() local
39 doc.Parse(json); in TEST()
40 EXPECT_TRUE(!doc.HasParseError()); in TEST()
61 Document doc; in TEST() local
62 doc.Parse(buffer.GetString()); in TEST()
63 EXPECT_TRUE(!doc.HasParseError()); in TEST()
67 doc.Accept(writer); in TEST()
/packages/apps/Test/connectivity/sl4n/utils/
Dcommand_receiver.cpp31 void _clean_result(rapidjson::Document &doc) { in _clean_result() argument
32 doc.RemoveMember(sl4n::kMethodStr); in _clean_result()
33 doc.RemoveMember(sl4n::kParamsStr); in _clean_result()
36 void initiate(rapidjson::Document &doc) { in initiate() argument
37 doc.AddMember(sl4n::kStatusStr, sl4n::kSuccessStr, doc.GetAllocator()); in initiate()
48 void CommandReceiver::Call(rapidjson::Document& doc) { in Call() argument
50 if (doc.HasMember(sl4n::kCmdStr)) { in Call()
51 cmd = doc[sl4n::kCmdStr].GetString(); in Call()
52 } else if (doc.HasMember(sl4n::kMethodStr)) { in Call()
53 cmd = doc[sl4n::kMethodStr].GetString(); in Call()
[all …]
Dcommon_utils.cpp22 bool CommonUtils::IsParamLengthMatching(rapidjson::Document& doc, in IsParamLengthMatching() argument
25 if ((int)doc[sl4n::kParamsStr].Size() != expected_param_size) { in IsParamLengthMatching()
27 << doc[sl4n::kParamsStr].Size(); in IsParamLengthMatching()
28 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); in IsParamLengthMatching()
29 doc.AddMember(sl4n::kErrorStr, sl4n::kInvalidParamStr, doc.GetAllocator()); in IsParamLengthMatching()
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/
Drapidjsontest.cpp134 Document doc; in TEST_F() local
135 doc.ParseInsitu(temp_); in TEST_F()
136 ASSERT_TRUE(doc.IsObject()); in TEST_F()
143 Document doc; in TEST_F() local
144 doc.ParseInsitu<kParseIterativeFlag>(temp_); in TEST_F()
145 ASSERT_TRUE(doc.IsObject()); in TEST_F()
151 Document doc; in TEST_F() local
152 doc.Parse(json_); in TEST_F()
153 ASSERT_TRUE(doc.IsObject()); in TEST_F()
159 Document doc; in TEST_F() local
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DInspectorControllerTest.java204 DocumentInfo doc = new DocumentInfo(); in testShowInProvider_visible() local
205 doc.derivedUri = in testShowInProvider_visible()
207 doc.flags = doc.flags | Document.FLAG_SUPPORTS_SETTINGS; in testShowInProvider_visible()
208 mDataSupplier.mDoc = doc; in testShowInProvider_visible()
209 mController.loadInfo(doc.derivedUri); // actual URI doesn't matter :) in testShowInProvider_visible()
242 DocumentInfo doc = TestEnv.clone(TestEnv.FILE_JPG); in testMetadata_GeoHandlerInstalled() local
243 doc.flags |= DocumentsContract.Document.FLAG_SUPPORTS_METADATA; in testMetadata_GeoHandlerInstalled()
244 mDataSupplier.mDoc = doc; in testMetadata_GeoHandlerInstalled()
245 mController.loadInfo(doc.derivedUri); // actual URI doesn't matter :) in testMetadata_GeoHandlerInstalled()
251 DocumentInfo doc = TestEnv.clone(TestEnv.FILE_JPG); in testMetadata_notDisplayedWhenNotReturned() local
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/
DDocumentDebugInfo.java39 public void update(DocumentInfo doc) { in update() argument
43 .append("docid: " + doc.documentId).append("\n") in update()
44 .append("name: " + doc.displayName).append("\n") in update()
45 .append("mimetype: " + doc.mimeType).append("\n") in update()
46 .append("container: " + doc.isContainer()).append("\n") in update()
47 .append("virtual: " + doc.isVirtual()).append("\n") in update()
50 .append("create: " + doc.isCreateSupported()).append("\n") in update()
51 .append("delete: " + doc.isDeleteSupported()).append("\n") in update()
52 .append("rename: " + doc.isRenameSupported()).append("\n\n") in update()
54 .append(doc.derivedUri).append("\n") in update()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DDetailsView.java46 public void accept(DocumentInfo doc, String displayName) { in accept() argument
53 String mimeType = fileTypeLookup.lookup(doc.mimeType); in accept()
59 if (doc.size >= 0 && !doc.isDirectory()) { in accept()
60 put(R.string.sort_dimension_size, Formatter.formatFileSize(getContext(), doc.size)); in accept()
63 if (doc.lastModified > 0) { in accept()
65 DateUtils.formatDate(this.getContext(), doc.lastModified)); in accept()
74 if (doc.isPartial() && doc.summary != null) { in accept()
75 put(R.string.sort_dimension_summary, doc.summary); in accept()
DHeaderView.java79 private void loadHeaderImage(DocumentInfo doc) { in loadHeaderImage() argument
80 if (!doc.isThumbnailSupported()) { in loadHeaderImage()
81 showImage(doc, null); in loadHeaderImage()
86 showImage(doc, thumbnail); in loadHeaderImage()
90 final ThumbnailLoader task = new ThumbnailLoader(doc.derivedUri, mThumbnail, in loadHeaderImage()
91 mImageDimensions, doc.lastModified, callback, false); in loadHeaderImage()
92 task.executeOnExecutor(ProviderExecutor.forAuthority(doc.derivedUri.getAuthority()), in loadHeaderImage()
93 doc.derivedUri); in loadHeaderImage()
/packages/apps/DocumentsUI/src/com/android/documentsui/
DAbstractActionHandler.java197 public void refreshDocument(DocumentInfo doc, BooleanConsumer callback) { in refreshDocument() argument
201 doc, in refreshDocument()
206 task.executeOnExecutor(mExecutors.lookup(doc == null ? null : doc.authority)); in refreshDocument()
232 public boolean openItem(ItemDetails<String> doc, @ViewType int type, @ViewType int fallback) { in openItem() argument
237 public void showInspector(DocumentInfo doc) { in showInspector() argument
242 public void springOpenDirectory(DocumentInfo doc) { in springOpenDirectory() argument
323 public void showChooserForDoc(DocumentInfo doc) { in showChooserForDoc() argument
340 public void openContainerDocument(DocumentInfo doc) { in openContainerDocument() argument
341 assert(doc.isContainer()); in openContainerDocument()
345 doc.derivedUri, in openContainerDocument()
[all …]
DActionHandler.java81 void refreshDocument(DocumentInfo doc, BooleanConsumer callback); in refreshDocument() argument
110 void showInspector(DocumentInfo doc); in showInspector() argument
118 boolean openItem(ItemDetails<String> doc, @ViewType int type, @ViewType int fallback); in openItem() argument
125 void springOpenDirectory(DocumentInfo doc); in springOpenDirectory() argument
127 void showChooserForDoc(DocumentInfo doc); in showChooserForDoc() argument
131 void openContainerDocument(DocumentInfo doc); in openContainerDocument() argument
133 boolean previewItem(ItemDetails<String> doc); in previewItem() argument
DDragAndDropManager.java93 boolean canSpringOpen(RootInfo root, DocumentInfo doc); in canSpringOpen() argument
241 for (DocumentInfo doc : srcs) { in startDrag()
242 uris.add(doc.derivedUri); in startDrag()
272 DocumentInfo doc = srcs.get(0); in updateShadow() local
273 title = doc.displayName; in updateShadow()
274 icon = iconHelper.getDocumentIcon(mContext, doc); in updateShadow()
298 public boolean canSpringOpen(RootInfo root, DocumentInfo doc) { in canSpringOpen() argument
299 return isValidDestination(root, doc.derivedUri); in canSpringOpen()
389 (DocumentInfo doc) -> { in drop()
390 dropOnRootDocument(clipData, localState, destRoot, doc, opType, callback); in drop()
DModel.java61 public @Nullable DocumentInfo doc; field in Model
107 doc = null; in reset()
129 doc = result.doc; in update()
218 DocumentInfo doc; in loadDocuments() local
220 doc = loadDocument(modelId, filter); in loadDocuments()
221 if (doc != null) { in loadDocuments()
222 docs.add(doc); in loadDocuments()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java135 DocumentInfo doc, in load() argument
139 load(doc.derivedUri, doc.mimeType, doc.flags, doc.icon, doc.lastModified, in load()
243 public Drawable getDocumentIcon(Context context, DocumentInfo doc) { in getDocumentIcon() argument
245 context, doc.authority, doc.documentId, doc.mimeType, doc.icon); in getDocumentIcon()
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/
DRecentsLoaderTests.java79 final DocumentInfo doc = mEnv.model.createFolder("test"); in testDocumentsNotIncludeDirectory() local
80 doc.lastModified = System.currentTimeMillis(); in testDocumentsNotIncludeDirectory()
83 .setNextChildDocumentsReturns(doc); in testDocumentsNotIncludeDirectory()
93 final DocumentInfo doc = mEnv.model.createFile("freddy.jpg", in testDocumentsNotMovable() local
97 doc.lastModified = System.currentTimeMillis(); in testDocumentsNotMovable()
99 .setNextRecentDocumentsReturns(doc); in testDocumentsNotMovable()
123 final DocumentInfo doc = mEnv.model.createFile("freddy.jpg"); in testContentsUpdate_observable() local
124 doc.lastModified = System.currentTimeMillis(); in testContentsUpdate_observable()
126 .setNextRecentDocumentsReturns(doc); in testContentsUpdate_observable()
/packages/services/Car/tools/emulator/
Dobd2_to_diagjson.py40 def __init__(self, doc): argument
41 self.doc = doc
44 return str(self.doc)
50 return Json.wrapIfNeeded(self.doc.get(attr))
54 def __init__(self, doc): argument
55 self.doc = doc.__iter__()
58 return Json.wrapIfNeeded(self.doc.__next__())
60 return Iter(self.doc)
/packages/apps/DocumentsUI/src/com/android/documentsui/services/
DJob.java210 ContentProviderClient getClient(DocumentInfo doc) throws RemoteException { in getClient() argument
211 return getClient(doc.derivedUri); in getClient()
260 final void deleteDocument(DocumentInfo doc, @Nullable DocumentInfo parent) in deleteDocument() argument
263 if (parent != null && doc.isRemoveSupported()) { in deleteDocument()
264 DocumentsContract.removeDocument(wrap(getClient(doc)), doc.derivedUri, in deleteDocument()
266 } else if (doc.isDeleteSupported()) { in deleteDocument()
267 DocumentsContract.deleteDocument(wrap(getClient(doc)), doc.derivedUri); in deleteDocument()
270 + "File is not deletable or removable: %s.", doc.derivedUri); in deleteDocument()
274 doc.derivedUri, e); in deleteDocument()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DActionHandler.java305 public void springOpenDirectory(DocumentInfo doc) { in springOpenDirectory() argument
312 DocumentInfo doc = mModel.getDocument(details.getSelectionKey()); in openItem() local
313 if (doc == null) { in openItem()
319 if (mConfig.isDocumentEnabled(doc.mimeType, doc.flags, mState)) { in openItem()
320 mActivity.onDocumentPicked(doc); in openItem()
322 return !doc.isDirectory(); in openItem()
330 final DocumentInfo doc = mModel.getDocument(details.getSelectionKey()); in previewItem() local
331 if (doc == null) { in previewItem()
336 return priviewDocument(doc); in previewItem()
341 boolean priviewDocument(DocumentInfo doc) { in priviewDocument() argument
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/
DDragStartListenerTest.java69 DocumentInfo doc = new DocumentInfo(); in setUp() local
70 doc.authority = Providers.AUTHORITY_STORAGE; in setUp()
71 doc.documentId = "id"; in setUp()
72 doc.derivedUri = DocumentsContract.buildDocumentUri(doc.authority, doc.documentId); in setUp()
75 state.stack.push(doc); in setUp()

12345