OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:jsonObject
(Results
1 - 20
of
20
) sorted by null
/developers/build/prebuilts/gradle/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
AssetUtils.java
25
import org.json.
JSONObject
;
47
public static
JSONObject
loadJSONAsset(Context context, String asset) {
49
JSONObject
jsonObject
= null;
51
jsonObject
= new
JSONObject
(jsonString);
55
return
jsonObject
;
RecipeActivity.java
35
import org.json.
JSONObject
;
87
JSONObject
jsonObject
= AssetUtils.loadJSONAsset(this, mRecipeName);
88
if (
jsonObject
!= null) {
89
mRecipe = Recipe.fromJson(this,
jsonObject
);
RecipeListAdapter.java
32
import org.json.
JSONObject
;
57
JSONObject
jsonObject
= AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE);
58
if (
jsonObject
!= null) {
59
List<Item> items = parseJson(
jsonObject
);
64
private List<Item> parseJson(
JSONObject
json) {
69
JSONObject
item = items.getJSONObject(i);
/developers/samples/android/deprecated/wearable/wear/RecipeAssistant/Application/src/main/java/com/example/android/wearable/recipeassistant/
AssetUtils.java
25
import org.json.
JSONObject
;
47
public static
JSONObject
loadJSONAsset(Context context, String asset) {
49
JSONObject
jsonObject
= null;
51
jsonObject
= new
JSONObject
(jsonString);
55
return
jsonObject
;
RecipeActivity.java
35
import org.json.
JSONObject
;
87
JSONObject
jsonObject
= AssetUtils.loadJSONAsset(this, mRecipeName);
88
if (
jsonObject
!= null) {
89
mRecipe = Recipe.fromJson(this,
jsonObject
);
RecipeListAdapter.java
32
import org.json.
JSONObject
;
57
JSONObject
jsonObject
= AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE);
58
if (
jsonObject
!= null) {
59
List<Item> items = parseJson(
jsonObject
);
64
private List<Item> parseJson(
JSONObject
json) {
69
JSONObject
item = items.getJSONObject(i);
/development/samples/browseable/RecipeAssistant/Application/src/com.example.android.wearable.recipeassistant/
AssetUtils.java
25
import org.json.
JSONObject
;
47
public static
JSONObject
loadJSONAsset(Context context, String asset) {
49
JSONObject
jsonObject
= null;
51
jsonObject
= new
JSONObject
(jsonString);
55
return
jsonObject
;
RecipeActivity.java
35
import org.json.
JSONObject
;
87
JSONObject
jsonObject
= AssetUtils.loadJSONAsset(this, mRecipeName);
88
if (
jsonObject
!= null) {
89
mRecipe = Recipe.fromJson(this,
jsonObject
);
RecipeListAdapter.java
32
import org.json.
JSONObject
;
57
JSONObject
jsonObject
= AssetUtils.loadJSONAsset(mContext, Constants.RECIPE_LIST_FILE);
58
if (
jsonObject
!= null) {
59
List<Item> items = parseJson(
jsonObject
);
64
private List<Item> parseJson(
JSONObject
json) {
69
JSONObject
item = items.getJSONObject(i);
/external/v8/src/inspector/
v8-value-utils.cc
64
std::unique_ptr<protocol::DictionaryValue>
jsonObject
=
93
jsonObject
->setValue(
97
*result = std::move(
jsonObject
);
/developers/build/prebuilts/gradle/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java
20
import org.json.
JSONObject
;
60
JSONObject
jsonObject
= new
JSONObject
();
62
jsonObject
.put("id", id);
63
jsonObject
.put("month", month);
64
jsonObject
.put("date", date);
65
jsonObject
.put("hour", hour);
66
jsonObject
.put("minute", minute);
70
return
jsonObject
.toString()
[
all
...]
/developers/samples/android/security/DirectBoot/Application/src/main/java/com/example/android/directboot/alarms/
Alarm.java
20
import org.json.
JSONObject
;
60
JSONObject
jsonObject
= new
JSONObject
();
62
jsonObject
.put("id", id);
63
jsonObject
.put("month", month);
64
jsonObject
.put("date", date);
65
jsonObject
.put("hour", hour);
66
jsonObject
.put("minute", minute);
70
return
jsonObject
.toString()
[
all
...]
/development/samples/browseable/DirectBoot/src/com.example.android.directboot/alarms/
Alarm.java
20
import org.json.
JSONObject
;
60
JSONObject
jsonObject
= new
JSONObject
();
62
jsonObject
.put("id", id);
63
jsonObject
.put("month", month);
64
jsonObject
.put("date", date);
65
jsonObject
.put("hour", hour);
66
jsonObject
.put("minute", minute);
70
return
jsonObject
.toString()
[
all
...]
/external/vogar/src/vogar/monitor/
HostMonitor.java
19
import com.google.gson.
JsonObject
;
122
} else if (o instanceof
JsonObject
) {
123
JsonObject
jsonObject
= (
JsonObject
) o;
124
if (
jsonObject
.get("outcome") != null) {
125
currentOutcome =
jsonObject
.get("outcome").getAsString();
128
} else if (
jsonObject
.get("result") != null) {
129
Result currentResult = Result.valueOf(
jsonObject
.get("result").getAsString());
133
} else if (
jsonObject
.get("completedNormally") != null)
[
all
...]
/cts/common/device-side/util/tests/src/com/android/compatibility/common/util/
DeviceReportTest.java
29
import org.json.
JSONObject
;
136
JSONObject
jsonObject
= new
JSONObject
(metrics);
138
jsonObject
.getJSONObject(STREAM_NAME_1).getDouble(TEST_MESSAGE_1) == TEST_VALUE_1);
140
jsonObject
.getJSONObject(STREAM_NAME_2).getDouble(TEST_MESSAGE_2) == TEST_VALUE_2);
148
jsonObject
= new
JSONObject
(metrics);
150
jsonObject
.getJSONObject(STREAM_NAME_3).getDouble(TEST_MESSAGE_3) == TEST_VALUE_3);
152
jsonObject
.getJSONObject(STREAM_NAME_4).getDouble(TEST_MESSAGE_4) == TEST_VALUE_4)
[
all
...]
/cts/common/device-side/util-axt/tests/src/com/android/compatibility/common/util/
DeviceReportTest.java
29
import org.json.
JSONObject
;
136
JSONObject
jsonObject
= new
JSONObject
(metrics);
138
jsonObject
.getJSONObject(STREAM_NAME_1).getDouble(TEST_MESSAGE_1) == TEST_VALUE_1);
140
jsonObject
.getJSONObject(STREAM_NAME_2).getDouble(TEST_MESSAGE_2) == TEST_VALUE_2);
148
jsonObject
= new
JSONObject
(metrics);
150
jsonObject
.getJSONObject(STREAM_NAME_3).getDouble(TEST_MESSAGE_3) == TEST_VALUE_3);
152
jsonObject
.getJSONObject(STREAM_NAME_4).getDouble(TEST_MESSAGE_4) == TEST_VALUE_4)
[
all
...]
/developers/build/prebuilts/gradle/Quiz/Application/src/main/java/com/example/android/wearable/quiz/
MainActivity.java
68
import org.json.
JSONObject
;
227
public static Question fromJson(
JSONObject
questionObject, int questionIndex)
264
JSONObject
jsonObject
= JsonUtils.loadJsonFile(this, QUIZ_JSON_FILE);
265
JSONArray jsonArray =
jsonObject
.getJSONArray(JsonUtils.JSON_FIELD_QUESTIONS);
267
JSONObject
questionObject = jsonArray.getJSONObject(i);
/developers/samples/android/deprecated/wearable/wear/Quiz/Application/src/main/java/com/example/android/wearable/quiz/
MainActivity.java
68
import org.json.
JSONObject
;
227
public static Question fromJson(
JSONObject
questionObject, int questionIndex)
264
JSONObject
jsonObject
= JsonUtils.loadJsonFile(this, QUIZ_JSON_FILE);
265
JSONArray jsonArray =
jsonObject
.getJSONArray(JsonUtils.JSON_FIELD_QUESTIONS);
267
JSONObject
questionObject = jsonArray.getJSONObject(i);
/development/samples/browseable/Quiz/Application/src/com.example.android.wearable.quiz/
MainActivity.java
68
import org.json.
JSONObject
;
227
public static Question fromJson(
JSONObject
questionObject, int questionIndex)
264
JSONObject
jsonObject
= JsonUtils.loadJsonFile(this, QUIZ_JSON_FILE);
265
JSONArray jsonArray =
jsonObject
.getJSONArray(JsonUtils.JSON_FIELD_QUESTIONS);
267
JSONObject
questionObject = jsonArray.getJSONObject(i);
/external/conscrypt/benchmark-android/
vogar.jar
Completed in 1380 milliseconds