docstring_tokens list | code_tokens list |
|---|---|
[
"get",
"architecture",
"of",
"layer",
"with",
"given",
"index"
] | [
"return",
"layers",
"get",
"(",
"layer",
")",
";"
] |
[
"get",
"architecture",
"of",
"transformation",
"layer",
"(",
"i",
"e",
"non",
"-",
"input",
"layer",
")",
"with",
"given",
"index"
] | [
"return",
"(",
"transformation",
"layer",
"architecture",
")",
"layers",
"get",
"(",
"layer",
")",
";"
] |
[
"creates",
"config",
"describing",
"network",
"where",
"first",
"goes",
"this",
"config",
"and",
"after",
"goes",
"this",
"method",
"s",
"argument"
] | [
"assert",
"second",
"input",
"size",
"(",
")",
"=",
"=",
"output",
"size",
"(",
")",
";",
"m",
"l",
"p",
"architecture",
"res",
"=",
"new",
"m",
"l",
"p",
"architecture",
"(",
"input",
"size",
"(",
")",
")",
";",
"res",
"layers",
"add",
"all",
"(... |
[
"count",
"of",
"parameters",
"in",
"this",
"mlp",
"architecture"
] | [
"int",
"res",
"=",
"0",
";",
"for",
"(",
"int",
"i",
"=",
"1",
";",
"i",
"<",
"layers",
"count",
"(",
")",
";",
"i",
"+",
"+",
")",
"{",
"transformation",
"layer",
"architecture",
"la",
"=",
"transformation",
"layer",
"architecture",
"(",
"i",
")",... |
[
"unsafe",
"version",
"of",
":",
"{"
] | [
"long",
"function",
"address",
"=",
"alc",
"get",
"i",
"c",
"d",
"(",
")",
"alc",
"loopback",
"open",
"device",
"s",
"o",
"f",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"}",
"return",
"invoke",
"p",
"... |
[
"unsafe",
"version",
"of",
":",
"{"
] | [
"long",
"function",
"address",
"=",
"alc",
"get",
"i",
"c",
"d",
"(",
")",
"alc",
"render",
"samples",
"s",
"o",
"f",
"t",
";",
"if",
"(",
"checks",
")",
"{",
"check",
"(",
"function",
"address",
")",
";",
"check",
"(",
"device",
")",
";",
"}",
... |
[
"tell",
"the",
"scores",
"updater",
"to",
"shut",
"down",
"asap"
] | [
"shutdown",
"=",
"true",
";"
] |
[
"returns",
"the",
"decoded",
"path",
"string",
"of",
"the",
"uri"
] | [
"if",
"(",
"path",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"!",
"has",
"path",
")",
"{",
"return",
"path",
"=",
"\"",
"\"",
";",
"}",
"int",
"path",
"end",
"pos",
"=",
"uri",
"index",
"of",
"(",
"'",
"?",
"'",
")",
";",
"if",
"(",
"path",
... |
[
"returns",
"the",
"decoded",
"key",
"-",
"value",
"parameter",
"pairs",
"of",
"the",
"uri"
] | [
"if",
"(",
"params",
"=",
"=",
"null",
")",
"{",
"if",
"(",
"has",
"path",
")",
"{",
"int",
"path",
"length",
"=",
"get",
"path",
"(",
")",
"length",
"(",
")",
";",
"if",
"(",
"uri",
"length",
"(",
")",
"=",
"=",
"path",
"length",
")",
"{",
... |
[
"decodes",
"a",
"bit",
"of",
"an",
"url",
"encoded",
"by",
"a",
"browser",
"<",
"p",
">",
"this",
"is",
"equivalent",
"to",
"calling",
"{"
] | [
"return",
"decode",
"component",
"(",
"s",
",",
"http",
"constants",
"default",
"charset",
")",
";"
] |
[
"helper",
"to",
"decode",
"half",
"of",
"a",
"hexadecimal",
"number",
"from",
"a",
"string"
] | [
"if",
"(",
"'",
"0",
"'",
"<",
"=",
"c",
"&",
"&",
"c",
"<",
"=",
"'",
"9",
"'",
")",
"{",
"return",
"(",
"char",
")",
"(",
"c",
"-",
"'",
"0",
"'",
")",
";",
"}",
"else",
"if",
"(",
"'",
"a",
"'",
"<",
"=",
"c",
"&",
"&",
"c",
"<... |
[
"returns",
"the",
"radius",
"of",
"neighborhood"
] | [
"return",
"radius",
";"
] |
[
"notify",
"all",
"callbacks"
] | [
"m",
"notification",
"level",
"+",
"+",
";",
"notify",
"recurse",
"locked",
"(",
"sender",
",",
"arg",
",",
"arg",
"2",
")",
";",
"m",
"notification",
"level",
"-",
"-",
";",
"if",
"(",
"m",
"notification",
"level",
"=",
"=",
"0",
")",
"{",
"if",
... |
[
"notify",
"up",
"to",
"the",
"first",
"long",
"size",
"callbacks",
"that",
"don",
"t",
"have",
"a",
"bit",
"set",
"in",
"<",
"code",
">",
"removed",
"<",
"/",
"code",
">"
] | [
"final",
"int",
"max",
"notified",
"=",
"math",
"min",
"(",
"long",
"size",
",",
"m",
"callbacks",
"size",
"(",
")",
")",
";",
"notify",
"callbacks",
"locked",
"(",
"sender",
",",
"arg",
",",
"arg",
"2",
",",
"0",
",",
"max",
"notified",
",",
"m",
... |
[
"notify",
"callbacks",
"that",
"have",
"m",
"remainder",
"removed",
"bits",
"set",
"for",
"remainder",
"index",
"if",
"remainder",
"index",
"is",
"-",
"1",
"the",
"first",
"64",
"will",
"be",
"notified",
"instead"
] | [
"if",
"(",
"remainder",
"index",
"<",
"0",
")",
"{",
"notify",
"first",
"6",
"4",
"locked",
"(",
"sender",
",",
"arg",
",",
"arg",
"2",
")",
";",
"}",
"else",
"{",
"final",
"long",
"bits",
"=",
"m",
"remainder",
"removed",
"[",
"remainder",
"index"... |
[
"notify",
"callbacks",
"from",
"start",
"index",
"to",
"end",
"index",
"using",
"bits",
"as",
"the",
"bit",
"status",
"for",
"whether",
"they",
"have",
"been",
"removed",
"or",
"not",
"bits",
"should",
"be",
"from",
"m",
"remainder",
"removed",
"or",
"m",
... | [
"long",
"bit",
"mask",
"=",
"1",
";",
"for",
"(",
"int",
"i",
"=",
"start",
"index",
";",
"i",
"<",
"end",
"index",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"(",
"bits",
"&",
"bit",
"mask",
")",
"=",
"=",
"0",
")",
"{",
"m",
"notifier",
"... |
[
"add",
"a",
"callback",
"to",
"be",
"notified",
"if",
"the",
"callback",
"is",
"already",
"in",
"the",
"list",
"another",
"won",
"t",
"be",
"added",
"this",
"does",
"not",
"affect",
"current",
"notifications"
] | [
"int",
"index",
"=",
"m",
"callbacks",
"last",
"index",
"of",
"(",
"callback",
")",
";",
"if",
"(",
"index",
"<",
"0",
"|",
"|",
"is",
"removed",
"locked",
"(",
"index",
")",
")",
"{",
"m",
"callbacks",
"add",
"(",
"callback",
")",
";",
"}"
] |
[
"remove",
"a",
"callback",
"this",
"callback",
"won",
"t",
"be",
"notified",
"after",
"this",
"call",
"completes"
] | [
"if",
"(",
"m",
"notification",
"level",
"=",
"=",
"0",
")",
"{",
"m",
"callbacks",
"remove",
"(",
"callback",
")",
";",
"}",
"else",
"{",
"int",
"index",
"=",
"m",
"callbacks",
"last",
"index",
"of",
"(",
"callback",
")",
";",
"if",
"(",
"index",
... |
[
"makes",
"a",
"copy",
"of",
"the",
"registered",
"callbacks",
"and",
"returns",
"it"
] | [
"array",
"list",
"<",
"c",
">",
"callbacks",
"=",
"new",
"array",
"list",
"<",
"c",
">",
"(",
"m",
"callbacks",
"size",
"(",
")",
")",
";",
"int",
"num",
"listeners",
"=",
"m",
"callbacks",
"size",
"(",
")",
";",
"for",
"(",
"int",
"i",
"=",
"0... |
[
"returns",
"true",
"if",
"there",
"are",
"no",
"registered",
"callbacks",
"or",
"false",
"otherwise"
] | [
"if",
"(",
"m",
"callbacks",
"is",
"empty",
"(",
")",
")",
"{",
"return",
"true",
";",
"}",
"else",
"if",
"(",
"m",
"notification",
"level",
"=",
"=",
"0",
")",
"{",
"return",
"false",
";",
"}",
"else",
"{",
"int",
"num",
"listeners",
"=",
"m",
... |
[
"removes",
"all",
"callbacks",
"from",
"the",
"list"
] | [
"if",
"(",
"m",
"notification",
"level",
"=",
"=",
"0",
")",
"{",
"m",
"callbacks",
"clear",
"(",
")",
";",
"}",
"else",
"if",
"(",
"!",
"m",
"callbacks",
"is",
"empty",
"(",
")",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"m",
"callbacks",
"size",... |
[
"used",
"to",
"notify",
"the",
"callback"
] | [
"public",
"abstract",
"void",
"on",
"notify",
"callback",
"(",
"c",
"callback",
",",
"t",
"sender",
",",
"int",
"arg",
",",
"a",
"arg",
"2",
")",
";"
] |
[
"creates",
"the",
"{"
] | [
"for",
"(",
"profile",
"phase",
"phase",
":",
"profile",
"phase",
"values",
"(",
")",
")",
"{",
"chart",
"create",
"type",
"(",
"phase",
"description",
",",
"new",
"color",
"(",
"phase",
"color",
",",
"true",
")",
")",
";",
"}"
] |
[
"converts",
"millisecond",
"after",
"epoc",
"to",
"date"
] | [
"return",
"date",
"time",
"convert",
"(",
"millis",
",",
"cal",
",",
"c",
"-",
">",
"{",
"c",
"set",
"(",
"hour",
"of",
"day",
",",
"0",
")",
";",
"c",
"set",
"(",
"minute",
",",
"0",
")",
";",
"c",
"set",
"(",
"second",
",",
"0",
")",
";",... |
[
"converts",
"millisecond",
"after",
"epoc",
"to",
"time"
] | [
"return",
"date",
"time",
"convert",
"(",
"millis",
",",
"cal",
",",
"c",
"-",
">",
"{",
"c",
"set",
"(",
"era",
",",
"gregorian",
"calendar",
"ad",
")",
";",
"c",
"set",
"(",
"year",
",",
"1970",
")",
";",
"c",
"set",
"(",
"month",
",",
"0",
... |
[
"converts",
"millisecond",
"after",
"epoc",
"to",
"timestamp"
] | [
"return",
"date",
"time",
"convert",
"(",
"millis",
",",
"cal",
",",
"c",
"-",
">",
"new",
"timestamp",
"(",
"c",
"get",
"time",
"in",
"millis",
"(",
")",
")",
")",
";"
] |
[
"creates",
"a",
"specific",
"f",
"s",
"directory",
"instance",
"starting",
"from",
"its",
"class",
"name",
"using",
"the",
"default",
"lock",
"factory"
] | [
"return",
"new",
"f",
"s",
"directory",
"(",
"clazz",
"name",
",",
"path",
",",
"f",
"s",
"lock",
"factory",
"get",
"default",
"(",
")",
")",
";"
] |
[
"loads",
"a",
"specific",
"directory",
"implementation"
] | [
"return",
"class",
"for",
"name",
"(",
"adjust",
"directory",
"class",
"name",
"(",
"clazz",
"name",
")",
")",
"as",
"subclass",
"(",
"directory",
"class",
")",
";"
] |
[
"loads",
"a",
"specific",
"f",
"s",
"directory",
"implementation"
] | [
"return",
"class",
"for",
"name",
"(",
"adjust",
"directory",
"class",
"name",
"(",
"clazz",
"name",
")",
")",
"as",
"subclass",
"(",
"f",
"s",
"directory",
"class",
")",
";"
] |
[
"creates",
"a",
"new",
"specific",
"f",
"s",
"directory",
"instance"
] | [
"return",
"new",
"f",
"s",
"directory",
"(",
"clazz",
",",
"path",
",",
"f",
"s",
"lock",
"factory",
"get",
"default",
"(",
")",
")",
";"
] |
[
"returns",
"true",
"iff",
"any",
"errors",
"(",
"such",
"as",
"missing",
"targets",
"or",
"packages",
"or",
"rules",
"with",
"errors",
")",
"have",
"been",
"encountered",
"during",
"any",
"work"
] | [
"return",
"has",
"errors",
";"
] |
[
"/",
"*",
"timelines",
"resources"
] | [] |
[
"/",
"*",
"tweets",
"resources"
] | [] |
[
"/",
"*",
"search",
"resources"
] | [] |
[
"/",
"*",
"direct",
"messages",
"resources"
] | [] |
[
"/",
"*",
"friends",
"&",
"followers",
"resources"
] | [] |
[
"/",
"*",
"users",
"resources"
] | [] |
[
"updated",
"delivery",
"device"
] | [] |
[
"/",
"*",
"suggested",
"users",
"resources"
] | [] |
[
"/",
"*",
"favorites",
"resources"
] | [] |
[
"/",
"*",
"lists",
"resources"
] | [] |
[
"/",
"*",
"saved",
"searches",
"resources"
] | [] |
[
"/",
"*",
"places",
"&",
"geo",
"resources"
] | [] |
[
"/",
"*",
"trends",
"resources"
] | [] |
[
"/",
"*",
"spam",
"reporting",
"resources"
] | [] |
[
"/",
"*",
"o",
"auth",
"2",
"resources"
] | [] |
[
"/",
"*",
"help",
"resources"
] | [] |
[
"returns",
"a",
"list",
"of",
"the",
"names",
"of",
"all",
"known",
"location",
"providers",
"<",
"p",
">",
"all",
"providers",
"are",
"returned",
"including",
"ones",
"that",
"are",
"not",
"permitted",
"to",
"be",
"accessed",
"by",
"the",
"calling",
"acti... | [
"try",
"{",
"return",
"m",
"service",
"get",
"all",
"providers",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"returns",
"a",
"list",
"of",
"the",
"names",
"of",
"location",
"providers"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"providers",
"(",
"null",
",",
"enabled",
"only",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"information",
"associated",
"with",
"the",
"location",
"provider",
"of",
"the",
"given",
"name",
"or",
"null",
"if",
"no",
"provider",
"exists",
"by",
"that",
"name"
] | [
"check",
"provider",
"(",
"name",
")",
";",
"try",
"{",
"provider",
"properties",
"properties",
"=",
"m",
"service",
"get",
"provider",
"properties",
"(",
"name",
")",
";",
"if",
"(",
"properties",
"=",
"=",
"null",
")",
"{",
"return",
"null",
";",
"}"... |
[
"returns",
"a",
"list",
"of",
"the",
"names",
"of",
"location",
"providers",
"that",
"satisfy",
"the",
"given",
"criteria",
"or",
"null",
"if",
"none",
"do",
"only",
"providers",
"that",
"are",
"permitted",
"to",
"be",
"accessed",
"by",
"the",
"calling",
"... | [
"check",
"criteria",
"(",
"criteria",
")",
";",
"try",
"{",
"return",
"m",
"service",
"get",
"providers",
"(",
"criteria",
",",
"enabled",
"only",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"syst... |
[
"returns",
"the",
"name",
"of",
"the",
"provider",
"that",
"best",
"meets",
"the",
"given",
"criteria",
"only",
"providers",
"that",
"are",
"permitted",
"to",
"be",
"accessed",
"by",
"the",
"calling",
"activity",
"will",
"be",
"returned",
"if",
"several",
"p... | [
"check",
"criteria",
"(",
"criteria",
")",
";",
"try",
"{",
"return",
"m",
"service",
"get",
"best",
"provider",
"(",
"criteria",
",",
"enabled",
"only",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from"... |
[
"register",
"for",
"location",
"updates",
"using",
"the",
"named",
"provider",
"and",
"a",
"pending",
"intent"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"string",
"provider",
",",
"long",
"min",
"time",
",",
"float",
"min",
"distance",
",",
"location",
"listener",
"listener",
... |
[
"register",
"for",
"location",
"updates",
"using",
"the",
"named",
"provider",
"and",
"a",
"callback",
"on",
"the",
"specified",
"looper",
"thread"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"string",
"provider",
",",
"long",
"min",
"time",
",",
"float",
"min",
"distance",
",",
"location",
"listener",
"listener",
... |
[
"register",
"for",
"location",
"updates",
"using",
"a",
"criteria",
"and",
"a",
"callback",
"on",
"the",
"specified",
"looper",
"thread"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"long",
"min",
"time",
",",
"float",
"min",
"distance",
",",
"criteria",
"criteria",
",",
"location",
"listener",
"listener",
... |
[
"register",
"for",
"location",
"updates",
"using",
"the",
"named",
"provider",
"and",
"a",
"pending",
"intent"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"string",
"provider",
",",
"long",
"min",
"time",
",",
"float",
"min",
"distance",
",",
"pending",
"intent",
"intent",
")",
... |
[
"register",
"for",
"location",
"updates",
"using",
"a",
"criteria",
"and",
"pending",
"intent"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"long",
"min",
"time",
",",
"float",
"min",
"distance",
",",
"criteria",
"criteria",
",",
"pending",
"intent",
"intent",
")"... |
[
"register",
"for",
"a",
"single",
"location",
"update",
"using",
"the",
"named",
"provider",
"and",
"a",
"callback"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"single",
"update",
"(",
"string",
"provider",
",",
"location",
"listener",
"listener",
",",
"looper",
"looper",
")",
"{",
"check",
"provider",
"(",
"pr... |
[
"register",
"for",
"a",
"single",
"location",
"update",
"using",
"a",
"criteria",
"and",
"a",
"callback"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"single",
"update",
"(",
"criteria",
"criteria",
",",
"location",
"listener",
"listener",
",",
"looper",
"looper",
")",
"{",
"check",
"criteria",
"(",
"... |
[
"register",
"for",
"a",
"single",
"location",
"update",
"using",
"a",
"named",
"provider",
"and",
"pending",
"intent"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"single",
"update",
"(",
"string",
"provider",
",",
"pending",
"intent",
"intent",
")",
"{",
"check",
"provider",
"(",
"provider",
")",
";",
"check",
... |
[
"register",
"for",
"a",
"single",
"location",
"update",
"using",
"a",
"criteria",
"and",
"pending",
"intent"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"single",
"update",
"(",
"criteria",
"criteria",
",",
"pending",
"intent",
"intent",
")",
"{",
"check",
"criteria",
"(",
"criteria",
")",
";",
"check",
... |
[
"register",
"for",
"fused",
"location",
"updates",
"using",
"a",
"location",
"request",
"and",
"callback"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"location",
"request",
"request",
",",
"location",
"listener",
"listener",
",",
"looper",
"looper",
")",
"{",
"check",
"listen... |
[
"register",
"for",
"fused",
"location",
"updates",
"using",
"a",
"location",
"request",
"and",
"a",
"pending",
"intent"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"request",
"location",
"updates",
"(",
"location",
"request",
"request",
",",
"pending",
"intent",
"intent",
")",
"{",
"check",
"pending",
"intent",
"(",
"intent",
... |
[
"set",
"the",
"last",
"known",
"location",
"with",
"a",
"new",
"location"
] | [
"location",
"hardware",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"boolean",
"inject",
"location",
"(",
"location",
"new",
"location",
")",
"{",
"try",
"{",
"return",
"m",
"service",
"inject",
"location",
"(",
"new",
"location",
")",
";",
"}",... |
[
"removes",
"all",
"location",
"updates",
"for",
"the",
"specified",
"location",
"listener"
] | [
"check",
"listener",
"(",
"listener",
")",
";",
"string",
"package",
"name",
"=",
"m",
"context",
"get",
"package",
"name",
"(",
")",
";",
"listener",
"transport",
"transport",
";",
"synchronized",
"(",
"m",
"listeners",
")",
"{",
"transport",
"=",
"m",
... |
[
"removes",
"all",
"location",
"updates",
"for",
"the",
"specified",
"pending",
"intent"
] | [
"check",
"pending",
"intent",
"(",
"intent",
")",
";",
"string",
"package",
"name",
"=",
"m",
"context",
"get",
"package",
"name",
"(",
")",
";",
"try",
"{",
"m",
"service",
"remove",
"updates",
"(",
"null",
",",
"intent",
",",
"package",
"name",
")",
... |
[
"set",
"a",
"proximity",
"alert",
"for",
"the",
"location",
"given",
"by",
"the",
"position",
"(",
"latitude",
"longitude",
")",
"and",
"the",
"given",
"radius"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"add",
"proximity",
"alert",
"(",
"double",
"latitude",
",",
"double",
"longitude",
",",
"float",
"radius",
",",
"long",
"expiration",
",",
"pending",
"intent",
"i... |
[
"add",
"a",
"geofence",
"with",
"the",
"specified",
"location",
"request",
"quality",
"of",
"service"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"void",
"add",
"geofence",
"(",
"location",
"request",
"request",
",",
"geofence",
"fence",
",",
"pending",
"intent",
"intent",
")",
"{",
"check",
"pending",
"intent",
"("... |
[
"removes",
"the",
"proximity",
"alert",
"with",
"the",
"given",
"pending",
"intent"
] | [
"check",
"pending",
"intent",
"(",
"intent",
")",
";",
"string",
"package",
"name",
"=",
"m",
"context",
"get",
"package",
"name",
"(",
")",
";",
"try",
"{",
"m",
"service",
"remove",
"geofence",
"(",
"null",
",",
"intent",
",",
"package",
"name",
")",... |
[
"remove",
"a",
"single",
"geofence"
] | [
"check",
"pending",
"intent",
"(",
"intent",
")",
";",
"check",
"geofence",
"(",
"fence",
")",
";",
"string",
"package",
"name",
"=",
"m",
"context",
"get",
"package",
"name",
"(",
")",
";",
"try",
"{",
"m",
"service",
"remove",
"geofence",
"(",
"fence... |
[
"remove",
"all",
"geofences",
"registered",
"to",
"the",
"specified",
"pending",
"intent"
] | [
"check",
"pending",
"intent",
"(",
"intent",
")",
";",
"string",
"package",
"name",
"=",
"m",
"context",
"get",
"package",
"name",
"(",
")",
";",
"try",
"{",
"m",
"service",
"remove",
"geofence",
"(",
"null",
",",
"intent",
",",
"package",
"name",
")",... |
[
"returns",
"the",
"current",
"enabled",
"/",
"disabled",
"status",
"of",
"location"
] | [
"return",
"is",
"location",
"enabled",
"for",
"user",
"(",
"process",
"my",
"user",
"handle",
"(",
")",
")",
";"
] |
[
"method",
"for",
"enabling",
"or",
"disabling",
"location"
] | [
"try",
"{",
"m",
"service",
"set",
"location",
"enabled",
"for",
"user",
"(",
"enabled",
",",
"user",
"handle",
"get",
"identifier",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",... |
[
"returns",
"the",
"current",
"enabled",
"/",
"disabled",
"status",
"of",
"location"
] | [
"try",
"{",
"return",
"m",
"service",
"is",
"location",
"enabled",
"for",
"user",
"(",
"user",
"handle",
"get",
"identifier",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"serve... |
[
"returns",
"the",
"current",
"enabled",
"/",
"disabled",
"status",
"of",
"the",
"given",
"provider"
] | [
"return",
"is",
"provider",
"enabled",
"for",
"user",
"(",
"provider",
",",
"process",
"my",
"user",
"handle",
"(",
")",
")",
";"
] |
[
"returns",
"the",
"current",
"enabled",
"/",
"disabled",
"status",
"of",
"the",
"given",
"provider",
"and",
"user"
] | [
"check",
"provider",
"(",
"provider",
")",
";",
"try",
"{",
"return",
"m",
"service",
"is",
"provider",
"enabled",
"for",
"user",
"(",
"provider",
",",
"user",
"handle",
"get",
"identifier",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
... |
[
"method",
"for",
"enabling",
"or",
"disabling",
"a",
"single",
"location",
"provider"
] | [
"check",
"provider",
"(",
"provider",
")",
";",
"try",
"{",
"return",
"m",
"service",
"set",
"provider",
"enabled",
"for",
"user",
"(",
"provider",
",",
"enabled",
",",
"user",
"handle",
"get",
"identifier",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remo... |
[
"get",
"the",
"last",
"known",
"location"
] | [
"string",
"package",
"name",
"=",
"m",
"context",
"get",
"package",
"name",
"(",
")",
";",
"try",
"{",
"return",
"m",
"service",
"get",
"last",
"location",
"(",
"null",
",",
"package",
"name",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
... |
[
"returns",
"a",
"location",
"indicating",
"the",
"data",
"from",
"the",
"last",
"known",
"location",
"fix",
"obtained",
"from",
"the",
"given",
"provider"
] | [
"access",
"coarse",
"location",
",",
"access",
"fine",
"location",
"}",
")",
"public",
"location",
"get",
"last",
"known",
"location",
"(",
"string",
"provider",
")",
"{",
"check",
"provider",
"(",
"provider",
")",
";",
"string",
"package",
"name",
"=",
"m... |
[
"removes",
"the",
"mock",
"location",
"provider",
"with",
"the",
"given",
"name"
] | [
"try",
"{",
"m",
"service",
"remove",
"test",
"provider",
"(",
"provider",
",",
"m",
"context",
"get",
"op",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"s... |
[
"removes",
"any",
"mock",
"location",
"associated",
"with",
"the",
"given",
"provider"
] | [
"try",
"{",
"m",
"service",
"clear",
"test",
"provider",
"location",
"(",
"provider",
",",
"m",
"context",
"get",
"op",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"... |
[
"sets",
"a",
"mock",
"enabled",
"value",
"for",
"the",
"given",
"provider",
"this",
"value",
"will",
"be",
"used",
"in",
"place",
"of",
"any",
"actual",
"value",
"from",
"the",
"provider"
] | [
"try",
"{",
"m",
"service",
"set",
"test",
"provider",
"enabled",
"(",
"provider",
",",
"enabled",
",",
"m",
"context",
"get",
"op",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethro... |
[
"removes",
"any",
"mock",
"enabled",
"value",
"associated",
"with",
"the",
"given",
"provider"
] | [
"try",
"{",
"m",
"service",
"clear",
"test",
"provider",
"enabled",
"(",
"provider",
",",
"m",
"context",
"get",
"op",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"s... |
[
"sets",
"mock",
"status",
"values",
"for",
"the",
"given",
"provider",
"these",
"values",
"will",
"be",
"used",
"in",
"place",
"of",
"any",
"actual",
"values",
"from",
"the",
"provider"
] | [
"try",
"{",
"m",
"service",
"set",
"test",
"provider",
"status",
"(",
"provider",
",",
"status",
",",
"extras",
",",
"update",
"time",
",",
"m",
"context",
"get",
"op",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
... |
[
"removes",
"any",
"mock",
"status",
"values",
"associated",
"with",
"the",
"given",
"provider"
] | [
"try",
"{",
"m",
"service",
"clear",
"test",
"provider",
"status",
"(",
"provider",
",",
"m",
"context",
"get",
"op",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"sy... |
[
"removes",
"a",
"gps",
"status",
"listener"
] | [
"try",
"{",
"gnss",
"status",
"listener",
"transport",
"transport",
"=",
"m",
"gps",
"status",
"listeners",
"remove",
"(",
"listener",
")",
";",
"if",
"(",
"transport",
"!",
"=",
"null",
")",
"{",
"m",
"service",
"unregister",
"gnss",
"status",
"callback",... |
[
"registers",
"a",
"gnss",
"status",
"callback"
] | [
"return",
"register",
"gnss",
"status",
"callback",
"(",
"callback",
",",
"null",
")",
";"
] |
[
"removes",
"a",
"gnss",
"status",
"callback"
] | [
"try",
"{",
"gnss",
"status",
"listener",
"transport",
"transport",
"=",
"m",
"gnss",
"status",
"listeners",
"remove",
"(",
"callback",
")",
";",
"if",
"(",
"transport",
"!",
"=",
"null",
")",
"{",
"m",
"service",
"unregister",
"gnss",
"status",
"callback"... |
[
"removes",
"an",
"nmea",
"listener"
] | [
"try",
"{",
"gnss",
"status",
"listener",
"transport",
"transport",
"=",
"m",
"gps",
"nmea",
"listeners",
"remove",
"(",
"listener",
")",
";",
"if",
"(",
"transport",
"!",
"=",
"null",
")",
"{",
"m",
"service",
"unregister",
"gnss",
"status",
"callback",
... |
[
"adds",
"an",
"nmea",
"listener"
] | [
"return",
"add",
"nmea",
"listener",
"(",
"listener",
",",
"null",
")",
";"
] |
[
"removes",
"an",
"nmea",
"listener"
] | [
"try",
"{",
"gnss",
"status",
"listener",
"transport",
"transport",
"=",
"m",
"gnss",
"nmea",
"listeners",
"remove",
"(",
"listener",
")",
";",
"if",
"(",
"transport",
"!",
"=",
"null",
")",
"{",
"m",
"service",
"unregister",
"gnss",
"status",
"callback",
... |
[
"registers",
"a",
"gps",
"measurement",
"callback"
] | [
"return",
"register",
"gnss",
"measurements",
"callback",
"(",
"callback",
",",
"null",
")",
";"
] |
[
"registers",
"a",
"gps",
"measurement",
"callback"
] | [
"return",
"m",
"gnss",
"measurement",
"callback",
"transport",
"add",
"(",
"callback",
",",
"handler",
")",
";"
] |
[
"unregisters",
"a",
"gps",
"measurement",
"callback"
] | [
"m",
"gnss",
"measurement",
"callback",
"transport",
"remove",
"(",
"callback",
")",
";"
] |
[
"registers",
"a",
"gnss",
"navigation",
"message",
"callback"
] | [
"return",
"register",
"gnss",
"navigation",
"message",
"callback",
"(",
"callback",
",",
"null",
")",
";"
] |
[
"registers",
"a",
"gnss",
"navigation",
"message",
"callback"
] | [
"return",
"m",
"gnss",
"navigation",
"message",
"callback",
"transport",
"add",
"(",
"callback",
",",
"handler",
")",
";"
] |
[
"unregisters",
"a",
"gnss",
"navigation",
"message",
"callback"
] | [
"m",
"gnss",
"navigation",
"message",
"callback",
"transport",
"remove",
"(",
"callback",
")",
";"
] |
[
"returns",
"the",
"model",
"year",
"of",
"the",
"gnss",
"hardware",
"and",
"software",
"build"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"gnss",
"year",
"of",
"hardware",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"model",
"name",
"(",
"including",
"vendor",
"and",
"hardware",
"/",
"software",
"version",
")",
"of",
"the",
"gnss",
"hardware",
"driver"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"gnss",
"hardware",
"model",
"name",
"(",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"(",
")",
";",
"}"
] |
[
"returns",
"the",
"batch",
"size",
"(",
"in",
"number",
"of",
"location",
"objects",
")",
"that",
"are",
"supported",
"by",
"the",
"batching",
"interface"
] | [
"try",
"{",
"return",
"m",
"service",
"get",
"gnss",
"batch",
"size",
"(",
"m",
"context",
"get",
"package",
"name",
"(",
")",
")",
";",
"}",
"catch",
"(",
"remote",
"exception",
"e",
")",
"{",
"throw",
"e",
"rethrow",
"from",
"system",
"server",
"("... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.