Home
last modified time | relevance | path

Searched refs:JSONObject (Results 1 – 25 of 215) sorted by relevance

123456789

/expo/packages/expo-manifests/android/src/main/java/expo/modules/manifests/core/
H A DManifest.kt7 import org.json.JSONObject
11 fun updateJSON(json: JSONObject) in updateJSON()
14 abstract class Manifest(protected val json: JSONObject) { in updateJSON()
24 fun getRawJson(): JSONObject = json in updateJSON()
124 fun getUpdatesInfo(): JSONObject? { in updateJSON()
154 fun getAndroidStatusBarOptions(): JSONObject? { in updateJSON()
168 fun getAndroidNavigationBarOptions(): JSONObject? { in updateJSON()
190 fun getNotificationPreferences(): JSONObject? { in updateJSON()
195 fun getAndroidSplashInfo(): JSONObject? { in updateJSON()
200 fun getRootSplashInfo(): JSONObject? { in updateJSON()
[all …]
H A DNewManifest.kt7 import org.json.JSONObject
11 class NewManifest(json: JSONObject) : Manifest(json) {
22 return json.require<JSONObject>("extra").require("scopeKey") in getID()
26 val easConfig = getExtra()?.getNullable<JSONObject>("eas") ?: return null in getEASProjectID()
56 fun getLaunchAsset(): JSONObject = json.require("launchAsset") in getLaunchAsset()
63 override fun getExpoGoConfigRootObject(): JSONObject? { in getLaunchAsset()
67 override fun getExpoClientConfigRootObject(): JSONObject? { in getExpoClientConfigRootObject()
75 private fun getExtra(): JSONObject? { in getSlug()
H A DJSONObjectExtension.kt5 import org.json.JSONObject
10 fun JSONObject.toMap(): Map<String, Any> { in JSONObject() method
13 is JSONObject -> value.toMap() in JSONObject()
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/
H A DJSONNotificationContentBuilder.java10 import org.json.JSONObject;
63 protected String getTitle(JSONObject payload) { in getTitle()
71 protected String getText(JSONObject payload) { in getText()
79 protected String getSubtitle(JSONObject payload) { in getSubtitle()
87 protected Number getBadgeCount(JSONObject payload) { in getBadgeCount()
107 protected Uri getSound(JSONObject payload) { in getSound()
126 protected JSONObject getBody(JSONObject payload) { in getBody()
160 protected Number getColor(JSONObject payload) { in getColor()
171 protected boolean getAutoDismiss(JSONObject payload) { in getAutoDismiss()
184 protected String getCategoryId(JSONObject payload) { in getCategoryId()
[all …]
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/notifications/notifications/
H A DJSONNotificationContentBuilder.java10 import org.json.JSONObject;
63 protected String getTitle(JSONObject payload) { in getTitle()
71 protected String getText(JSONObject payload) { in getText()
79 protected String getSubtitle(JSONObject payload) { in getSubtitle()
87 protected Number getBadgeCount(JSONObject payload) { in getBadgeCount()
107 protected Uri getSound(JSONObject payload) { in getSound()
126 protected JSONObject getBody(JSONObject payload) { in getBody()
160 protected Number getColor(JSONObject payload) { in getColor()
171 protected boolean getAutoDismiss(JSONObject payload) { in getAutoDismiss()
184 protected String getCategoryId(JSONObject payload) { in getCategoryId()
[all …]
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/notifications/notifications/
H A DJSONNotificationContentBuilder.java10 import org.json.JSONObject;
63 protected String getTitle(JSONObject payload) { in getTitle()
71 protected String getText(JSONObject payload) { in getText()
79 protected String getSubtitle(JSONObject payload) { in getSubtitle()
87 protected Number getBadgeCount(JSONObject payload) { in getBadgeCount()
107 protected Uri getSound(JSONObject payload) { in getSound()
126 protected JSONObject getBody(JSONObject payload) { in getBody()
160 protected Number getColor(JSONObject payload) { in getColor()
171 protected boolean getAutoDismiss(JSONObject payload) { in getAutoDismiss()
184 protected String getCategoryId(JSONObject payload) { in getCategoryId()
[all …]
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/notifications/notifications/
H A DJSONNotificationContentBuilder.java10 import org.json.JSONObject;
63 protected String getTitle(JSONObject payload) { in getTitle()
71 protected String getText(JSONObject payload) { in getText()
79 protected String getSubtitle(JSONObject payload) { in getSubtitle()
87 protected Number getBadgeCount(JSONObject payload) { in getBadgeCount()
107 protected Uri getSound(JSONObject payload) { in getSound()
126 protected JSONObject getBody(JSONObject payload) { in getBody()
160 protected Number getColor(JSONObject payload) { in getColor()
171 protected boolean getAutoDismiss(JSONObject payload) { in getAutoDismiss()
184 protected String getCategoryId(JSONObject payload) { in getCategoryId()
[all …]
/expo/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/devtools/cdp/
H A DCdpNetworkTypes.kt8 import org.json.JSONObject
37 fun toJSONObject(): JSONObject in toJSONObject()
42 return JSONObject().apply { in toJSONObject()
68 return JSONObject().apply { in toJSONObject()
97 return JSONObject().apply { in toJSONObject()
136 return JSONObject().apply { in toJSONObject()
167 return JSONObject().apply { in toJSONObject()
192 return JSONObject().apply { in toJSONObject()
215 return JSONObject().apply { in toJSONObject()
242 return JSONObject().apply { in toJSONObject()
[all …]
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/kotlin/devtools/cdp/
H A DCdpNetworkTypes.kt8 import org.json.JSONObject
37 fun toJSONObject(): JSONObject in toJSONObject()
42 return JSONObject().apply { in toJSONObject()
68 return JSONObject().apply { in toJSONObject()
97 return JSONObject().apply { in toJSONObject()
136 return JSONObject().apply { in toJSONObject()
167 return JSONObject().apply { in toJSONObject()
192 return JSONObject().apply { in toJSONObject()
215 return JSONObject().apply { in toJSONObject()
242 return JSONObject().apply { in toJSONObject()
[all …]
/expo/android/expoview/src/main/java/host/exp/exponent/notifications/schedulers/
H A DHashMapSerializer.kt5 import org.json.JSONObject
10 val serialized = JSONObject(map) in serialize()
20 val serialized: JSONObject? = try { in deserialize()
21 JSONObject(serializedMap) in deserialize()
30 fun jsonToMap(json: JSONObject?): HashMap<String, Any> { in jsonToMap()
31 return if (json !== null && json !== JSONObject.NULL) { in jsonToMap()
39 fun toMap(obj: JSONObject): HashMap<String, Any> { in toMap()
47 } else if (value is JSONObject) { in toMap()
62 } else if (value is JSONObject) { in toList()
/expo/android/app/src/androidTest/java/host/exp/exponent/utils/
H A DTestConfig.kt4 import org.json.JSONObject
7 fun get(): JSONObject { in get()
9 JSONObject(ExponentBuildConstants.TEST_CONFIG) in get()
11 JSONObject() in get()
/expo/packages/expo-manifests/android/src/test/java/expo/modules/manifests/core/
H A DManifestTest.kt6 import org.json.JSONObject
12 val manifestJson = JSONObject("{}") in getPluginProperties_emptyManifest_returnsNull()
19 val manifestJson = JSONObject("{\"plugins\": []}") in getPluginProperties_emptyPlugins_returnsNull()
26 val manifestJson = JSONObject("{\"plugins\": [\"hello\"]}") in getPluginProperties_nonMatchedPlugins_returnsNull()
33 val manifestJson = JSONObject("{\"plugins\": [\"test\"]}") in getPluginProperties_matchedPluginWithoutProps_returnsNull()
40 val manifestJson = JSONObject("{\"plugins\": [[\"test\"]]}") in getPluginProperties_matchedPluginWithoutPropsAsNestedArray_returnsNull()
48 val manifestJson = JSONObject("{\"plugins\": [ [\"test\", {\"foo\":\"bar\"}] ]}") in getPluginProperties_matchedPluginWithProps_returnsProps()
58 val manifestJson = JSONObject("{\"plugins\":[[\"test\",{\"nested\":{\"insideNested\":true}}]]}") in getPluginProperties_matchedPluginWithNestedProps_returnsNestedProps()
H A DNewManifestTest.kt3 import org.json.JSONObject in <lambda>()
14 val manifest = NewManifest(JSONObject(manifestJson)) in <lambda>()
24 val manifest = NewManifest(JSONObject(manifestJson)) in <lambda>()
42 val manifest = NewManifest(JSONObject(manifestJson)) in <lambda>()
/expo/android/expoview/src/main/java/host/exp/exponent/utils/
H A DBundleJSONConverter.kt26 import org.json.JSONObject
46 fun convertToJSON(bundle: Bundle): JSONObject { in convertToJSON()
47 val json = JSONObject() in convertToJSON()
79 fun convertToBundle(jsonObject: JSONObject): Bundle { in convertToBundle()
85 if (value === JSONObject.NULL) { in convertToBundle()
91 if (value is JSONObject) { in convertToBundle()
118 override fun setOnJSON(json: JSONObject, key: String, value: Any) { in setOnBundle()
130 override fun setOnJSON(json: JSONObject, key: String, value: Any) { in setOnBundle()
142 override fun setOnJSON(json: JSONObject, key: String, value: Any) { in setOnBundle()
154 override fun setOnJSON(json: JSONObject, key: String, value: Any) { in setOnBundle()
[all …]
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/selectionpolicy/
H A DSelectionPolicy.kt5 import org.json.JSONObject
37 fun selectUpdateToLaunch(updates: List<UpdateEntity>, filters: JSONObject?): UpdateEntity? { in selectUpdateToLaunch()
49 filters: JSONObject? in selectUpdatesToDelete()
62 filters: JSONObject? in shouldLoadNewUpdate()
77 filters: JSONObject? in shouldLoadRollBackToEmbeddedDirective()
/expo/packages/expo-updates/android/src/main/java/expo/modules/updates/manifest/
H A DManifestMetadata.kt9 import org.json.JSONObject in <lambda>()
26 ): JSONObject? { in <lambda>()
30 if (jsonString != null) JSONObject(jsonString) else null in <lambda>()
40 ): JSONObject? { in <lambda>()
47 ): JSONObject? { in <lambda>()
66 val jsonObject = previousValue?.let { JSONObject(it) } in <lambda>()
79 JSONObject(extraParamsToWrite).toString() in <lambda>()
100 private fun JSONObject.asStringStringMap(): Map<String, String> { in <lambda>() method
/expo/packages/expo-updates/android/src/androidTest/java/expo/modules/updates/manifest/
H A DUpdateManifestFactoryTest.kt9 import org.json.JSONObject
32 JSONObject(legacyManifestJson), in testGetManifest_Legacy()
44 JSONObject(newManifestJson), in testGetManifest_New()
56 JSONObject(newManifestJson), in testGetManifest_UnsupportedProtocolVersion()
67 JSONObject(legacyManifestJson), in testGetEmbeddedManifest_Legacy()
77 JSONObject(bareManifestJson), in testGetEmbeddedManifest_Legacy_Bare()
H A DNewUpdateManifestTest.kt8 import org.json.JSONObject
22 val manifest = NewManifest(JSONObject(manifestJson)) in testFromManifestJson_AllFields()
31 val manifest = NewManifest(JSONObject(manifestJson)) in testFromManifestJson_NoId()
40 val manifest = NewManifest(JSONObject(manifestJson)) in testFromManifestJson_NoCreatedAt()
49 val manifest = NewManifest(JSONObject(manifestJson)) in testFromManifestJson_NoRuntimeVersion()
58 val manifest = NewManifest(JSONObject(manifestJson)) in testFromManifestJson_NoLaunchAsset()
/expo/packages/@expo/config-plugins/build/ios/
H A DEntitlements.d.ts2 import { JSONObject } from '@expo/json-file';
4 …ig, { 'com.apple.developer.associated-domains': _, ...entitlementsPlist }: JSONObject): JSONObject;
/expo/packages/expo-json-utils/android/src/main/java/expo/modules/jsonutils/
H A DJSONObjectUtils.kt5 import org.json.JSONObject
8 inline fun <reified T : Any> JSONObject.require(key: String): T { in require()
16 JSONObject::class -> this.getJSONObject(key) as T in require()
21 inline fun <reified T : Any> JSONObject.getNullable(key: String): T? { in getNullable()
/expo/android/vendored/unversioned/@react-native-async-storage/async-storage/android/src/main/java/com/reactnativecommunity/asyncstorage/next/
H A DArgumentHelpers.kt6 import org.json.JSONObject
61 JSONObject(this) in isValidJson()
68 fun JSONObject.mergeWith(newObject: JSONObject): JSONObject { in JSONObject() method
71 val mergedObject = JSONObject(this.toString()) in JSONObject()
/expo/android/vendored/sdk49/@react-native-async-storage/async-storage/android/src/main/java/abi49_0_0/com/reactnativecommunity/asyncstorage/next/
H A DArgumentHelpers.kt6 import org.json.JSONObject
61 JSONObject(this) in isValidJson()
68 fun JSONObject.mergeWith(newObject: JSONObject): JSONObject { in JSONObject() method
71 val mergedObject = JSONObject(this.toString()) in JSONObject()
/expo/android/vendored/sdk48/@react-native-async-storage/async-storage/android/src/main/java/abi48_0_0/com/reactnativecommunity/asyncstorage/next/
H A DArgumentHelpers.kt6 import org.json.JSONObject
61 JSONObject(this) in isValidJson()
68 fun JSONObject.mergeWith(newObject: JSONObject): JSONObject { in JSONObject() method
71 val mergedObject = JSONObject(this.toString()) in JSONObject()
/expo/packages/expo-modules-core/android/src/test/java/expo/modules/kotlin/devtools/
H A DExpoRequestCdpInterceptorTest.kt11 import org.json.JSONObject
41 var json = JSONObject(mockDelegate.events[0]) in simple json data()
50 json = JSONObject(mockDelegate.events[1]) in simple json data()
57 json = JSONObject(mockDelegate.events[2]) in simple json data()
68 json = JSONObject(mockDelegate.events[3]) in simple json data()
77 json = JSONObject(mockDelegate.events[4]) in simple json data()
102 json = JSONObject(mockDelegate.events[2]) in http 302 redirection()
117 json = JSONObject(mockDelegate.events[4]) in http 302 redirection()
128 json = JSONObject(mockDelegate.events[5]) in http 302 redirection()
166 json = JSONObject(mockDelegate.events[1]) in skip 'receivedResponseBody' when response size exceeding 1MB limit()
[all …]
/expo/packages/@expo/config-plugins/build/plugins/
H A Dios-plugins.d.ts2 import type { JSONObject } from '@expo/json-file';
19 type MutateEntitlementsPlistAction = (expo: ExpoConfig, entitlements: JSONObject) => JSONObject;
48 export declare const withEntitlementsPlist: ConfigPlugin<Mod<JSONObject>>;

123456789