/packages/apps/Test/connectivity/sl4n/utils/ |
H A D | common_utils.cpp | 22 bool CommonUtils::IsParamLengthMatching(rapidjson::Document& doc, argument 25 if ((int)doc[sl4n::kParamsStr].Size() != expected_param_size) { 27 << doc[sl4n::kParamsStr].Size(); 28 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); 29 doc.AddMember(sl4n::kErrorStr, sl4n::kInvalidParamStr, doc.GetAllocator());
|
H A D | command_receiver.cpp | 31 void _clean_result(rapidjson::Document &doc) { argument 32 doc.RemoveMember(sl4n::kMethodStr); 33 doc.RemoveMember(sl4n::kParamsStr); 36 void initiate(rapidjson::Document &doc) { argument 37 doc.AddMember(sl4n::kStatusStr, sl4n::kSuccessStr, doc.GetAllocator()); 48 void CommandReceiver::Call(rapidjson::Document& doc) { argument 50 if (doc.HasMember(sl4n::kCmdStr)) { 51 cmd = doc[sl4n::kCmdStr].GetString(); 52 } else if (doc [all...] |
H A D | common_utils.h | 26 static bool IsParamLengthMatching(rapidjson::Document& doc,
|
H A D | command_receiver.h | 24 // correspondingly calls the facade associated with the input JSON doc. This 37 // Function that extracts the method/cmd parameter from the JSON doc and 39 void Call(rapidjson::Document& doc);
|
/packages/apps/Test/connectivity/sl4n/facades/test/ |
H A D | test_facade.cpp | 65 void test_bool_true_return_wrapper(rapidjson::Document &doc) { argument 67 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { 74 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); 75 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); 77 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); 78 doc.AddMember(sl4n::kErrorStr, NULL, doc 82 test_bool_false_return_wrapper(rapidjson::Document &doc) argument 99 test_null_return_wrapper(rapidjson::Document &doc) argument 116 test_string_empty_return_wrapper(rapidjson::Document &doc) argument 135 test_string_max_return_wrapper(rapidjson::Document &doc) argument 163 test_specific_param_naming_wrapper(rapidjson::Document &doc) argument [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ui/ |
H A D | DocumentDebugInfo.java | 39 public void update(DocumentInfo doc) { argument 43 .append("docid: " + doc.documentId).append("\n") 44 .append("name: " + doc.displayName).append("\n") 45 .append("mimetype: " + doc.mimeType).append("\n") 46 .append("container: " + doc.isContainer()).append("\n") 47 .append("virtual: " + doc.isVirtual()).append("\n") 50 .append("create: " + doc.isCreateSupported()).append("\n") 51 .append("delete: " + doc.isDeleteSupported()).append("\n") 52 .append("rename: " + doc.isRenameSupported()).append("\n\n") 54 .append(doc [all...] |
/packages/apps/Test/connectivity/sl4n/facades/bluetooth/ |
H A D | bt_binder_facade.cpp | 207 void bt_binder_get_local_name_wrapper(rapidjson::Document &doc) { argument 209 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { 217 doc.AddMember(sl4n::kResultStr, sl4n::kFailStr, doc.GetAllocator()); 218 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); 222 tmp.SetString(name.c_str(), doc.GetAllocator()); 223 doc.AddMember(sl4n::kResultStr, tmp, doc.GetAllocator()); 224 doc 228 bt_binder_init_interface_wapper(rapidjson::Document &doc) argument 245 bt_binder_set_local_name_wrapper(rapidjson::Document &doc) argument 272 bt_binder_get_local_address_wrapper(rapidjson::Document &doc) argument 293 bt_binder_enable_wrapper(rapidjson::Document &doc) argument 310 bt_binder_register_ble_wrapper(rapidjson::Document &doc) argument 328 bt_binder_set_adv_settings_wrapper(rapidjson::Document &doc) argument [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
H A D | DirectoryResult.java | 32 public DocumentInfo doc; field in class:DirectoryResult 38 if (client != null && doc.isInArchive()) { 39 ArchivesProvider.releaseArchive(client, doc.derivedUri); 43 doc = null;
|
H A D | ActionHandler.java | 79 void refreshDocument(DocumentInfo doc, BooleanConsumer callback); argument 106 void showInspector(DocumentInfo doc); argument 114 boolean openDocument(DocumentDetails doc, @ViewType int type, @ViewType int fallback); argument 117 * This is called when user hovers over a doc for enough time during a drag n' drop, to open a 121 void springOpenDirectory(DocumentInfo doc); argument 123 void showChooserForDoc(DocumentInfo doc); argument 127 void openContainerDocument(DocumentInfo doc); argument
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
H A D | UserInputHandler.java | 187 public boolean onKey(DocumentHolder doc, int keyCode, KeyEvent event) { argument 188 return mKeyListener.onKey(doc, keyCode, event); 191 private boolean selectDocument(DocumentDetails doc) { argument 192 assert(doc != null); 193 assert(doc.hasModelId()); 194 mSelectionMgr.toggleSelection(doc.getModelId()); 195 mSelectionMgr.setSelectionRangeBegin(doc.getAdapterPosition()); 197 // we set the focus on this doc so it will be the origin for keyboard events or shift+clicks 200 mFocusHandler.focusDocument(doc.getModelId()); 207 private boolean focusDocument(DocumentDetails doc) { argument 216 extendSelectionRange(DocumentDetails doc) argument 225 shouldClearSelection(T event, DocumentDetails doc) argument 232 isSelected(DocumentDetails doc) argument 484 onKey(@ullable DocumentHolder doc, int keyCode, KeyEvent event) argument 543 shouldExtendSelection(DocumentDetails doc, KeyEvent event) argument [all...] |
H A D | FocusHandler.java | 32 * @param doc The DocumentHolder receiving the key event. 37 boolean handleKey(DocumentHolder doc, int keyCode, KeyEvent event); argument
|
H A D | IconHelper.java | 128 * @param doc The document 135 DocumentInfo doc, 139 load(doc.derivedUri, doc.mimeType, doc.flags, doc.icon, doc.lastModified, 247 public Drawable getDocumentIcon(Context context, DocumentInfo doc) { argument 249 context, doc.authority, doc 134 load( DocumentInfo doc, ImageView iconThumb, ImageView iconMime, @Nullable ImageView subIconMime) argument [all...] |
/packages/apps/Test/connectivity/sl4n/facades/wifi/ |
H A D | wifi_facade.cpp | 157 void wifi_init_wrapper(rapidjson::Document &doc) { argument 159 if (!CommonUtils::IsParamLengthMatching(doc, expected_param_size)) { 166 doc.AddMember(sl4n::kResultStr, false, doc.GetAllocator()); 167 doc.AddMember(sl4n::kErrorStr, sl4n::kFailStr, doc.GetAllocator()); 169 doc.AddMember(sl4n::kResultStr, result, doc.GetAllocator()); 170 doc.AddMember(sl4n::kErrorStr, NULL, doc 174 wifi_get_supported_feature_set_wrapper(rapidjson::Document &doc) argument [all...] |
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/ |
H A D | TestModel.java | 103 DocumentInfo doc = new DocumentInfo(); 104 doc.authority = mAuthority; 105 doc.documentId = Integer.toString(++mLastId); 106 doc.derivedUri = DocumentsContract.buildDocumentUri(doc.authority, doc.documentId); 107 doc.displayName = name; 108 doc.mimeType = mimeType; 109 doc.flags = flags; 110 doc 117 addToCursor(DocumentInfo doc) argument [all...] |
H A D | TestDocumentsProvider.java | 111 for (DocumentInfo doc : docs) { 113 .add(Document.COLUMN_DOCUMENT_ID, doc.documentId) 114 .add(Document.COLUMN_MIME_TYPE, doc.mimeType) 115 .add(Document.COLUMN_DISPLAY_NAME, doc.displayName) 116 .add(Document.COLUMN_LAST_MODIFIED, doc.lastModified) 117 .add(Document.COLUMN_FLAGS, doc.flags) 118 .add(Document.COLUMN_SUMMARY, doc.summary) 119 .add(Document.COLUMN_SIZE, doc.size) 120 .add(Document.COLUMN_ICON, doc.icon);
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/ |
H A D | namespacetest.cpp | 37 DocumentType doc;
local 39 doc.Parse(json);
40 EXPECT_TRUE(!doc.HasParseError());
61 Document doc;
local 62 doc.Parse(buffer.GetString());
63 EXPECT_TRUE(!doc.HasParseError());
67 doc.Accept(writer);
|
H A D | documenttest.cpp | 27 void ParseCheck(DocumentType& doc) {
argument 30 EXPECT_FALSE(doc.HasParseError());
32 EXPECT_TRUE(doc.IsObject());
34 EXPECT_TRUE(doc.HasMember("hello"));
35 const ValueType& hello = doc["hello"];
39 EXPECT_TRUE(doc.HasMember("t"));
40 const ValueType& t = doc["t"];
43 EXPECT_TRUE(doc.HasMember("f"));
44 const ValueType& f = doc["f"];
47 EXPECT_TRUE(doc 72 DocumentType doc; local 252 Document doc; local 281 Document doc; local [all...] |
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/base/ |
H A D | DocumentInfoTest.java | 28 = createDocInfo("authority.a", "doc.1", "text/plain"); 32 assertEquals(TEST_DOC, createDocInfo("authority.a", "doc.1", "text/plain")); 45 assertFalse(TEST_DOC.equals(createDocInfo("authority.b", "doc.1", "text/plain"))); 49 assertFalse(TEST_DOC.equals(createDocInfo("authority.a", "doc.2", "text/plain"))); 53 assertFalse(TEST_DOC.equals(createDocInfo("authority.a", "doc.1", "image/png"))); 57 DocumentInfo doc = new DocumentInfo(); 58 doc.authority = authority; 59 doc.documentId = docId; 60 doc.mimeType = mimeType; 61 doc [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/files/ |
H A D | ActionHandler.java | 138 DocumentInfo doc = mModel.getDocument(selection.iterator().next()); 139 assert(doc != null); 140 openInNewWindow(new DocumentStack(mState.stack, doc)); 156 (DocumentInfo doc) -> pasteIntoFolder(root, doc)); 159 private void pasteIntoFolder(RootInfo root, @Nullable DocumentInfo doc) { argument 160 DocumentStack stack = new DocumentStack(root, doc); 161 mClipper.copyFromClipboard(doc, stack, mDialogs::showFileOperationStatus); 192 DocumentInfo doc = mModel.getDocument(details.getModelId()); 193 if (doc 204 openDocument(DocumentInfo doc, @ViewType int type, @ViewType int fallback) argument 214 springOpenDirectory(DocumentInfo doc) argument 482 showChooserForDoc(DocumentInfo doc) argument 501 onDocumentPicked(DocumentInfo doc, @ViewType int type, @ViewType int fallback) argument 554 viewDocument(DocumentInfo doc) argument 584 previewDocument(DocumentInfo doc) argument 610 manageDocument(DocumentInfo doc) argument 627 isManagedDownload(DocumentInfo doc) argument 659 buildViewIntent(DocumentInfo doc) argument 678 showInspector(DocumentInfo doc) argument [all...] |
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/ |
H A D | InspectorControllerTest.java | 193 DocumentInfo doc = new DocumentInfo(); 194 doc.derivedUri = 197 doc.flags = doc.flags | Document.FLAG_SUPPORTS_SETTINGS; 198 mController.updateView(doc); 209 DocumentInfo doc = new DocumentInfo(); 210 doc.derivedUri = 213 mController.updateView(doc); 227 DocumentInfo doc = new DocumentInfo(); 228 doc [all...] |
/packages/apps/DocumentsUI/src/com/android/documentsui/services/ |
H A D | ResolvedResourcesJob.java | 112 boolean isEligibleDoc(DocumentInfo doc, RootInfo root) { argument 133 DocumentInfo doc; 135 doc = DocumentInfo.fromUri(resolver, uri); 143 if (isEligibleDoc(doc, stack.getRoot())) { 144 mResolvedDocs.add(doc); 146 onFileFailed(doc);
|
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/actions/ |
H A D | ShowInProviderAction.java | 34 public ShowInProviderAction(Context context, PackageManager pm, DocumentInfo doc, argument 36 super(context, pm, doc);
|
H A D | Action.java | 40 public Action(Context context, PackageManager pm, DocumentInfo doc) { argument 43 assert doc != null; 46 mDoc = doc;
|
/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/ |
H A D | IntegratedDownloadsUiTest.java | 61 UiObject doc = bots.directory.findDocument("Unsuccessful"); 62 doc.waitForExists(TIMEOUT); 66 doc.click();
|
/packages/apps/Test/connectivity/sl4n/rapidjson/test/perftest/ |
H A D | rapidjsontest.cpp | 134 Document doc;
local 135 doc.ParseInsitu(temp_);
136 ASSERT_TRUE(doc.IsObject());
143 Document doc;
local 144 doc.ParseInsitu<kParseIterativeFlag>(temp_);
145 ASSERT_TRUE(doc.IsObject());
151 Document doc;
local 152 doc.Parse(json_);
153 ASSERT_TRUE(doc.IsObject());
159 Document doc;
local 168 GenericDocument<UTF8<>, CrtAllocator> doc; local 178 Document doc; local 188 Document doc; local [all...] |