/packages/apps/Test/connectivity/sl4n/facades/test/ |
D | test_facade.cpp | 65 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/ |
D | bt_binder_facade.cpp | 207 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/dirlist/ |
D | UserInputHandler.java | 187 public boolean onKey(DocumentHolder doc, int keyCode, KeyEvent event) { in onKey() argument 188 return mKeyListener.onKey(doc, keyCode, event); in onKey() 191 private boolean selectDocument(DocumentDetails doc) { in selectDocument() argument 192 assert(doc != null); in selectDocument() 193 assert(doc.hasModelId()); in selectDocument() 194 mSelectionMgr.toggleSelection(doc.getModelId()); in selectDocument() 195 mSelectionMgr.setSelectionRangeBegin(doc.getAdapterPosition()); in selectDocument() 200 mFocusHandler.focusDocument(doc.getModelId()); in selectDocument() 207 private boolean focusDocument(DocumentDetails doc) { in focusDocument() argument 208 assert(doc != null); in focusDocument() [all …]
|
D | IconHelper.java | 135 DocumentInfo doc, in load() argument 139 load(doc.derivedUri, doc.mimeType, doc.flags, doc.icon, doc.lastModified, in load() 247 public Drawable getDocumentIcon(Context context, DocumentInfo doc) { in getDocumentIcon() argument 249 context, doc.authority, doc.documentId, doc.mimeType, doc.icon); in getDocumentIcon()
|
D | DirectoryFragment.java | 489 DocumentHolder doc = (DocumentHolder) e.getDocumentDetails(); in onContextMenuClick() local 491 v = doc.itemView; in onContextMenuClick() 675 DocumentInfo doc = mModel.getDocuments(selection).get(0); in handleMenuItemClick() local 676 mActions.showInspector(doc); in handleMenuItemClick() 723 DocumentDetails doc = getDocumentHolder(child); in onAccessibilityClick() local 724 mActions.openDocument(doc, ActionHandler.VIEW_TYPE_PREVIEW, in onAccessibilityClick() 753 DocumentInfo doc = in showChooserForDoc() local 755 mActions.showChooserForDoc(doc); in showChooserForDoc() 972 private boolean canSelect(DocumentDetails doc) { in canSelect() argument 973 return canSetSelectionState(doc.getModelId(), true); in canSelect() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
D | ActionHandler.java | 138 DocumentInfo doc = mModel.getDocument(selection.iterator().next()); in openSelectedInNewWindow() local 139 assert(doc != null); in openSelectedInNewWindow() 140 openInNewWindow(new DocumentStack(mState.stack, doc)); in openSelectedInNewWindow() 156 (DocumentInfo doc) -> pasteIntoFolder(root, doc)); in pasteIntoFolder() 159 private void pasteIntoFolder(RootInfo root, @Nullable DocumentInfo doc) { in pasteIntoFolder() argument 160 DocumentStack stack = new DocumentStack(root, doc); in pasteIntoFolder() 161 mClipper.copyFromClipboard(doc, stack, mDialogs::showFileOperationStatus); in pasteIntoFolder() 192 DocumentInfo doc = mModel.getDocument(details.getModelId()); in openDocument() local 193 if (doc == null) { in openDocument() 199 return openDocument(doc, type, fallback); in openDocument() [all …]
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
D | documenttest.cpp | 27 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 …]
|
D | namespacetest.cpp | 37 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/facades/wifi/ |
D | wifi_facade.cpp | 157 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/ |
D | TestModel.java | 103 DocumentInfo doc = new DocumentInfo(); in createDocument() local 104 doc.authority = mAuthority; in createDocument() 105 doc.documentId = Integer.toString(++mLastId); in createDocument() 106 doc.derivedUri = DocumentsContract.buildDocumentUri(doc.authority, doc.documentId); in createDocument() 107 doc.displayName = name; in createDocument() 108 doc.mimeType = mimeType; in createDocument() 109 doc.flags = flags; in createDocument() 110 doc.size = mRand.nextInt(); in createDocument() 112 addToCursor(doc); in createDocument() 114 return doc; in createDocument() [all …]
|
D | TestDocumentsProvider.java | 111 for (DocumentInfo doc : docs) { in createDocumentsCursor() 113 .add(Document.COLUMN_DOCUMENT_ID, doc.documentId) in createDocumentsCursor() 114 .add(Document.COLUMN_MIME_TYPE, doc.mimeType) in createDocumentsCursor() 115 .add(Document.COLUMN_DISPLAY_NAME, doc.displayName) in createDocumentsCursor() 116 .add(Document.COLUMN_LAST_MODIFIED, doc.lastModified) in createDocumentsCursor() 117 .add(Document.COLUMN_FLAGS, doc.flags) in createDocumentsCursor() 118 .add(Document.COLUMN_SUMMARY, doc.summary) in createDocumentsCursor() 119 .add(Document.COLUMN_SIZE, doc.size) in createDocumentsCursor() 120 .add(Document.COLUMN_ICON, doc.icon); in createDocumentsCursor()
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
D | rapidjsontest.cpp | 134 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/Test/connectivity/sl4n/utils/ |
D | command_receiver.cpp | 31 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 …]
|
D | common_utils.cpp | 22 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/DocumentsUI/src/com/android/documentsui/ |
D | AbstractActionHandler.java | 194 public void refreshDocument(DocumentInfo doc, BooleanConsumer callback) { in refreshDocument() argument 198 doc, in refreshDocument() 203 task.executeOnExecutor(mExecutors.lookup(doc == null ? null : doc.authority)); in refreshDocument() 229 public boolean openDocument(DocumentDetails doc, @ViewType int type, @ViewType int fallback) { in openDocument() argument 233 public void showInspector(DocumentInfo doc) { in showInspector() argument 238 public void springOpenDirectory(DocumentInfo doc) { in springOpenDirectory() argument 314 public void showChooserForDoc(DocumentInfo doc) { in showChooserForDoc() argument 331 public void openContainerDocument(DocumentInfo doc) { in openContainerDocument() argument 332 assert(doc.isContainer()); in openContainerDocument() 336 doc.derivedUri, in openContainerDocument() [all …]
|
D | DragAndDropManager.java | 92 boolean canSpringOpen(RootInfo root, DocumentInfo doc); in canSpringOpen() argument 240 for (DocumentInfo doc : srcs) { in startDrag() 241 uris.add(doc.derivedUri); in startDrag() 271 DocumentInfo doc = srcs.get(0); in updateShadow() local 272 title = doc.displayName; in updateShadow() 273 icon = iconHelper.getDocumentIcon(mContext, doc); in updateShadow() 297 public boolean canSpringOpen(RootInfo root, DocumentInfo doc) { in canSpringOpen() argument 298 return isValidDestination(root, doc.derivedUri); in canSpringOpen() 388 (DocumentInfo doc) -> { in drop() 389 dropOnRootDocument(clipData, localState, destRoot, doc, opType, callback); in drop()
|
D | Model.java | 63 public @Nullable DocumentInfo doc; field in Model 109 doc = null; in reset() 130 doc = result.doc; in update() 221 DocumentInfo doc; in loadDocuments() local 223 doc = loadDocument(modelId, filter); in loadDocuments() 224 if (doc != null) { in loadDocuments() 225 docs.add(doc); in loadDocuments()
|
D | ActionHandler.java | 79 void refreshDocument(DocumentInfo doc, BooleanConsumer callback); in refreshDocument() argument 106 void showInspector(DocumentInfo doc); in showInspector() argument 114 boolean openDocument(DocumentDetails doc, @ViewType int type, @ViewType int fallback); in openDocument() argument 121 void springOpenDirectory(DocumentInfo doc); in springOpenDirectory() argument 123 void showChooserForDoc(DocumentInfo doc); in showChooserForDoc() argument 127 void openContainerDocument(DocumentInfo doc); in openContainerDocument() argument
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
D | InspectorControllerTest.java | 193 DocumentInfo doc = new DocumentInfo(); in testShowInProvider_visible() local 194 doc.derivedUri = in testShowInProvider_visible() 197 doc.flags = doc.flags | Document.FLAG_SUPPORTS_SETTINGS; in testShowInProvider_visible() 198 mController.updateView(doc); in testShowInProvider_visible() 209 DocumentInfo doc = new DocumentInfo(); in testShowInProvider_invisible() local 210 doc.derivedUri = in testShowInProvider_invisible() 213 mController.updateView(doc); in testShowInProvider_invisible() 227 DocumentInfo doc = new DocumentInfo(); in testAppDefaults_visible() local 228 doc.derivedUri = in testAppDefaults_visible() 231 mController.updateView(doc); in testAppDefaults_visible() [all …]
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
D | DocumentDebugInfo.java | 39 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/services/ |
D | Job.java | 204 ContentProviderClient getClient(DocumentInfo doc) throws RemoteException { in getClient() argument 205 return getClient(doc.derivedUri); in getClient() 253 final void deleteDocument(DocumentInfo doc, @Nullable DocumentInfo parent) in deleteDocument() argument 256 if (parent != null && doc.isRemoveSupported()) { in deleteDocument() 257 DocumentsContract.removeDocument(getClient(doc), doc.derivedUri, parent.derivedUri); in deleteDocument() 258 } else if (doc.isDeleteSupported()) { in deleteDocument() 259 DocumentsContract.deleteDocument(getClient(doc), doc.derivedUri); in deleteDocument() 262 + "File is not deletable or removable: %s.", doc.derivedUri); in deleteDocument() 266 doc.derivedUri, e); in deleteDocument()
|
/packages/services/Car/tools/emulator/ |
D | obd2_to_diagjson.py | 40 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/tests/unit/com/android/documentsui/base/ |
D | DocumentInfoTest.java | 57 DocumentInfo doc = new DocumentInfo(); in createDocInfo() local 58 doc.authority = authority; in createDocInfo() 59 doc.documentId = docId; in createDocInfo() 60 doc.mimeType = mimeType; in createDocInfo() 61 doc.deriveFields(); in createDocInfo() 62 return doc; in createDocInfo()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/base/ |
D | DocumentInfo.java | 135 final DocumentInfo doc = new DocumentInfo(); 136 DurableUtils.readFromParcel(in, doc); 137 return doc; 375 public static String debugString(@Nullable DocumentInfo doc) { in debugString() argument 376 if (doc == null) { in debugString() 380 if (doc.derivedUri == null) { in debugString() 381 doc.deriveFields(); in debugString() 382 assert(doc.derivedUri != null); in debugString() 384 return doc.derivedUri.toString(); in debugString()
|
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/dirlist/ |
D | DragStartListenerTest.java | 67 DocumentInfo doc = new DocumentInfo(); in setUp() local 68 doc.authority = Providers.AUTHORITY_STORAGE; in setUp() 69 doc.documentId = "id"; in setUp() 70 doc.derivedUri = DocumentsContract.buildDocumentUri(doc.authority, doc.documentId); in setUp() 73 state.stack.push(doc); in setUp()
|