docstring_tokens list | code_tokens list |
|---|---|
[
"remove",
"theme",
"from",
"the",
"intent",
"extras"
] | [
"activity",
"get",
"intent",
"(",
")",
"remove",
"extra",
"(",
"theme",
"tag",
")",
";"
] |
[
"reset",
"all",
"themes",
"to",
"default"
] | [
"if",
"(",
"(",
"default",
"theme",
"&",
"color",
"scheme",
"mask",
")",
"=",
"=",
"0",
")",
"{",
"default",
"theme",
"=",
"dark",
";",
"}",
"theme",
"modifier",
"=",
"0",
";",
"themes",
"map",
"clear",
"(",
")",
";",
"map",
"(",
"dark",
",",
"... |
[
"simply",
"restart",
"activity"
] | [
"restart",
"(",
"activity",
",",
"true",
")",
";"
] |
[
"check",
"activity",
"on",
"dark",
"theme",
"and",
"restart",
"it",
"if",
"theme",
"incorrect"
] | [
"theme",
"manager",
"restart",
"with",
"theme",
"(",
"activity",
",",
"theme",
"manager",
"dark",
")",
";"
] |
[
"check",
"activity",
"on",
"light",
"theme",
"and",
"restart",
"it",
"if",
"theme",
"incorrect"
] | [
"theme",
"manager",
"restart",
"with",
"theme",
"(",
"activity",
",",
"theme",
"manager",
"light",
")",
";"
] |
[
"check",
"activity",
"on",
"light",
"with",
"dark",
"action",
"bar",
"theme",
"and",
"restart",
"it",
"if",
"theme",
"incorrect"
] | [
"theme",
"manager",
"restart",
"with",
"theme",
"(",
"activity",
",",
"theme",
"manager",
"mixed",
")",
";"
] |
[
"check",
"activity",
"on",
"theme",
"and",
"restart",
"it",
"if",
"theme",
"incorrect"
] | [
"theme",
"manager",
"restart",
"with",
"theme",
"(",
"activity",
",",
"theme",
",",
"false",
")",
";"
] |
[
"set",
"{",
"@",
"link",
"theme",
"getter",
"}",
"instance",
"for",
"getting",
"theme",
"resources"
] | [
"register",
"theme",
"getter",
"(",
"theme",
"getter",
")",
";"
] |
[
"only",
"for",
"system",
"use"
] | [
"theme",
"manager",
"start",
"activity",
"(",
"context",
",",
"intent",
",",
"-",
"1",
")",
";"
] |
[
"only",
"for",
"system",
"use"
] | [
"theme",
"manager",
"start",
"activity",
"(",
"context",
",",
"intent",
",",
"-",
"1",
",",
"options",
")",
";"
] |
[
"only",
"for",
"system",
"use"
] | [
"theme",
"manager",
"start",
"activity",
"(",
"context",
",",
"intent",
",",
"request",
"code",
",",
"null",
")",
";"
] |
[
"retreives",
"the",
"parent",
"of",
"this",
"service",
"manager",
"usually",
"a",
"more",
"specifically",
"typed",
"version",
"of",
"this",
"but",
"it",
"can",
"be",
"anything",
"the",
"seervices",
"are",
"expecting"
] | [
"protected",
"abstract",
"t",
"get",
"parent",
"(",
")",
";"
] |
[
"returns",
"the",
"complete",
"list",
"of",
"services",
"managed",
"by",
"this",
"service",
"manager",
"this",
"list",
"is",
"thread",
"safe",
"following",
"the",
"copy",
"on",
"write",
"array",
"list",
"semantics"
] | [
"return",
"services",
";"
] |
[
"terminates",
"all",
"services",
"if",
"the",
"service",
"manager",
"has",
"not",
"been",
"stopped",
"yet",
"then",
"it",
"will",
"be",
"stopped"
] | [
"if",
"(",
"started",
")",
"{",
"stop",
"(",
")",
";",
"}",
"for",
"(",
"service",
"<",
"t",
">",
"s",
":",
"services",
")",
"{",
"s",
"terminate",
"(",
"get",
"parent",
"(",
")",
")",
";",
"}"
] |
[
"retrieves",
"the",
"first",
"service",
"of",
"the",
"specified",
"type"
] | [
"for",
"(",
"service",
"s",
":",
"services",
")",
"{",
"if",
"(",
"type",
"is",
"instance",
"(",
"s",
")",
")",
"{",
"return",
"type",
"cast",
"(",
"s",
")",
";",
"}",
"}",
"return",
"null",
";"
] |
[
"clears",
"the",
"chart",
"from",
"all",
"data",
"(",
"sets",
"it",
"to",
"null",
")",
"and",
"refreshes",
"it",
"(",
"by",
"calling",
"invalidate",
"(",
")",
")"
] | [
"m",
"data",
"=",
"null",
";",
"m",
"offsets",
"calculated",
"=",
"false",
";",
"m",
"indices",
"to",
"highlight",
"=",
"null",
";",
"m",
"chart",
"touch",
"listener",
"set",
"last",
"highlighted",
"(",
"null",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"removes",
"all",
"data",
"sets",
"(",
"and",
"thereby",
"entries",
")",
"from",
"the",
"chart",
"does",
"not",
"set",
"the",
"data",
"object",
"to",
"null",
"also",
"refreshes",
"the",
"chart",
"by",
"calling",
"invalidate",
"(",
")"
] | [
"m",
"data",
"clear",
"values",
"(",
")",
";",
"invalidate",
"(",
")",
";"
] |
[
"returns",
"true",
"if",
"the",
"chart",
"is",
"empty",
"(",
"meaning",
"it",
"s",
"data",
"object",
"is",
"either",
"null",
"or",
"contains",
"no",
"entries",
")"
] | [
"if",
"(",
"m",
"data",
"=",
"=",
"null",
")",
"return",
"true",
";",
"else",
"{",
"if",
"(",
"m",
"data",
"get",
"entry",
"count",
"(",
")",
"<",
"=",
"0",
")",
"return",
"true",
";",
"else",
"return",
"false",
";",
"}"
] |
[
"lets",
"the",
"chart",
"know",
"its",
"underlying",
"data",
"has",
"changed",
"and",
"performs",
"all",
"necessary",
"recalculations",
"it",
"is",
"crucial",
"that",
"this",
"method",
"is",
"called",
"everytime",
"data",
"is",
"changed",
"dynamically",
"not",
... | [
"public",
"abstract",
"void",
"notify",
"data",
"set",
"changed",
"(",
")",
";"
] |
[
"calculates",
"the",
"offsets",
"of",
"the",
"chart",
"to",
"the",
"border",
"depending",
"on",
"the",
"position",
"of",
"an",
"eventual",
"legend",
"or",
"depending",
"on",
"the",
"length",
"of",
"the",
"y",
"-",
"axis",
"and",
"x",
"-",
"axis",
"labels... | [
"protected",
"abstract",
"void",
"calculate",
"offsets",
"(",
")",
";"
] |
[
"calculates",
"the",
"y",
"-",
"min",
"and",
"y",
"-",
"max",
"value",
"and",
"the",
"y",
"-",
"delta",
"and",
"x",
"-",
"delta",
"value"
] | [
"protected",
"abstract",
"void",
"calc",
"min",
"max",
"(",
")",
";"
] |
[
"sets",
"the",
"maximum",
"distance",
"in",
"screen",
"dp",
"a",
"touch",
"can",
"be",
"away",
"from",
"an",
"entry",
"to",
"cause",
"it",
"to",
"get",
"highlighted",
"default",
":",
"5",
"0",
"0dp"
] | [
"m",
"max",
"highlight",
"distance",
"=",
"utils",
"convert",
"dp",
"to",
"pixel",
"(",
"dist",
"dp",
")",
";"
] |
[
"returns",
"the",
"array",
"of",
"currently",
"highlighted",
"values",
"this",
"might",
"a",
"null",
"or",
"empty",
"array",
"if",
"nothing",
"is",
"highlighted"
] | [
"return",
"m",
"indices",
"to",
"highlight",
";"
] |
[
"returns",
"true",
"if",
"values",
"can",
"be",
"highlighted",
"via",
"tap",
"gesture",
"false",
"if",
"not"
] | [
"return",
"m",
"high",
"light",
"per",
"tap",
"enabled",
";"
] |
[
"set",
"this",
"to",
"false",
"to",
"prevent",
"values",
"from",
"being",
"highlighted",
"by",
"tap",
"gesture",
"values",
"can",
"still",
"be",
"highlighted",
"via",
"drag",
"or",
"programmatically",
"default",
":",
"true"
] | [
"m",
"high",
"light",
"per",
"tap",
"enabled",
"=",
"enabled",
";"
] |
[
"returns",
"true",
"if",
"there",
"are",
"values",
"to",
"highlight",
"false",
"if",
"there",
"are",
"no",
"values",
"to",
"highlight",
"checks",
"if",
"the",
"highlight",
"array",
"is",
"null",
"has",
"a",
"length",
"of",
"zero",
"or",
"if",
"the",
"fir... | [
"return",
"m",
"indices",
"to",
"highlight",
"=",
"=",
"null",
"|",
"|",
"m",
"indices",
"to",
"highlight",
"length",
"<",
"=",
"0",
"|",
"|",
"m",
"indices",
"to",
"highlight",
"[",
"0",
"]",
"=",
"=",
"null",
"?",
"false",
":",
"true",
";"
] |
[
"sets",
"the",
"last",
"highlighted",
"value",
"for",
"the",
"touchlistener"
] | [
"if",
"(",
"highs",
"=",
"=",
"null",
"|",
"|",
"highs",
"length",
"<",
"=",
"0",
"|",
"|",
"highs",
"[",
"0",
"]",
"=",
"=",
"null",
")",
"{",
"m",
"chart",
"touch",
"listener",
"set",
"last",
"highlighted",
"(",
"null",
")",
";",
"}",
"else",... |
[
"highlights",
"any",
"y",
"-",
"value",
"at",
"the",
"given",
"x",
"-",
"value",
"in",
"the",
"given",
"data",
"set",
"provide",
"-",
"1",
"as",
"the",
"data",
"set",
"index",
"to",
"undo",
"all",
"highlighting",
"this",
"method",
"will",
"call",
"the"... | [
"highlight",
"value",
"(",
"x",
",",
"data",
"set",
"index",
",",
"true",
")",
";"
] |
[
"highlights",
"the",
"value",
"at",
"the",
"given",
"x",
"-",
"value",
"and",
"y",
"-",
"value",
"in",
"the",
"given",
"data",
"set",
"provide",
"-",
"1",
"as",
"the",
"data",
"set",
"index",
"to",
"undo",
"all",
"highlighting",
"this",
"method",
"will... | [
"highlight",
"value",
"(",
"x",
",",
"y",
",",
"data",
"set",
"index",
",",
"true",
")",
";"
] |
[
"highlights",
"any",
"y",
"-",
"value",
"at",
"the",
"given",
"x",
"-",
"value",
"in",
"the",
"given",
"data",
"set",
"provide",
"-",
"1",
"as",
"the",
"data",
"set",
"index",
"to",
"undo",
"all",
"highlighting"
] | [
"highlight",
"value",
"(",
"x",
",",
"float",
"na",
"n",
",",
"data",
"set",
"index",
",",
"call",
"listener",
")",
";"
] |
[
"highlights",
"any",
"y",
"-",
"value",
"at",
"the",
"given",
"x",
"-",
"value",
"in",
"the",
"given",
"data",
"set",
"provide",
"-",
"1",
"as",
"the",
"data",
"set",
"index",
"to",
"undo",
"all",
"highlighting"
] | [
"if",
"(",
"data",
"set",
"index",
"<",
"0",
"|",
"|",
"data",
"set",
"index",
">",
"=",
"m",
"data",
"get",
"data",
"set",
"count",
"(",
")",
")",
"{",
"highlight",
"value",
"(",
"null",
",",
"call",
"listener",
")",
";",
"}",
"else",
"{",
"hi... |
[
"highlights",
"the",
"values",
"represented",
"by",
"the",
"provided",
"highlight",
"object",
"this",
"method",
"*",
"will",
"not",
"*",
"call",
"the",
"listener"
] | [
"highlight",
"value",
"(",
"highlight",
",",
"false",
")",
";"
] |
[
"set",
"a",
"new",
"(",
"e",
"g",
"custom",
")",
"chart",
"touch",
"listener",
"note",
":",
"make",
"sure",
"to",
"set",
"touch",
"enabled",
"(",
"true",
")",
";",
"if",
"you",
"need",
"touch",
"gestures",
"on",
"the",
"chart"
] | [
"this",
"m",
"chart",
"touch",
"listener",
"=",
"l",
";"
] |
[
"returns",
"an",
"instance",
"of",
"the",
"currently",
"active",
"touch",
"listener"
] | [
"return",
"m",
"chart",
"touch",
"listener",
";"
] |
[
"returns",
"the",
"actual",
"position",
"in",
"pixels",
"of",
"the",
"marker",
"view",
"for",
"the",
"given",
"highlight",
"object"
] | [
"return",
"new",
"float",
"[",
"]",
"{",
"high",
"get",
"draw",
"x",
"(",
")",
",",
"high",
"get",
"draw",
"y",
"(",
")",
"}",
";"
] |
[
"returns",
"the",
"animator",
"responsible",
"for",
"animating",
"chart",
"values"
] | [
"return",
"m",
"animator",
";"
] |
[
"if",
"set",
"to",
"true",
"chart",
"continues",
"to",
"scroll",
"after",
"touch",
"up",
"default",
":",
"true"
] | [
"return",
"m",
"drag",
"deceleration",
"enabled",
";"
] |
[
"if",
"set",
"to",
"true",
"chart",
"continues",
"to",
"scroll",
"after",
"touch",
"up",
"default",
":",
"true"
] | [
"m",
"drag",
"deceleration",
"enabled",
"=",
"enabled",
";"
] |
[
"returns",
"drag",
"deceleration",
"friction",
"coefficient"
] | [
"return",
"m",
"drag",
"deceleration",
"friction",
"coef",
";"
] |
[
"deceleration",
"friction",
"coefficient",
"in",
"[",
"0",
";",
"1",
"]",
"interval",
"higher",
"values",
"indicate",
"that",
"speed",
"will",
"decrease",
"slowly",
"for",
"example",
"if",
"it",
"set",
"to",
"0",
"it",
"will",
"stop",
"immediately",
"1",
"... | [
"if",
"(",
"new",
"value",
"<",
"0",
"f",
")",
"new",
"value",
"=",
"0",
"f",
";",
"if",
"(",
"new",
"value",
">",
"=",
"1f",
")",
"new",
"value",
"=",
"0",
"9",
"9",
"9f",
";",
"m",
"drag",
"deceleration",
"friction",
"coef",
"=",
"new",
"va... |
[
"animates",
"the",
"drawing",
"/",
"rendering",
"of",
"the",
"chart",
"on",
"both",
"x",
"-",
"and",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalida... | [
"m",
"animator",
"animate",
"x",
"y",
"(",
"duration",
"millis",
"x",
",",
"duration",
"millis",
"y",
",",
"easing",
"x",
",",
"easing",
"y",
")",
";"
] |
[
"animates",
"the",
"drawing",
"/",
"rendering",
"of",
"the",
"chart",
"on",
"both",
"x",
"-",
"and",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalida... | [
"m",
"animator",
"animate",
"x",
"y",
"(",
"duration",
"millis",
"x",
",",
"duration",
"millis",
"y",
",",
"easing",
")",
";"
] |
[
"animates",
"the",
"rendering",
"of",
"the",
"chart",
"on",
"the",
"x",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalidate",
"(",
")",
"is",
"necessary",
... | [
"m",
"animator",
"animate",
"x",
"(",
"duration",
"millis",
",",
"easing",
")",
";"
] |
[
"animates",
"the",
"rendering",
"of",
"the",
"chart",
"on",
"the",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalidate",
"(",
")",
"is",
"necessary",
... | [
"m",
"animator",
"animate",
"y",
"(",
"duration",
"millis",
",",
"easing",
")",
";"
] |
[
"animates",
"the",
"drawing",
"/",
"rendering",
"of",
"the",
"chart",
"on",
"both",
"x",
"-",
"and",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalida... | [
"m",
"animator",
"animate",
"x",
"y",
"(",
"duration",
"millis",
"x",
",",
"duration",
"millis",
"y",
",",
"easing",
"x",
",",
"easing",
"y",
")",
";"
] |
[
"animates",
"the",
"rendering",
"of",
"the",
"chart",
"on",
"the",
"x",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalidate",
"(",
")",
"is",
"necessary",
... | [
"m",
"animator",
"animate",
"x",
"(",
"duration",
"millis",
",",
"easing",
")",
";"
] |
[
"animates",
"the",
"rendering",
"of",
"the",
"chart",
"on",
"the",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalidate",
"(",
")",
"is",
"necessary",
... | [
"m",
"animator",
"animate",
"y",
"(",
"duration",
"millis",
",",
"easing",
")",
";"
] |
[
"animates",
"the",
"rendering",
"of",
"the",
"chart",
"on",
"the",
"x",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalidate",
"(",
")",
"is",
"necessary",
... | [
"m",
"animator",
"animate",
"x",
"(",
"duration",
"millis",
")",
";"
] |
[
"animates",
"the",
"rendering",
"of",
"the",
"chart",
"on",
"the",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalidate",
"(",
")",
"is",
"necessary",
... | [
"m",
"animator",
"animate",
"y",
"(",
"duration",
"millis",
")",
";"
] |
[
"animates",
"the",
"drawing",
"/",
"rendering",
"of",
"the",
"chart",
"on",
"both",
"x",
"-",
"and",
"y",
"-",
"axis",
"with",
"the",
"specified",
"animation",
"time",
"if",
"animate",
"(",
")",
"is",
"called",
"no",
"further",
"calling",
"of",
"invalida... | [
"m",
"animator",
"animate",
"x",
"y",
"(",
"duration",
"millis",
"x",
",",
"duration",
"millis",
"y",
")",
";"
] |
[
"returns",
"the",
"object",
"representing",
"all",
"x",
"-",
"labels",
"this",
"method",
"can",
"be",
"used",
"to",
"acquire",
"the",
"x",
"axis",
"object",
"and",
"modify",
"it",
"(",
"e",
"g",
"change",
"the",
"position",
"of",
"the",
"labels",
"stylin... | [
"return",
"m",
"x",
"axis",
";"
] |
[
"returns",
"the",
"default",
"i",
"value",
"formatter",
"that",
"has",
"been",
"determined",
"by",
"the",
"chart",
"considering",
"the",
"provided",
"minimum",
"and",
"maximum",
"values"
] | [
"return",
"m",
"default",
"value",
"formatter",
";"
] |
[
"set",
"a",
"selection",
"listener",
"for",
"the",
"chart"
] | [
"this",
"m",
"selection",
"listener",
"=",
"l",
";"
] |
[
"sets",
"a",
"gesture",
"-",
"listener",
"for",
"the",
"chart",
"for",
"custom",
"callbacks",
"when",
"executing",
"gestures",
"on",
"the",
"chart",
"surface"
] | [
"this",
"m",
"gesture",
"listener",
"=",
"l",
";"
] |
[
"returns",
"the",
"custom",
"gesture",
"listener"
] | [
"return",
"m",
"gesture",
"listener",
";"
] |
[
"returns",
"the",
"current",
"y",
"-",
"max",
"value",
"across",
"all",
"data",
"sets"
] | [
"return",
"m",
"data",
"get",
"y",
"max",
"(",
")",
";"
] |
[
"returns",
"the",
"current",
"y",
"-",
"min",
"value",
"across",
"all",
"data",
"sets"
] | [
"return",
"m",
"data",
"get",
"y",
"min",
"(",
")",
";"
] |
[
"returns",
"a",
"recyclable",
"m",
"p",
"point",
"f",
"instance",
"returns",
"the",
"center",
"point",
"of",
"the",
"chart",
"(",
"the",
"whole",
"view",
")",
"in",
"pixels"
] | [
"return",
"m",
"p",
"point",
"f",
"get",
"instance",
"(",
"get",
"width",
"(",
")",
"/",
"2f",
",",
"get",
"height",
"(",
")",
"/",
"2f",
")",
";"
] |
[
"returns",
"a",
"recyclable",
"m",
"p",
"point",
"f",
"instance",
"returns",
"the",
"center",
"of",
"the",
"chart",
"taking",
"offsets",
"under",
"consideration",
"(",
"returns",
"the",
"center",
"of",
"the",
"content",
"rectangle",
")"
] | [
"return",
"m",
"view",
"port",
"handler",
"get",
"content",
"center",
"(",
")",
";"
] |
[
"sets",
"extra",
"offsets",
"(",
"around",
"the",
"chart",
"view",
")",
"to",
"be",
"appended",
"to",
"the",
"auto",
"-",
"calculated",
"offsets"
] | [
"set",
"extra",
"left",
"offset",
"(",
"left",
")",
";",
"set",
"extra",
"top",
"offset",
"(",
"top",
")",
";",
"set",
"extra",
"right",
"offset",
"(",
"right",
")",
";",
"set",
"extra",
"bottom",
"offset",
"(",
"bottom",
")",
";"
] |
[
"set",
"an",
"extra",
"offset",
"to",
"be",
"appended",
"to",
"the",
"viewport",
"s",
"top"
] | [
"m",
"extra",
"top",
"offset",
"=",
"utils",
"convert",
"dp",
"to",
"pixel",
"(",
"offset",
")",
";"
] |
[
"set",
"an",
"extra",
"offset",
"to",
"be",
"appended",
"to",
"the",
"viewport",
"s",
"right"
] | [
"m",
"extra",
"right",
"offset",
"=",
"utils",
"convert",
"dp",
"to",
"pixel",
"(",
"offset",
")",
";"
] |
[
"set",
"an",
"extra",
"offset",
"to",
"be",
"appended",
"to",
"the",
"viewport",
"s",
"bottom"
] | [
"m",
"extra",
"bottom",
"offset",
"=",
"utils",
"convert",
"dp",
"to",
"pixel",
"(",
"offset",
")",
";"
] |
[
"set",
"an",
"extra",
"offset",
"to",
"be",
"appended",
"to",
"the",
"viewport",
"s",
"left"
] | [
"m",
"extra",
"left",
"offset",
"=",
"utils",
"convert",
"dp",
"to",
"pixel",
"(",
"offset",
")",
";"
] |
[
"set",
"this",
"to",
"true",
"to",
"enable",
"logcat",
"outputs",
"for",
"the",
"chart",
"beware",
"that",
"logcat",
"output",
"decreases",
"rendering",
"performance",
"default",
":",
"disabled"
] | [
"m",
"log",
"enabled",
"=",
"enabled",
";"
] |
[
"returns",
"true",
"if",
"log",
"-",
"output",
"is",
"enabled",
"for",
"the",
"chart",
"fals",
"if",
"not"
] | [
"return",
"m",
"log",
"enabled",
";"
] |
[
"sets",
"the",
"text",
"that",
"informs",
"the",
"user",
"that",
"there",
"is",
"no",
"data",
"available",
"with",
"which",
"to",
"draw",
"the",
"chart"
] | [
"m",
"no",
"data",
"text",
"=",
"text",
";"
] |
[
"sets",
"the",
"color",
"of",
"the",
"no",
"data",
"text"
] | [
"m",
"info",
"paint",
"set",
"color",
"(",
"color",
")",
";"
] |
[
"sets",
"the",
"typeface",
"to",
"be",
"used",
"for",
"the",
"no",
"data",
"text"
] | [
"m",
"info",
"paint",
"set",
"typeface",
"(",
"tf",
")",
";"
] |
[
"set",
"this",
"to",
"false",
"to",
"disable",
"all",
"gestures",
"and",
"touches",
"on",
"the",
"chart",
"default",
":",
"true"
] | [
"this",
"m",
"touch",
"enabled",
"=",
"enabled",
";"
] |
[
"sets",
"the",
"marker",
"that",
"is",
"displayed",
"when",
"a",
"value",
"is",
"clicked",
"on",
"the",
"chart"
] | [
"m",
"marker",
"=",
"marker",
";"
] |
[
"returns",
"the",
"marker",
"that",
"is",
"set",
"as",
"a",
"marker",
"view",
"for",
"the",
"chart"
] | [
"return",
"m",
"marker",
";"
] |
[
"sets",
"a",
"new",
"description",
"object",
"for",
"the",
"chart"
] | [
"this",
"m",
"description",
"=",
"desc",
";"
] |
[
"returns",
"the",
"description",
"object",
"of",
"the",
"chart",
"that",
"is",
"responsible",
"for",
"holding",
"all",
"information",
"related",
"to",
"the",
"description",
"text",
"that",
"is",
"displayed",
"in",
"the",
"bottom",
"right",
"corner",
"of",
"the... | [
"return",
"m",
"description",
";"
] |
[
"returns",
"the",
"legend",
"object",
"of",
"the",
"chart",
"this",
"method",
"can",
"be",
"used",
"to",
"get",
"an",
"instance",
"of",
"the",
"legend",
"in",
"order",
"to",
"customize",
"the",
"automatically",
"generated",
"legend"
] | [
"return",
"m",
"legend",
";"
] |
[
"returns",
"the",
"rectangle",
"that",
"defines",
"the",
"borders",
"of",
"the",
"chart",
"-",
"value",
"surface",
"(",
"into",
"which",
"the",
"actual",
"values",
"are",
"drawn",
")"
] | [
"return",
"m",
"view",
"port",
"handler",
"get",
"content",
"rect",
"(",
")",
";"
] |
[
"disables",
"intercept",
"touchevents"
] | [
"view",
"parent",
"parent",
"=",
"get",
"parent",
"(",
")",
";",
"if",
"(",
"parent",
"!",
"=",
"null",
")",
"parent",
"request",
"disallow",
"intercept",
"touch",
"event",
"(",
"true",
")",
";"
] |
[
"enables",
"intercept",
"touchevents"
] | [
"view",
"parent",
"parent",
"=",
"get",
"parent",
"(",
")",
";",
"if",
"(",
"parent",
"!",
"=",
"null",
")",
"parent",
"request",
"disallow",
"intercept",
"touch",
"event",
"(",
"false",
")",
";"
] |
[
"set",
"a",
"new",
"paint",
"object",
"for",
"the",
"specified",
"parameter",
"in",
"the",
"chart",
"e",
"g",
"chart",
"paint",
"values"
] | [
"switch",
"(",
"which",
")",
"{",
"case",
"paint",
"info",
":",
"m",
"info",
"paint",
"=",
"p",
";",
"break",
";",
"case",
"paint",
"description",
":",
"m",
"desc",
"paint",
"=",
"p",
";",
"break",
";",
"}"
] |
[
"returns",
"the",
"paint",
"object",
"associated",
"with",
"the",
"provided",
"constant"
] | [
"switch",
"(",
"which",
")",
"{",
"case",
"paint",
"info",
":",
"return",
"m",
"info",
"paint",
";",
"case",
"paint",
"description",
":",
"return",
"m",
"desc",
"paint",
";",
"}",
"return",
"null",
";"
] |
[
"returns",
"true",
"if",
"drawing",
"the",
"marker",
"is",
"enabled",
"when",
"tapping",
"on",
"values",
"(",
"use",
"the",
"set",
"marker",
"(",
"i",
"marker",
"marker",
")",
"method",
"to",
"specify",
"a",
"marker",
")"
] | [
"return",
"m",
"draw",
"markers",
";"
] |
[
"set",
"this",
"to",
"true",
"to",
"draw",
"a",
"user",
"specified",
"marker",
"when",
"tapping",
"on",
"chart",
"values",
"(",
"use",
"the",
"set",
"marker",
"(",
"i",
"marker",
"marker",
")",
"method",
"to",
"specify",
"a",
"marker",
")",
"default",
... | [
"m",
"draw",
"markers",
"=",
"enabled",
";"
] |
[
"returns",
"the",
"chart",
"data",
"object",
"that",
"has",
"been",
"set",
"for",
"the",
"chart"
] | [
"return",
"m",
"data",
";"
] |
[
"returns",
"the",
"view",
"port",
"handler",
"of",
"the",
"chart",
"that",
"is",
"responsible",
"for",
"the",
"content",
"area",
"of",
"the",
"chart",
"and",
"its",
"offsets",
"and",
"dimensions"
] | [
"return",
"m",
"view",
"port",
"handler",
";"
] |
[
"returns",
"the",
"renderer",
"object",
"the",
"chart",
"uses",
"for",
"drawing",
"data"
] | [
"return",
"m",
"renderer",
";"
] |
[
"sets",
"a",
"new",
"data",
"renderer",
"object",
"for",
"the",
"chart"
] | [
"if",
"(",
"renderer",
"!",
"=",
"null",
")",
"m",
"renderer",
"=",
"renderer",
";"
] |
[
"sets",
"a",
"custom",
"highligher",
"object",
"for",
"the",
"chart",
"that",
"handles",
"/",
"processes",
"all",
"highlight",
"touch",
"events",
"performed",
"on",
"the",
"chart",
"-",
"view"
] | [
"m",
"highlighter",
"=",
"highlighter",
";"
] |
[
"returns",
"a",
"recyclable",
"m",
"p",
"point",
"f",
"instance"
] | [
"return",
"get",
"center",
"(",
")",
";"
] |
[
"either",
"posts",
"a",
"job",
"immediately",
"if",
"the",
"chart",
"has",
"already",
"setup",
"it",
"s",
"dimensions",
"or",
"adds",
"the",
"job",
"to",
"the",
"execution",
"queue"
] | [
"if",
"(",
"m",
"view",
"port",
"handler",
"has",
"chart",
"dimens",
"(",
")",
")",
"{",
"post",
"(",
"job",
")",
";",
"}",
"else",
"{",
"m",
"jobs",
"add",
"(",
"job",
")",
";",
"}"
] |
[
"returns",
"all",
"jobs",
"that",
"are",
"scheduled",
"to",
"be",
"executed",
"after",
"on",
"size",
"changed",
"(",
")"
] | [
"return",
"m",
"jobs",
";"
] |
[
"unbind",
"all",
"drawables",
"to",
"avoid",
"memory",
"leaks",
"link",
":",
"http",
":",
"/",
"/",
"stackoverflow",
"com",
"/",
"a",
"/",
"6779164",
"/",
"1590502"
] | [
"if",
"(",
"view",
"get",
"background",
"(",
")",
"!",
"=",
"null",
")",
"{",
"view",
"get",
"background",
"(",
")",
"set",
"callback",
"(",
"null",
")",
";",
"}",
"if",
"(",
"view",
"instanceof",
"view",
"group",
")",
"{",
"for",
"(",
"int",
"i"... |
[
"set",
"this",
"to",
"true",
"to",
"enable",
"unbinding",
"of",
"drawables",
"when",
"a",
"view",
"is",
"detached",
"from",
"a",
"window",
"this",
"helps",
"avoid",
"memory",
"leaks",
"default",
":",
"false",
"link",
":",
"http",
":",
"/",
"/",
"stackove... | [
"this",
"m",
"unbind",
"=",
"enabled",
";"
] |
[
"{"
] | [
"return",
"false",
";"
] |
[
"copied",
"from",
"com",
"google",
"protobuf",
"coded",
"input",
"stream",
"v",
"2",
"5",
"0",
"read",
"raw",
"varint",
"6",
"4"
] | [
"int",
"shift",
"=",
"0",
";",
"long",
"result",
"=",
"0",
";",
"while",
"(",
"shift",
"<",
"64",
")",
"{",
"final",
"byte",
"b",
"=",
"get",
"(",
"index",
"+",
"+",
")",
";",
"result",
"|",
"=",
"(",
"long",
")",
"(",
"b",
"&",
"0x",
"7",
... |
[
"end",
"of",
"copied",
"from",
"protobuf"
] | [
"int",
"r",
"pos",
"=",
"0",
";",
"while",
"(",
"(",
"val",
"&",
"~",
"0x",
"7",
"f",
")",
"!",
"=",
"0",
")",
"{",
"val",
">",
">",
">",
"=",
"7",
";",
"r",
"pos",
"+",
"+",
";",
"}",
"return",
"r",
"pos",
"+",
"1",
";"
] |
[
"bitwise",
"comparison",
"of",
"each",
"byte",
"in",
"the",
"array",
"unsigned",
"comparison",
"not",
"paying",
"attention",
"to",
"java",
"s",
"signed",
"bytes"
] | [
"return",
"bytes",
"compare",
"to",
"(",
"bytes",
",",
"offset",
",",
"length",
",",
"other",
"get",
"bytes",
"(",
")",
",",
"other",
"get",
"offset",
"(",
")",
",",
"other",
"get",
"length",
"(",
")",
")",
";"
] |
[
"instead",
"only",
"log",
"when",
"the",
"method",
"is",
"actually",
"traced"
] | [] |
[
"instead",
"only",
"log",
"when",
"the",
"method",
"is",
"actually",
"traced"
] | [] |
[
"returns",
"true",
"if",
"the",
"class",
"is",
"declared",
"inside",
"a",
"block",
"other",
"than",
"the",
"body",
"of",
"another",
"class",
"or",
"the",
"top",
"level"
] | [
"if",
"(",
"!",
"is",
"local",
"computed",
")",
"{",
"node",
"current",
"=",
"jjt",
"get",
"parent",
"(",
")",
";",
"while",
"(",
"current",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"current",
"instanceof",
"a",
"s",
"t",
"any",
"type",
"declaration"... |
[
"returns",
"the",
"superclass",
"type",
"node",
"if",
"this",
"node",
"is",
"a",
"class",
"declaration",
"and",
"explicitly",
"declares",
"an",
"{",
"@",
"code",
"extends",
"}",
"clause",
"superinterfaces",
"of",
"an",
"interface",
"are",
"not",
"considered"
] | [
"if",
"(",
"is",
"interface",
"(",
")",
")",
"{",
"return",
"null",
";",
"}",
"a",
"s",
"t",
"extends",
"list",
"extends",
"list",
"=",
"get",
"first",
"child",
"of",
"type",
"(",
"a",
"s",
"t",
"extends",
"list",
"class",
")",
";",
"return",
"ex... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.