docstring_tokens
list | code_tokens
list |
---|---|
[
"the",
"total",
"number",
"of",
"occurrences",
"of",
"this",
"term",
"<",
"p",
">",
"this",
"is",
"the",
"token",
"count",
"for",
"the",
"term",
":",
"the",
"number",
"of",
"times",
"it",
"appears",
"in",
"the",
"field",
"across",
"all",
"documents",
"<",
"p",
">",
"this",
"value",
"is",
"always",
"a",
"positive",
"number",
"always",
"at",
"least",
"{"
]
| [
"return",
"total",
"term",
"freq",
";"
]
|
[
"<",
"p",
">",
"a",
"unique",
"number",
"that",
"ensures",
"the",
"request",
"can",
"t",
"be",
"replayed",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"the",
"<",
"code",
">",
"caller",
"reference",
"<",
"/",
"code",
">",
"is",
"new",
"(",
"no",
"matter",
"the",
"content",
"of",
"the",
"<",
"code",
">",
"cloud",
"front",
"origin",
"access",
"identity",
"config",
"<",
"/",
"code",
">",
"object",
")",
"a",
"new",
"origin",
"access",
"identity",
"is",
"created",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"the",
"<",
"code",
">",
"caller",
"reference",
"<",
"/",
"code",
">",
"is",
"a",
"value",
"already",
"sent",
"in",
"a",
"previous",
"identity",
"request",
"and",
"the",
"content",
"of",
"the",
"<",
"code",
">",
"cloud",
"front",
"origin",
"access",
"identity",
"config",
"<",
"/",
"code",
">",
"is",
"identical",
"to",
"the",
"original",
"request",
"(",
"ignoring",
"white",
"space",
")",
"the",
"response",
"includes",
"the",
"same",
"information",
"returned",
"to",
"the",
"original",
"request",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"the",
"<",
"code",
">",
"caller",
"reference",
"<",
"/",
"code",
">",
"is",
"a",
"value",
"you",
"already",
"sent",
"in",
"a",
"previous",
"request",
"to",
"create",
"an",
"identity",
"but",
"the",
"content",
"of",
"the",
"<",
"code",
">",
"cloud",
"front",
"origin",
"access",
"identity",
"config",
"<",
"/",
"code",
">",
"is",
"different",
"from",
"the",
"original",
"request",
"cloud",
"front",
"returns",
"a",
"<",
"code",
">",
"cloud",
"front",
"origin",
"access",
"identity",
"already",
"exists",
"<",
"/",
"code",
">",
"error",
"<",
"/",
"p",
">"
]
| [
"set",
"caller",
"reference",
"(",
"caller",
"reference",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"any",
"comments",
"you",
"want",
"to",
"include",
"about",
"the",
"origin",
"access",
"identity",
"<",
"/",
"p",
">"
]
| [
"set",
"comment",
"(",
"comment",
")",
";",
"return",
"this",
";"
]
|
[
"query",
"if",
"the",
"given",
"scheme",
"identified",
"by",
"its",
"uuid",
"is",
"supported",
"on",
"this",
"device"
]
| [
"return",
"is",
"crypto",
"scheme",
"supported",
"native",
"(",
"get",
"byte",
"array",
"from",
"u",
"u",
"i",
"d",
"(",
"uuid",
")",
",",
"null",
")",
";"
]
|
[
"query",
"if",
"the",
"given",
"scheme",
"identified",
"by",
"its",
"uuid",
"is",
"supported",
"on",
"this",
"device",
"and",
"whether",
"the",
"drm",
"plugin",
"is",
"able",
"to",
"handle",
"the",
"media",
"container",
"format",
"specified",
"by",
"mime",
"type"
]
| [
"return",
"is",
"crypto",
"scheme",
"supported",
"native",
"(",
"get",
"byte",
"array",
"from",
"u",
"u",
"i",
"d",
"(",
"uuid",
")",
",",
"mime",
"type",
")",
";"
]
|
[
"register",
"a",
"callback",
"to",
"be",
"invoked",
"when",
"a",
"session",
"expiration",
"update",
"occurs",
"the",
"app",
"s",
"on",
"expiration",
"update",
"listener",
"will",
"be",
"notified",
"when",
"the",
"expiration",
"time",
"of",
"the",
"keys",
"in",
"the",
"session",
"have",
"changed"
]
| [
"if",
"(",
"listener",
"!",
"=",
"null",
")",
"{",
"looper",
"looper",
"=",
"handler",
"!",
"=",
"null",
"?",
"handler",
"get",
"looper",
"(",
")",
":",
"looper",
"my",
"looper",
"(",
")",
";",
"if",
"(",
"looper",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"m",
"event",
"handler",
"=",
"=",
"null",
"|",
"|",
"m",
"event",
"handler",
"get",
"looper",
"(",
")",
"!",
"=",
"looper",
")",
"{",
"m",
"event",
"handler",
"=",
"new",
"event",
"handler",
"(",
"this",
",",
"looper",
")",
";",
"}",
"}",
"}",
"m",
"on",
"expiration",
"update",
"listener",
"=",
"listener",
";"
]
|
[
"register",
"a",
"callback",
"to",
"be",
"invoked",
"when",
"the",
"state",
"of",
"keys",
"in",
"a",
"session",
"change",
"e",
"g",
"when",
"a",
"license",
"update",
"occurs",
"or",
"when",
"a",
"license",
"expires"
]
| [
"if",
"(",
"listener",
"!",
"=",
"null",
")",
"{",
"looper",
"looper",
"=",
"handler",
"!",
"=",
"null",
"?",
"handler",
"get",
"looper",
"(",
")",
":",
"looper",
"my",
"looper",
"(",
")",
";",
"if",
"(",
"looper",
"!",
"=",
"null",
")",
"{",
"if",
"(",
"m",
"event",
"handler",
"=",
"=",
"null",
"|",
"|",
"m",
"event",
"handler",
"get",
"looper",
"(",
")",
"!",
"=",
"looper",
")",
"{",
"m",
"event",
"handler",
"=",
"new",
"event",
"handler",
"(",
"this",
",",
"looper",
")",
";",
"}",
"}",
"}",
"m",
"on",
"key",
"status",
"change",
"listener",
"=",
"listener",
";"
]
|
[
"returns",
"the",
"status",
"code",
"for",
"the",
"key"
]
| [
"return",
"m",
"status",
"code",
";"
]
|
[
"returns",
"the",
"id",
"for",
"the",
"key"
]
| [
"return",
"m",
"key",
"id",
";"
]
|
[
"register",
"a",
"callback",
"to",
"be",
"invoked",
"when",
"an",
"event",
"occurs"
]
| [
"m",
"on",
"event",
"listener",
"=",
"listener",
";"
]
|
[
"parse",
"a",
"list",
"of",
"key",
"status",
"objects",
"from",
"an",
"event",
"parcel"
]
| [
"int",
"nelems",
"=",
"parcel",
"read",
"int",
"(",
")",
";",
"list",
"<",
"key",
"status",
">",
"key",
"status",
"list",
"=",
"new",
"array",
"list",
"(",
"nelems",
")",
";",
"while",
"(",
"nelems",
"-",
"-",
">",
"0",
")",
"{",
"byte",
"[",
"]",
"key",
"id",
"=",
"parcel",
"create",
"byte",
"array",
"(",
")",
";",
"int",
"key",
"status",
"code",
"=",
"parcel",
"read",
"int",
"(",
")",
";",
"key",
"status",
"list",
"add",
"(",
"new",
"key",
"status",
"(",
"key",
"id",
",",
"key",
"status",
"code",
")",
")",
";",
"}",
"return",
"key",
"status",
"list",
";"
]
|
[
"this",
"method",
"is",
"called",
"from",
"native",
"code",
"when",
"an",
"event",
"occurs",
"this",
"method",
"just",
"uses",
"the",
"event",
"handler",
"system",
"to",
"post",
"the",
"event",
"back",
"to",
"the",
"main",
"app",
"thread",
"we",
"use",
"a",
"weak",
"reference",
"to",
"the",
"original",
"media",
"player",
"object",
"so",
"that",
"the",
"native",
"code",
"is",
"safe",
"from",
"the",
"object",
"disappearing",
"from",
"underneath",
"it",
"(",
"this",
"is",
"the",
"cookie",
"passed",
"to",
"native",
"setup",
"(",
")",
")"
]
| [
"media",
"drm",
"md",
"=",
"(",
"media",
"drm",
")",
"(",
"(",
"weak",
"reference",
"<",
"media",
"drm",
">",
")",
"mediadrm",
"ref",
")",
"get",
"(",
")",
";",
"if",
"(",
"md",
"=",
"=",
"null",
")",
"{",
"return",
";",
"}",
"if",
"(",
"md",
"m",
"event",
"handler",
"!",
"=",
"null",
")",
"{",
"message",
"m",
"=",
"md",
"m",
"event",
"handler",
"obtain",
"message",
"(",
"what",
",",
"event",
"type",
",",
"extra",
",",
"obj",
")",
";",
"md",
"m",
"event",
"handler",
"send",
"message",
"(",
"m",
")",
";",
"}"
]
|
[
"open",
"a",
"new",
"session",
"with",
"the",
"media",
"drm",
"object",
"a",
"session",
"id",
"is",
"returned",
"by",
"default",
"sessions",
"are",
"opened",
"at",
"the",
"native",
"security",
"level",
"of",
"the",
"device"
]
| [
"return",
"open",
"session",
"(",
"get",
"max",
"security",
"level",
"(",
")",
")",
";"
]
|
[
"open",
"a",
"new",
"session",
"at",
"a",
"requested",
"security",
"level",
"the",
"security",
"level",
"represents",
"the",
"robustness",
"of",
"the",
"device",
"s",
"drm",
"implementation",
"by",
"default",
"sessions",
"are",
"opened",
"at",
"the",
"native",
"security",
"level",
"of",
"the",
"device",
"overriding",
"the",
"security",
"level",
"is",
"necessary",
"when",
"the",
"decrypted",
"frames",
"need",
"to",
"be",
"manipulated",
"such",
"as",
"for",
"image",
"compositing",
"the",
"security",
"level",
"parameter",
"must",
"be",
"lower",
"than",
"the",
"native",
"level",
"reducing",
"the",
"security",
"level",
"will",
"typically",
"limit",
"the",
"content",
"to",
"lower",
"resolutions",
"as",
"determined",
"by",
"the",
"license",
"policy",
"if",
"the",
"requested",
"level",
"is",
"not",
"supported",
"the",
"next",
"lower",
"supported",
"security",
"level",
"will",
"be",
"set",
"the",
"level",
"can",
"be",
"queried",
"using",
"{",
"@",
"link",
"#",
"get",
"security",
"level",
"}",
"a",
"session",
"id",
"is",
"returned"
]
| [
"@",
"non",
"null",
"public",
"native",
"byte",
"[",
"]",
"open",
"session",
"(",
"@",
"security",
"level",
"int",
"level",
")",
"throws",
"not",
"provisioned",
"exception",
",",
"resource",
"busy",
"exception",
";"
]
|
[
"close",
"a",
"session",
"on",
"the",
"media",
"drm",
"object",
"that",
"was",
"previously",
"opened",
"with",
"{"
]
| [
"public",
"native",
"void",
"close",
"session",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"session",
"id",
")",
";"
]
|
[
"a",
"key",
"request",
"/",
"response",
"exchange",
"occurs",
"between",
"the",
"app",
"and",
"a",
"license",
"server",
"to",
"obtain",
"or",
"release",
"keys",
"used",
"to",
"decrypt",
"encrypted",
"content",
"<",
"p",
">",
"get",
"key",
"request",
"(",
")",
"is",
"used",
"to",
"obtain",
"an",
"opaque",
"key",
"request",
"byte",
"array",
"that",
"is",
"delivered",
"to",
"the",
"license",
"server",
"the",
"opaque",
"key",
"request",
"byte",
"array",
"is",
"returned",
"in",
"key",
"request",
"data",
"the",
"recommended",
"url",
"to",
"deliver",
"the",
"key",
"request",
"to",
"is",
"returned",
"in",
"key",
"request",
"default",
"url",
"<",
"p",
">",
"after",
"the",
"app",
"has",
"received",
"the",
"key",
"request",
"response",
"from",
"the",
"server",
"it",
"should",
"deliver",
"to",
"the",
"response",
"to",
"the",
"media",
"drm",
"instance",
"using",
"the",
"method",
"{",
"@",
"link",
"#",
"provide",
"key",
"response",
"}"
]
| [
"@",
"non",
"null",
"public",
"native",
"key",
"request",
"get",
"key",
"request",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"scope",
",",
"@",
"nullable",
"byte",
"[",
"]",
"init",
",",
"@",
"nullable",
"string",
"mime",
"type",
",",
"@",
"key",
"type",
"int",
"key",
"type",
",",
"@",
"nullable",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"optional",
"parameters",
")",
"throws",
"not",
"provisioned",
"exception",
";"
]
|
[
"a",
"key",
"response",
"is",
"received",
"from",
"the",
"license",
"server",
"by",
"the",
"app",
"then",
"it",
"is",
"provided",
"to",
"the",
"media",
"drm",
"instance",
"using",
"provide",
"key",
"response",
"when",
"the",
"response",
"is",
"for",
"an",
"offline",
"key",
"request",
"a",
"key",
"set",
"id",
"is",
"returned",
"that",
"can",
"be",
"used",
"to",
"later",
"restore",
"the",
"keys",
"to",
"a",
"new",
"session",
"with",
"the",
"method",
"{",
"@",
"link",
"#",
"restore",
"keys",
"}",
"when",
"the",
"response",
"is",
"for",
"a",
"streaming",
"or",
"release",
"request",
"an",
"empty",
"byte",
"array",
"is",
"returned"
]
| [
"@",
"nullable",
"public",
"native",
"byte",
"[",
"]",
"provide",
"key",
"response",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"scope",
",",
"@",
"non",
"null",
"byte",
"[",
"]",
"response",
")",
"throws",
"not",
"provisioned",
"exception",
",",
"denied",
"by",
"server",
"exception",
";"
]
|
[
"restore",
"persisted",
"offline",
"keys",
"into",
"a",
"new",
"session",
"key",
"set",
"id",
"identifies",
"the",
"keys",
"to",
"load",
"obtained",
"from",
"a",
"prior",
"call",
"to",
"{",
"@",
"link",
"#",
"provide",
"key",
"response",
"}"
]
| [
"public",
"native",
"void",
"restore",
"keys",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"session",
"id",
",",
"@",
"non",
"null",
"byte",
"[",
"]",
"key",
"set",
"id",
")",
";"
]
|
[
"remove",
"the",
"current",
"keys",
"from",
"a",
"session"
]
| [
"public",
"native",
"void",
"remove",
"keys",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"session",
"id",
")",
";"
]
|
[
"request",
"an",
"informative",
"description",
"of",
"the",
"key",
"status",
"for",
"the",
"session",
"the",
"status",
"is",
"in",
"the",
"form",
"of",
"{",
"name",
"value",
"}",
"pairs",
"since",
"drm",
"license",
"policies",
"vary",
"by",
"vendor",
"the",
"specific",
"status",
"field",
"names",
"are",
"determined",
"by",
"each",
"drm",
"vendor",
"refer",
"to",
"your",
"drm",
"provider",
"documentation",
"for",
"definitions",
"of",
"the",
"field",
"names",
"for",
"a",
"particular",
"drm",
"plugin"
]
| [
"@",
"non",
"null",
"public",
"native",
"hash",
"map",
"<",
"string",
",",
"string",
">",
"query",
"key",
"status",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"session",
"id",
")",
";"
]
|
[
"a",
"provision",
"request",
"/",
"response",
"exchange",
"occurs",
"between",
"the",
"app",
"and",
"a",
"provisioning",
"server",
"to",
"retrieve",
"a",
"device",
"certificate",
"if",
"provisionining",
"is",
"required",
"the",
"event",
"provision",
"required",
"event",
"will",
"be",
"sent",
"to",
"the",
"event",
"handler",
"get",
"provision",
"request",
"is",
"used",
"to",
"obtain",
"the",
"opaque",
"provision",
"request",
"byte",
"array",
"that",
"should",
"be",
"delivered",
"to",
"the",
"provisioning",
"server",
"the",
"provision",
"request",
"byte",
"array",
"is",
"returned",
"in",
"provision",
"request",
"data",
"the",
"recommended",
"url",
"to",
"deliver",
"the",
"provision",
"request",
"to",
"is",
"returned",
"in",
"provision",
"request",
"default",
"url"
]
| [
"return",
"get",
"provision",
"request",
"native",
"(",
"certificate",
"type",
"none",
",",
"\"",
"\"",
")",
";"
]
|
[
"after",
"a",
"provision",
"response",
"is",
"received",
"by",
"the",
"app",
"it",
"is",
"provided",
"to",
"the",
"media",
"drm",
"instance",
"using",
"this",
"method"
]
| [
"provide",
"provision",
"response",
"native",
"(",
"response",
")",
";"
]
|
[
"secure",
"stops",
"are",
"a",
"way",
"to",
"enforce",
"limits",
"on",
"the",
"number",
"of",
"concurrent",
"streams",
"per",
"subscriber",
"across",
"devices",
"they",
"provide",
"secure",
"monitoring",
"of",
"the",
"lifetime",
"of",
"content",
"decryption",
"keys",
"in",
"media",
"drm",
"sessions",
"<",
"p",
">",
"a",
"secure",
"stop",
"is",
"written",
"to",
"secure",
"persistent",
"memory",
"when",
"keys",
"are",
"loaded",
"into",
"a",
"media",
"drm",
"session",
"the",
"secure",
"stop",
"state",
"indicates",
"that",
"the",
"keys",
"are",
"available",
"for",
"use",
"when",
"playback",
"completes",
"and",
"the",
"keys",
"are",
"removed",
"or",
"the",
"session",
"is",
"destroyed",
"the",
"secure",
"stop",
"state",
"is",
"updated",
"to",
"indicate",
"that",
"keys",
"are",
"no",
"longer",
"usable",
"<",
"p",
">",
"after",
"playback",
"the",
"app",
"can",
"query",
"the",
"secure",
"stop",
"and",
"send",
"it",
"in",
"a",
"message",
"to",
"the",
"license",
"server",
"confirming",
"that",
"the",
"keys",
"are",
"no",
"longer",
"active",
"the",
"license",
"server",
"returns",
"a",
"secure",
"stop",
"release",
"response",
"message",
"to",
"the",
"app",
"which",
"then",
"deletes",
"the",
"secure",
"stop",
"from",
"persistent",
"memory",
"using",
"{"
]
| [
"@",
"non",
"null",
"public",
"native",
"list",
"<",
"byte",
"[",
"]",
">",
"get",
"secure",
"stops",
"(",
")",
";"
]
|
[
"return",
"a",
"list",
"of",
"all",
"secure",
"stop",
"i",
"ds",
"currently",
"in",
"persistent",
"memory",
"the",
"secure",
"stop",
"id",
"can",
"be",
"used",
"to",
"access",
"or",
"remove",
"the",
"corresponding",
"secure",
"stop"
]
| [
"@",
"non",
"null",
"public",
"native",
"list",
"<",
"byte",
"[",
"]",
">",
"get",
"secure",
"stop",
"ids",
"(",
")",
";"
]
|
[
"access",
"a",
"specific",
"secure",
"stop",
"given",
"its",
"secure",
"stop",
"id",
"each",
"secure",
"stop",
"has",
"a",
"unique",
"id"
]
| [
"@",
"non",
"null",
"public",
"native",
"byte",
"[",
"]",
"get",
"secure",
"stop",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"ssid",
")",
";"
]
|
[
"process",
"the",
"secure",
"stop",
"server",
"response",
"message",
"ss",
"release",
"after",
"authenticating",
"the",
"message",
"remove",
"the",
"secure",
"stops",
"identified",
"in",
"the",
"response"
]
| [
"public",
"native",
"void",
"release",
"secure",
"stops",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"ss",
"release",
")",
";"
]
|
[
"remove",
"a",
"specific",
"secure",
"stop",
"without",
"requiring",
"a",
"secure",
"stop",
"release",
"message",
"from",
"the",
"license",
"server"
]
| [
"public",
"native",
"void",
"remove",
"secure",
"stop",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"ssid",
")",
";"
]
|
[
"remove",
"all",
"secure",
"stops",
"without",
"requiring",
"a",
"secure",
"stop",
"release",
"message",
"from",
"the",
"license",
"server"
]
| [
"public",
"native",
"void",
"remove",
"all",
"secure",
"stops",
"(",
")",
";"
]
|
[
"remove",
"all",
"secure",
"stops",
"without",
"requiring",
"a",
"secure",
"stop",
"release",
"message",
"from",
"the",
"license",
"server"
]
| [
"remove",
"all",
"secure",
"stops",
"(",
")",
";",
";"
]
|
[
"return",
"the",
"hdcp",
"level",
"negotiated",
"with",
"downstream",
"receivers",
"the",
"device",
"is",
"connected",
"to",
"if",
"multiple",
"hdcp",
"-",
"capable",
"displays",
"are",
"simultaneously",
"connected",
"to",
"separate",
"interfaces",
"this",
"method",
"returns",
"the",
"lowest",
"negotiated",
"level",
"of",
"all",
"interfaces",
"<",
"p",
">",
"this",
"method",
"should",
"only",
"be",
"used",
"for",
"informational",
"purposes",
"not",
"for",
"enforcing",
"compliance",
"with",
"hdcp",
"requirements",
"trusted",
"enforcement",
"of",
"hdcp",
"policies",
"must",
"be",
"handled",
"by",
"the",
"drm",
"system",
"<",
"p",
">"
]
| [
"@",
"hdcp",
"level",
"public",
"native",
"int",
"get",
"connected",
"hdcp",
"level",
"(",
")",
";"
]
|
[
"return",
"the",
"maximum",
"supported",
"hdcp",
"level",
"the",
"maximum",
"hdcp",
"level",
"is",
"a",
"constant",
"for",
"a",
"given",
"device",
"it",
"does",
"not",
"depend",
"on",
"downstream",
"receivers",
"that",
"may",
"be",
"connected",
"if",
"multiple",
"hdcp",
"-",
"capable",
"interfaces",
"are",
"present",
"it",
"indicates",
"the",
"highest",
"of",
"the",
"maximum",
"hdcp",
"levels",
"of",
"all",
"interfaces",
"<",
"p",
">"
]
| [
"@",
"hdcp",
"level",
"public",
"native",
"int",
"get",
"max",
"hdcp",
"level",
"(",
")",
";"
]
|
[
"return",
"the",
"number",
"of",
"media",
"drm",
"sessions",
"that",
"are",
"currently",
"opened",
"simultaneously",
"among",
"all",
"media",
"drm",
"instances",
"for",
"the",
"active",
"drm",
"scheme"
]
| [
"public",
"native",
"int",
"get",
"open",
"session",
"count",
"(",
")",
";"
]
|
[
"return",
"the",
"maximum",
"number",
"of",
"media",
"drm",
"sessions",
"that",
"may",
"be",
"opened",
"simultaneosly",
"among",
"all",
"media",
"drm",
"instances",
"for",
"the",
"active",
"drm",
"scheme",
"the",
"maximum",
"number",
"of",
"sessions",
"is",
"not",
"affected",
"by",
"any",
"sessions",
"that",
"may",
"have",
"already",
"been",
"opened"
]
| [
"public",
"native",
"int",
"get",
"max",
"session",
"count",
"(",
")",
";"
]
|
[
"the",
"maximum",
"security",
"level",
"supported",
"by",
"the",
"device",
"this",
"is",
"the",
"default",
"security",
"level",
"when",
"a",
"session",
"is",
"opened"
]
| [
"return",
"security",
"level",
"max",
";"
]
|
[
"return",
"the",
"current",
"security",
"level",
"of",
"a",
"session",
"a",
"session",
"has",
"an",
"initial",
"security",
"level",
"determined",
"by",
"the",
"robustness",
"of",
"the",
"drm",
"system",
"s",
"implementation",
"on",
"the",
"device",
"the",
"security",
"level",
"may",
"be",
"changed",
"at",
"the",
"time",
"a",
"session",
"is",
"opened",
"using",
"{"
]
| [
"@",
"security",
"level",
"public",
"native",
"int",
"get",
"security",
"level",
"(",
"@",
"non",
"null",
"byte",
"[",
"]",
"session",
"id",
")",
";"
]
|
[
"read",
"a",
"media",
"drm",
"string",
"property",
"value",
"given",
"the",
"property",
"name",
"string",
"<",
"p",
">",
"standard",
"fields",
"names",
"are",
":",
"{"
]
| [
"@",
"non",
"null",
"public",
"native",
"string",
"get",
"property",
"string",
"(",
"@",
"non",
"null",
"@",
"string",
"property",
"string",
"property",
"name",
")",
";"
]
|
[
"set",
"a",
"media",
"drm",
"string",
"property",
"value",
"given",
"the",
"property",
"name",
"string",
"and",
"new",
"value",
"for",
"the",
"property"
]
| [
"public",
"native",
"void",
"set",
"property",
"string",
"(",
"@",
"non",
"null",
"@",
"string",
"property",
"string",
"property",
"name",
",",
"@",
"non",
"null",
"string",
"value",
")",
";"
]
|
[
"read",
"a",
"media",
"drm",
"byte",
"array",
"property",
"value",
"given",
"the",
"property",
"name",
"string",
"<",
"p",
">",
"standard",
"fields",
"names",
"are",
"{"
]
| [
"@",
"non",
"null",
"public",
"native",
"byte",
"[",
"]",
"get",
"property",
"byte",
"array",
"(",
"@",
"array",
"property",
"string",
"property",
"name",
")",
";"
]
|
[
"set",
"a",
"media",
"drm",
"byte",
"array",
"property",
"value",
"given",
"the",
"property",
"name",
"string",
"and",
"new",
"value",
"for",
"the",
"property"
]
| [
"public",
"native",
"void",
"set",
"property",
"byte",
"array",
"(",
"@",
"non",
"null",
"@",
"array",
"property",
"string",
"property",
"name",
",",
"@",
"non",
"null",
"byte",
"[",
"]",
"value",
")",
";"
]
|
[
"return",
"metrics",
"data",
"about",
"the",
"current",
"media",
"drm",
"instance"
]
| [
"persistable",
"bundle",
"bundle",
"=",
"get",
"metrics",
"native",
"(",
")",
";",
"return",
"bundle",
";"
]
|
[
"encrypt",
"data",
"using",
"the",
"crypto",
"session",
"s",
"cipher",
"algorithm"
]
| [
"return",
"encrypt",
"native",
"(",
"media",
"drm",
"this",
",",
"m",
"session",
"id",
",",
"keyid",
",",
"input",
",",
"iv",
")",
";"
]
|
[
"decrypt",
"data",
"using",
"the",
"crypto",
"sessions",
"s",
"cipher",
"algorithm"
]
| [
"return",
"decrypt",
"native",
"(",
"media",
"drm",
"this",
",",
"m",
"session",
"id",
",",
"keyid",
",",
"input",
",",
"iv",
")",
";"
]
|
[
"sign",
"data",
"using",
"the",
"crypto",
"sessions",
"s",
"mac",
"algorithm"
]
| [
"return",
"sign",
"native",
"(",
"media",
"drm",
"this",
",",
"m",
"session",
"id",
",",
"keyid",
",",
"message",
")",
";"
]
|
[
"verify",
"a",
"signature",
"using",
"the",
"crypto",
"sessions",
"s",
"mac",
"algorithm",
"return",
"true",
"if",
"the",
"signatures",
"match",
"false",
"if",
"they",
"do",
"no"
]
| [
"return",
"verify",
"native",
"(",
"media",
"drm",
"this",
",",
"m",
"session",
"id",
",",
"keyid",
",",
"message",
",",
"signature",
")",
";"
]
|
[
"obtain",
"a",
"crypto",
"session",
"object",
"which",
"can",
"be",
"used",
"to",
"encrypt",
"decrypt",
"sign",
"and",
"verify",
"messages",
"or",
"data",
"using",
"the",
"session",
"keys",
"established",
"for",
"the",
"session",
"using",
"methods",
"{",
"@",
"link",
"#",
"get",
"key",
"request",
"}",
"and",
"{",
"@",
"link",
"#",
"provide",
"key",
"response",
"}",
"using",
"a",
"session",
"key",
"server"
]
| [
"return",
"new",
"crypto",
"session",
"(",
"session",
"id",
",",
"cipher",
"algorithm",
",",
"mac",
"algorithm",
")",
";"
]
|
[
"get",
"the",
"opaque",
"message",
"data"
]
| [
"return",
"m",
"data",
";"
]
|
[
"get",
"the",
"default",
"url",
"to",
"use",
"when",
"sending",
"the",
"certificate",
"request",
"message",
"to",
"a",
"server",
"if",
"known",
"the",
"app",
"may",
"prefer",
"to",
"use",
"a",
"different",
"certificate",
"server",
"url",
"obtained",
"from",
"other",
"sources"
]
| [
"return",
"m",
"default",
"url",
";"
]
|
[
"generate",
"a",
"certificate",
"request",
"specifying",
"the",
"certificate",
"type",
"and",
"authority",
"the",
"response",
"received",
"should",
"be",
"passed",
"to",
"provide",
"certificate",
"response"
]
| [
"provision",
"request",
"provision",
"request",
"=",
"get",
"provision",
"request",
"native",
"(",
"cert",
"type",
",",
"cert",
"authority",
")",
";",
"return",
"new",
"certificate",
"request",
"(",
"provision",
"request",
"get",
"data",
"(",
")",
",",
"provision",
"request",
"get",
"default",
"url",
"(",
")",
")",
";"
]
|
[
"process",
"a",
"response",
"from",
"the",
"certificate",
"server",
"the",
"response",
"is",
"obtained",
"from",
"an",
"http",
"post",
"to",
"the",
"url",
"provided",
"by",
"get",
"certificate",
"request",
"<",
"p",
">",
"the",
"public",
"x509",
"certificate",
"chain",
"and",
"wrapped",
"private",
"key",
"are",
"returned",
"in",
"the",
"returned",
"certificate",
"objec",
"the",
"certificate",
"chain",
"is",
"in",
"pem",
"format",
"the",
"wrapped",
"private",
"key",
"should",
"be",
"stored",
"in",
"application",
"private",
"storage",
"and",
"used",
"when",
"invoking",
"the",
"sign",
"r",
"s",
"a",
"method"
]
| [
"return",
"provide",
"provision",
"response",
"native",
"(",
"response",
")",
";"
]
|
[
"sign",
"data",
"using",
"an",
"rsa",
"key"
]
| [
"return",
"sign",
"r",
"s",
"a",
"native",
"(",
"this",
",",
"session",
"id",
",",
"algorithm",
",",
"wrapped",
"key",
",",
"message",
")",
";"
]
|
[
"copy",
"information",
"from",
"the",
"meta",
"-",
"data",
"input",
"to",
"the",
"dialog",
"fields"
]
| [
"w",
"compatible",
"set",
"selection",
"(",
"input",
"is",
"compatible",
"(",
")",
")",
";",
"if",
"(",
"!",
"utils",
"is",
"empty",
"(",
"const",
"trim",
"(",
"input",
"get",
"optimization",
"level",
"(",
")",
")",
")",
")",
"{",
"w",
"optimization",
"level",
"set",
"text",
"(",
"input",
"get",
"optimization",
"level",
"(",
")",
"trim",
"(",
")",
")",
";",
"}",
"else",
"{",
"w",
"optimization",
"level",
"set",
"text",
"(",
"script",
"values",
"meta",
"mod",
"optimization",
"level",
"default",
")",
";",
"}",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"input",
"get",
"fieldname",
"(",
")",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"input",
"get",
"fieldname",
"(",
")",
"[",
"i",
"]",
"!",
"=",
"null",
"&",
"&",
"input",
"get",
"fieldname",
"(",
")",
"[",
"i",
"]",
"length",
"(",
")",
">",
"0",
")",
"{",
"table",
"item",
"item",
"=",
"w",
"fields",
"table",
"get",
"item",
"(",
"i",
")",
";",
"item",
"set",
"text",
"(",
"1",
",",
"input",
"get",
"fieldname",
"(",
")",
"[",
"i",
"]",
")",
";",
"if",
"(",
"input",
"get",
"rename",
"(",
")",
"[",
"i",
"]",
"!",
"=",
"null",
"&",
"&",
"!",
"input",
"get",
"fieldname",
"(",
")",
"[",
"i",
"]",
"equals",
"(",
"input",
"get",
"rename",
"(",
")",
"[",
"i",
"]",
")",
")",
"{",
"item",
"set",
"text",
"(",
"2",
",",
"input",
"get",
"rename",
"(",
")",
"[",
"i",
"]",
")",
";",
"}",
"item",
"set",
"text",
"(",
"3",
",",
"value",
"meta",
"factory",
"get",
"value",
"meta",
"name",
"(",
"input",
"get",
"type",
"(",
")",
"[",
"i",
"]",
")",
")",
";",
"if",
"(",
"input",
"get",
"length",
"(",
")",
"[",
"i",
"]",
">",
"=",
"0",
")",
"{",
"item",
"set",
"text",
"(",
"4",
",",
"\"",
"\"",
"+",
"input",
"get",
"length",
"(",
")",
"[",
"i",
"]",
")",
";",
"}",
"if",
"(",
"input",
"get",
"precision",
"(",
")",
"[",
"i",
"]",
">",
"=",
"0",
")",
"{",
"item",
"set",
"text",
"(",
"5",
",",
"\"",
"\"",
"+",
"input",
"get",
"precision",
"(",
")",
"[",
"i",
"]",
")",
";",
"}",
"item",
"set",
"text",
"(",
"6",
",",
"input",
"get",
"replace",
"(",
")",
"[",
"i",
"]",
"?",
"yes",
"no",
"combo",
"[",
"1",
"]",
":",
"yes",
"no",
"combo",
"[",
"0",
"]",
")",
";",
"}",
"}",
"script",
"values",
"script",
"[",
"]",
"js",
"scripts",
"=",
"input",
"get",
"j",
"s",
"scripts",
"(",
")",
";",
"if",
"(",
"js",
"scripts",
"length",
">",
"0",
")",
"{",
"for",
"(",
"int",
"i",
"=",
"0",
";",
"i",
"<",
"js",
"scripts",
"length",
";",
"i",
"+",
"+",
")",
"{",
"if",
"(",
"js",
"scripts",
"[",
"i",
"]",
"is",
"transform",
"script",
"(",
")",
")",
"{",
"str",
"active",
"script",
"=",
"js",
"scripts",
"[",
"i",
"]",
"get",
"script",
"name",
"(",
")",
";",
"}",
"else",
"if",
"(",
"js",
"scripts",
"[",
"i",
"]",
"is",
"start",
"script",
"(",
")",
")",
"{",
"str",
"active",
"start",
"script",
"=",
"js",
"scripts",
"[",
"i",
"]",
"get",
"script",
"name",
"(",
")",
";",
"}",
"else",
"if",
"(",
"js",
"scripts",
"[",
"i",
"]",
"is",
"end",
"script",
"(",
")",
")",
"{",
"str",
"active",
"end",
"script",
"=",
"js",
"scripts",
"[",
"i",
"]",
"get",
"script",
"name",
"(",
")",
";",
"}",
"add",
"ctab",
"(",
"js",
"scripts",
"[",
"i",
"]",
"get",
"script",
"name",
"(",
")",
",",
"js",
"scripts",
"[",
"i",
"]",
"get",
"script",
"(",
")",
",",
"add",
"default",
")",
";",
"}",
"}",
"else",
"{",
"add",
"ctab",
"(",
"\"",
"\"",
",",
"\"",
"\"",
",",
"add",
"default",
")",
";",
"}",
"set",
"active",
"ctab",
"(",
"str",
"active",
"script",
")",
";",
"refresh",
"(",
")",
";",
"w",
"fields",
"set",
"row",
"nums",
"(",
")",
";",
"w",
"fields",
"opt",
"width",
"(",
"true",
")",
";",
"w",
"stepname",
"select",
"all",
"(",
")",
";",
"w",
"stepname",
"set",
"focus",
"(",
")",
";"
]
|
[
"turns",
"the",
"exception",
"into",
"json",
"format",
"and",
"embeds",
"it",
"into",
"the",
"response",
"with",
"the",
"provided",
"status"
]
| [
"return",
"response",
"status",
"(",
"status",
")",
"entity",
"(",
"new",
"exception",
"model",
"(",
"e",
"get",
"message",
"(",
")",
")",
")",
"type",
"(",
"media",
"type",
"application",
"json",
")",
"build",
"(",
")",
";"
]
|
[
"the",
"i",
"d",
"3v",
"2",
"frame",
"identifier"
]
| [
"return",
"i",
"d",
"3v",
"2",
"4",
"frames",
"frame",
"id",
"radio",
"name",
";"
]
|
[
"will",
"call",
"process",
"definitions",
"on",
"startup"
]
| [
"super",
"on",
"init",
"(",
")",
";",
"process",
"definitions",
"(",
")",
";"
]
|
[
"<",
"p",
">",
"sets",
"a",
"newline",
"(",
"\\",
"n",
")",
"delimited",
"string",
"that",
"defines",
"user",
"-",
"to",
"-",
"password",
"-",
"and",
"-",
"role",
"(",
"s",
")",
"key",
"/",
"value",
"pairs",
"according",
"to",
"the",
"following",
"format",
":",
"<",
"p",
"/",
">",
"<",
"p",
">",
"<",
"code",
">",
"<",
"em",
">",
"username",
"<",
"/",
"em",
">",
"=",
"<",
"em",
">",
"password",
"<",
"/",
"em",
">",
"role",
"1",
"role",
"2",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
"/",
">",
"<",
"p",
">",
"here",
"are",
"some",
"examples",
"of",
"what",
"these",
"lines",
"might",
"look",
"like",
":",
"<",
"/",
"p",
">",
"<",
"p",
"/",
">",
"<",
"p",
">",
"<",
"code",
">",
"root",
"=",
"<",
"em",
">",
"really",
"hard",
"to",
"guess",
"password",
"<",
"/",
"em",
">",
"administrator",
"<",
"br",
"/",
">",
"jsmith",
"=",
"<",
"em",
">",
"jsmiths",
"password",
"<",
"/",
"em",
">",
"manager",
"engineer",
"employee",
"<",
"br",
"/",
">",
"abrown",
"=",
"<",
"em",
">",
"abrowns",
"password",
"<",
"/",
"em",
">",
"qa",
"employee",
"<",
"br",
"/",
">",
"djones",
"=",
"<",
"em",
">",
"djones",
"password",
"<",
"/",
"em",
">",
"qa",
"contractor",
"<",
"br",
"/",
">",
"guest",
"=",
"<",
"em",
">",
"guest",
"password",
"<",
"/",
"em",
">",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">"
]
| [
"this",
"user",
"definitions",
"=",
"user",
"definitions",
";"
]
|
[
"sets",
"a",
"newline",
"(",
"\\",
"n",
")",
"delimited",
"string",
"that",
"defines",
"role",
"-",
"to",
"-",
"permission",
"definitions",
"<",
"p",
"/",
">",
"<",
"p",
">",
"each",
"line",
"within",
"the",
"string",
"must",
"define",
"a",
"role",
"-",
"to",
"-",
"permission",
"(",
"s",
")",
"key",
"/",
"value",
"mapping",
"with",
"the",
"equals",
"character",
"signifies",
"the",
"key",
"/",
"value",
"separation",
"like",
"so",
":",
"<",
"/",
"p",
">",
"<",
"p",
"/",
">",
"<",
"p",
">",
"<",
"code",
">",
"<",
"em",
">",
"rolename",
"<",
"/",
"em",
">",
"=",
"<",
"em",
">",
"permission",
"definition",
"1",
"<",
"/",
"em",
">",
"<",
"em",
">",
"permission",
"definition",
"2",
"<",
"/",
"em",
">",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
"/",
">",
"<",
"p",
">",
"where",
"<",
"em",
">",
"permission",
"definition",
"<",
"/",
"em",
">",
"is",
"an",
"arbitrary",
"string",
"but",
"must",
"people",
"will",
"want",
"to",
"use",
"strings",
"that",
"conform",
"to",
"the",
"{",
"@",
"link",
"org",
"apache",
"shiro",
"authz",
"permission",
"wildcard",
"permission",
"wildcard",
"permission",
"}",
"format",
"for",
"ease",
"of",
"use",
"and",
"flexibility",
"note",
"that",
"if",
"an",
"individual",
"<",
"em",
">",
"permission",
"definition",
"<",
"/",
"em",
">",
"needs",
"to",
"be",
"internally",
"comma",
"-",
"delimited",
"(",
"e",
"g",
"<",
"code",
">",
"printer",
":",
"5th",
"floor",
":",
"print",
"info",
"<",
"/",
"code",
">",
")",
"you",
"will",
"need",
"to",
"surround",
"that",
"definition",
"with",
"double",
"quotes",
"(",
"&",
"quot",
";",
")",
"to",
"avoid",
"parsing",
"errors",
"(",
"e",
"g",
"<",
"code",
">",
"&",
"quot",
";",
"printer",
":",
"5th",
"floor",
":",
"print",
"info",
"&",
"quot",
";",
"<",
"/",
"code",
">",
")",
"<",
"p",
"/",
">",
"<",
"p",
">",
"<",
"b",
">",
"note",
":",
"<",
"/",
"b",
">",
"if",
"you",
"have",
"roles",
"that",
"don",
"t",
"require",
"permission",
"associations",
"don",
"t",
"include",
"them",
"in",
"this",
"definition",
"-",
"just",
"defining",
"the",
"role",
"name",
"in",
"the",
"{",
"@",
"link",
"#",
"set",
"user",
"definitions",
"(",
"string",
")",
"user",
"definitions",
"}",
"is",
"enough",
"to",
"create",
"the",
"role",
"if",
"it",
"does",
"not",
"yet",
"exist",
"this",
"property",
"is",
"really",
"only",
"for",
"configuring",
"realms",
"that",
"have",
"one",
"or",
"more",
"assigned",
"permission"
]
| [
"this",
"role",
"definitions",
"=",
"role",
"definitions",
";"
]
|
[
"returns",
"a",
"predicate",
"that",
"evaluates",
"whether",
"the",
"{"
]
| [
"return",
"new",
"bi",
"predicate",
"<",
"object",
",",
"throwable",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"test",
"(",
"object",
"t",
",",
"throwable",
"u",
")",
"{",
"return",
"result",
"=",
"=",
"null",
"?",
"t",
"=",
"=",
"null",
":",
"result",
"equals",
"(",
"t",
")",
";",
"}",
"}",
";"
]
|
[
"returns",
"a",
"predicate",
"that",
"returns",
"whether",
"any",
"of",
"the",
"{"
]
| [
"return",
"new",
"bi",
"predicate",
"<",
"object",
",",
"throwable",
">",
"(",
")",
"{",
"@",
"override",
"public",
"boolean",
"test",
"(",
"object",
"t",
",",
"throwable",
"u",
")",
"{",
"if",
"(",
"u",
"=",
"=",
"null",
")",
"return",
"false",
";",
"for",
"(",
"class",
"<",
"?",
"extends",
"throwable",
">",
"failure",
"type",
":",
"failures",
")",
"if",
"(",
"failure",
"type",
"is",
"assignable",
"from",
"(",
"u",
"get",
"class",
"(",
")",
")",
")",
"return",
"true",
";",
"return",
"false",
";",
"}",
"}",
";"
]
|
[
"convenience",
"method",
"to",
"set",
"this",
"bt",
"indexed",
"mesh",
"to",
"the",
"specified",
"{"
]
| [
"set",
"(",
"mesh",
",",
"mesh",
",",
"0",
",",
"mesh",
"get",
"num",
"indices",
"(",
")",
")",
";"
]
|
[
"convenience",
"method",
"to",
"set",
"this",
"bt",
"indexed",
"mesh",
"to",
"the",
"specified",
"{"
]
| [
"set",
"(",
"tag",
",",
"mesh",
",",
"0",
",",
"mesh",
"get",
"num",
"indices",
"(",
")",
")",
";"
]
|
[
"convenience",
"method",
"to",
"set",
"this",
"bt",
"indexed",
"mesh",
"to",
"the",
"specified",
"{"
]
| [
"set",
"(",
"null",
",",
"mesh",
",",
"offset",
",",
"count",
")",
";"
]
|
[
"convenience",
"method",
"to",
"set",
"this",
"bt",
"indexed",
"mesh",
"to",
"the",
"specified",
"vertex",
"and",
"index",
"data",
"the",
"specified",
"data",
"must",
"be",
"indexed",
"and",
"triangulated",
"and",
"must",
"outlive",
"this",
"bt",
"indexed",
"mesh"
]
| [
"set",
"(",
"null",
",",
"vertices",
",",
"size",
"in",
"bytes",
"of",
"each",
"vertex",
",",
"vertex",
"count",
",",
"position",
"offset",
"in",
"bytes",
",",
"indices",
",",
"index",
"offset",
",",
"index",
"count",
")",
";"
]
|
[
"convenience",
"method",
"to",
"set",
"this",
"bt",
"indexed",
"mesh",
"to",
"the",
"specified",
"vertex",
"and",
"index",
"data",
"the",
"specified",
"data",
"must",
"be",
"indexed",
"and",
"triangulated",
"and",
"must",
"outlive",
"this",
"bt",
"indexed",
"mesh"
]
| [
"set",
"vertices",
"(",
"vertices",
",",
"size",
"in",
"bytes",
"of",
"each",
"vertex",
",",
"vertex",
"count",
",",
"position",
"offset",
"in",
"bytes",
")",
";",
"set",
"indices",
"(",
"indices",
",",
"index",
"offset",
",",
"index",
"count",
")",
";",
"this",
"tag",
"=",
"tag",
";"
]
|
[
"{"
]
| [
"return",
"collections",
"singleton",
"map",
"(",
"new",
"job",
"(",
"ptr",
",",
"f",
"first",
"(",
"subgrid",
")",
")",
",",
"f",
"first",
"(",
"subgrid",
")",
")",
";"
]
|
[
"average",
"bitrate",
"in",
"bits",
"/",
"second",
"required",
"for",
"vbr",
"and",
"cbr",
"for",
"ms",
"smooth",
"outputs",
"bitrates",
"must",
"be",
"unique",
"when",
"rounded",
"down",
"to",
"the",
"nearest",
"multiple",
"of",
"1000"
]
| [
"set",
"bitrate",
"(",
"bitrate",
")",
";",
"return",
"this",
";"
]
|
[
"choose",
"adaptive",
"to",
"improve",
"subjective",
"video",
"quality",
"for",
"high",
"-",
"motion",
"content",
"this",
"will",
"cause",
"the",
"service",
"to",
"use",
"fewer",
"b",
"-",
"frames",
"(",
"which",
"infer",
"information",
"based",
"on",
"other",
"frames",
")",
"for",
"high",
"-",
"motion",
"portions",
"of",
"the",
"video",
"and",
"more",
"b",
"-",
"frames",
"for",
"low",
"-",
"motion",
"portions",
"the",
"maximum",
"number",
"of",
"b",
"-",
"frames",
"is",
"limited",
"by",
"the",
"value",
"you",
"provide",
"for",
"the",
"setting",
"b",
"frames",
"between",
"reference",
"frames",
"(",
"number",
"b",
"frames",
"between",
"reference",
"frames",
")"
]
| [
"set",
"dynamic",
"sub",
"gop",
"(",
"dynamic",
"sub",
"gop",
")",
";",
"return",
"this",
";"
]
|
[
"choose",
"adaptive",
"to",
"improve",
"subjective",
"video",
"quality",
"for",
"high",
"-",
"motion",
"content",
"this",
"will",
"cause",
"the",
"service",
"to",
"use",
"fewer",
"b",
"-",
"frames",
"(",
"which",
"infer",
"information",
"based",
"on",
"other",
"frames",
")",
"for",
"high",
"-",
"motion",
"portions",
"of",
"the",
"video",
"and",
"more",
"b",
"-",
"frames",
"for",
"low",
"-",
"motion",
"portions",
"the",
"maximum",
"number",
"of",
"b",
"-",
"frames",
"is",
"limited",
"by",
"the",
"value",
"you",
"provide",
"for",
"the",
"setting",
"b",
"frames",
"between",
"reference",
"frames",
"(",
"number",
"b",
"frames",
"between",
"reference",
"frames",
")"
]
| [
"this",
"dynamic",
"sub",
"gop",
"=",
"dynamic",
"sub",
"gop",
"to",
"string",
"(",
")",
";",
"return",
"this",
";"
]
|
[
"framerate",
"denominator"
]
| [
"set",
"framerate",
"denominator",
"(",
"framerate",
"denominator",
")",
";",
"return",
"this",
";"
]
|
[
"framerate",
"numerator",
"-",
"framerate",
"is",
"a",
"fraction",
"e",
"g",
"24000",
"/",
"1001",
"=",
"23",
"976",
"fps"
]
| [
"set",
"framerate",
"numerator",
"(",
"framerate",
"numerator",
")",
";",
"return",
"this",
";"
]
|
[
"frequency",
"of",
"closed",
"g",
"o",
"ps",
"in",
"streaming",
"applications",
"it",
"is",
"recommended",
"that",
"this",
"be",
"set",
"to",
"1",
"so",
"a",
"decoder",
"joining",
"mid",
"-",
"stream",
"will",
"receive",
"an",
"idr",
"frame",
"as",
"quickly",
"as",
"possible",
"setting",
"this",
"value",
"to",
"0",
"will",
"break",
"output",
"segmenting"
]
| [
"set",
"gop",
"closed",
"cadence",
"(",
"gop",
"closed",
"cadence",
")",
";",
"return",
"this",
";"
]
|
[
"gop",
"length",
"(",
"keyframe",
"interval",
")",
"in",
"frames",
"or",
"seconds",
"must",
"be",
"greater",
"than",
"zero"
]
| [
"set",
"gop",
"size",
"(",
"gop",
"size",
")",
";",
"return",
"this",
";"
]
|
[
"percentage",
"of",
"the",
"buffer",
"that",
"should",
"initially",
"be",
"filled",
"(",
"hrd",
"buffer",
"model",
")"
]
| [
"set",
"hrd",
"buffer",
"initial",
"fill",
"percentage",
"(",
"hrd",
"buffer",
"initial",
"fill",
"percentage",
")",
";",
"return",
"this",
";"
]
|
[
"size",
"of",
"buffer",
"(",
"hrd",
"buffer",
"model",
")",
"in",
"bits",
"for",
"example",
"enter",
"five",
"megabits",
"as",
"5000000"
]
| [
"set",
"hrd",
"buffer",
"size",
"(",
"hrd",
"buffer",
"size",
")",
";",
"return",
"this",
";"
]
|
[
"maximum",
"bitrate",
"in",
"bits",
"/",
"second",
"for",
"example",
"enter",
"five",
"megabits",
"per",
"second",
"as",
"5000000"
]
| [
"set",
"max",
"bitrate",
"(",
"max",
"bitrate",
")",
";",
"return",
"this",
";"
]
|
[
"enforces",
"separation",
"between",
"repeated",
"(",
"cadence",
")",
"i",
"-",
"frames",
"and",
"i",
"-",
"frames",
"inserted",
"by",
"scene",
"change",
"detection",
"if",
"a",
"scene",
"change",
"i",
"-",
"frame",
"is",
"within",
"i",
"-",
"interval",
"frames",
"of",
"a",
"cadence",
"i",
"-",
"frame",
"the",
"gop",
"is",
"shrunk",
"and",
"/",
"or",
"stretched",
"to",
"the",
"scene",
"change",
"i",
"-",
"frame",
"gop",
"stretch",
"requires",
"enabling",
"lookahead",
"as",
"well",
"as",
"setting",
"i",
"-",
"interval",
"the",
"normal",
"cadence",
"resumes",
"for",
"the",
"next",
"gop",
"this",
"setting",
"is",
"only",
"used",
"when",
"scene",
"change",
"detect",
"is",
"enabled",
"note",
":",
"maximum",
"gop",
"stretch",
"=",
"gop",
"size",
"+",
"min",
"-",
"i",
"-",
"interval",
"-",
"1"
]
| [
"set",
"min",
"i",
"interval",
"(",
"min",
"i",
"interval",
")",
";",
"return",
"this",
";"
]
|
[
"number",
"of",
"b",
"-",
"frames",
"between",
"reference",
"frames"
]
| [
"set",
"number",
"b",
"frames",
"between",
"reference",
"frames",
"(",
"number",
"b",
"frames",
"between",
"reference",
"frames",
")",
";",
"return",
"this",
";"
]
|
[
"pixel",
"aspect",
"ratio",
"denominator"
]
| [
"set",
"par",
"denominator",
"(",
"par",
"denominator",
")",
";",
"return",
"this",
";"
]
|
[
"pixel",
"aspect",
"ratio",
"numerator"
]
| [
"set",
"par",
"numerator",
"(",
"par",
"numerator",
")",
";",
"return",
"this",
";"
]
|
[
"softness",
"selects",
"quantizer",
"matrix",
"larger",
"values",
"reduce",
"high",
"-",
"frequency",
"content",
"in",
"the",
"encoded",
"image"
]
| [
"this",
"softness",
"=",
"softness",
";"
]
|
[
"softness",
"selects",
"quantizer",
"matrix",
"larger",
"values",
"reduce",
"high",
"-",
"frequency",
"content",
"in",
"the",
"encoded",
"image"
]
| [
"return",
"this",
"softness",
";"
]
|
[
"softness",
"selects",
"quantizer",
"matrix",
"larger",
"values",
"reduce",
"high",
"-",
"frequency",
"content",
"in",
"the",
"encoded",
"image"
]
| [
"set",
"softness",
"(",
"softness",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"[",
"required",
"]",
"the",
"string",
"identifier",
"of",
"the",
"associated",
"<",
"a",
">",
"rest",
"api",
"<",
"/",
"a",
">",
"<",
"/",
"p",
">"
]
| [
"set",
"rest",
"api",
"id",
"(",
"rest",
"api",
"id",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"current",
"pagination",
"position",
"in",
"the",
"paged",
"result",
"set",
"<",
"/",
"p",
">"
]
| [
"set",
"position",
"(",
"position",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"the",
"maximum",
"number",
"of",
"returned",
"results",
"per",
"page",
"the",
"default",
"value",
"is",
"25",
"and",
"the",
"maximum",
"value",
"is",
"500",
"<",
"/",
"p",
">"
]
| [
"set",
"limit",
"(",
"limit",
")",
";",
"return",
"this",
";"
]
|
[
"creates",
"a",
"stream",
"that",
"will",
"read",
"from",
"the",
"specified",
"{",
"@",
"link",
"random",
"access",
"file",
"}",
";",
"<",
"br",
">"
]
| [
"return",
"new",
"full",
"request",
"input",
"stream",
"(",
"new",
"buffered",
"input",
"stream",
"(",
"new",
"random",
"access",
"file",
"inputstream",
"(",
"raf",
")",
")",
")",
";"
]
|
[
"this",
"method",
"extracts",
"the",
"full",
"asf",
"-",
"header",
"from",
"the",
"given",
"file",
"<",
"br",
">",
"if",
"no",
"header",
"could",
"be",
"extracted",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"is",
"returned",
"<",
"br",
">"
]
| [
"final",
"input",
"stream",
"stream",
"=",
"new",
"file",
"input",
"stream",
"(",
"file",
")",
";",
"final",
"asf",
"header",
"result",
"=",
"full",
"reader",
"read",
"(",
"utils",
"read",
"g",
"u",
"i",
"d",
"(",
"stream",
")",
",",
"stream",
",",
"0",
")",
";",
"stream",
"close",
"(",
")",
";",
"return",
"result",
";"
]
|
[
"this",
"method",
"tries",
"to",
"extract",
"a",
"full",
"asf",
"-",
"header",
"out",
"of",
"the",
"given",
"stream",
"<",
"br",
">",
"if",
"no",
"header",
"could",
"be",
"extracted",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"is",
"returned",
"<",
"br",
">"
]
| [
"final",
"input",
"stream",
"stream",
"=",
"create",
"stream",
"(",
"file",
")",
";",
"return",
"full",
"reader",
"read",
"(",
"utils",
"read",
"g",
"u",
"i",
"d",
"(",
"stream",
")",
",",
"stream",
",",
"0",
")",
";"
]
|
[
"this",
"method",
"tries",
"to",
"extract",
"an",
"asf",
"-",
"header",
"out",
"of",
"the",
"given",
"stream",
"which",
"only",
"contains",
"information",
"about",
"the",
"audio",
"stream",
"<",
"br",
">",
"if",
"no",
"header",
"could",
"be",
"extracted",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"is",
"returned",
"<",
"br",
">"
]
| [
"final",
"input",
"stream",
"stream",
"=",
"create",
"stream",
"(",
"file",
")",
";",
"return",
"info",
"reader",
"read",
"(",
"utils",
"read",
"g",
"u",
"i",
"d",
"(",
"stream",
")",
",",
"stream",
",",
"0",
")",
";"
]
|
[
"this",
"method",
"tries",
"to",
"extract",
"an",
"asf",
"-",
"header",
"out",
"of",
"the",
"given",
"stream",
"which",
"only",
"contains",
"metadata",
"<",
"br",
">",
"if",
"no",
"header",
"could",
"be",
"extracted",
"<",
"code",
">",
"null",
"<",
"/",
"code",
">",
"is",
"returned",
"<",
"br",
">"
]
| [
"final",
"input",
"stream",
"stream",
"=",
"create",
"stream",
"(",
"file",
")",
";",
"return",
"tag",
"reader",
"read",
"(",
"utils",
"read",
"g",
"u",
"i",
"d",
"(",
"stream",
")",
",",
"stream",
",",
"0",
")",
";"
]
|
[
"sets",
"the",
"{",
"@",
"link",
"asf",
"ext",
"header",
"reader",
"}",
"which",
"is",
"to",
"be",
"used",
"when",
"an",
"header",
"extension",
"object",
"is",
"found"
]
| [
"for",
"(",
"final",
"guid",
"curr",
":",
"ext",
"reader",
"get",
"applying",
"ids",
"(",
")",
")",
"{",
"this",
"reader",
"map",
"put",
"(",
"curr",
",",
"ext",
"reader",
")",
";",
"}"
]
|
[
"get",
"current",
"value",
"of",
"the",
"max",
"balancer",
"bandwidth",
"in",
"bytes",
"per",
"second"
]
| [
"return",
"this",
"bandwidth",
";"
]
|
[
"<",
"p",
">",
"the",
"name",
"of",
"the",
"user",
"to",
"list",
"groups",
"for",
"<",
"/",
"p",
">",
"<",
"p",
">",
"this",
"parameter",
"allows",
"(",
"per",
"its",
"<",
"a",
"href",
"=",
"http",
":",
"/",
"/",
"wikipedia",
"org",
"/",
"wiki",
"/",
"regex",
">",
"regex",
"pattern",
"<",
"/",
"a",
">",
")",
"a",
"string",
"of",
"characters",
"consisting",
"of",
"upper",
"and",
"lowercase",
"alphanumeric",
"characters",
"with",
"no",
"spaces",
"you",
"can",
"also",
"include",
"any",
"of",
"the",
"following",
"characters",
":",
"+",
"=",
"@",
"-",
"<",
"/",
"p",
">"
]
| [
"set",
"user",
"name",
"(",
"user",
"name",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"use",
"this",
"parameter",
"only",
"when",
"paginating",
"results",
"and",
"only",
"after",
"you",
"receive",
"a",
"response",
"indicating",
"that",
"the",
"results",
"are",
"truncated",
"set",
"it",
"to",
"the",
"value",
"of",
"the",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"element",
"in",
"the",
"response",
"that",
"you",
"received",
"to",
"indicate",
"where",
"the",
"next",
"call",
"should",
"start",
"<",
"/",
"p",
">"
]
| [
"set",
"marker",
"(",
"marker",
")",
";",
"return",
"this",
";"
]
|
[
"<",
"p",
">",
"(",
"optional",
")",
"use",
"this",
"only",
"when",
"paginating",
"results",
"to",
"indicate",
"the",
"maximum",
"number",
"of",
"items",
"you",
"want",
"in",
"the",
"response",
"if",
"additional",
"items",
"exist",
"beyond",
"the",
"maximum",
"you",
"specify",
"the",
"<",
"code",
">",
"is",
"truncated",
"<",
"/",
"code",
">",
"response",
"element",
"is",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"<",
"/",
"p",
">",
"<",
"p",
">",
"if",
"you",
"do",
"not",
"include",
"this",
"parameter",
"it",
"defaults",
"to",
"100",
"note",
"that",
"iam",
"might",
"return",
"fewer",
"results",
"even",
"when",
"there",
"are",
"more",
"results",
"available",
"in",
"that",
"case",
"the",
"<",
"code",
">",
"is",
"truncated",
"<",
"/",
"code",
">",
"response",
"element",
"returns",
"<",
"code",
">",
"true",
"<",
"/",
"code",
">",
"and",
"<",
"code",
">",
"marker",
"<",
"/",
"code",
">",
"contains",
"a",
"value",
"to",
"include",
"in",
"the",
"subsequent",
"call",
"that",
"tells",
"the",
"service",
"where",
"to",
"continue",
"from",
"<",
"/",
"p",
">"
]
| [
"set",
"max",
"items",
"(",
"max",
"items",
")",
";",
"return",
"this",
";"
]
|
[
"combines",
"all",
"of",
"the",
"options",
"that",
"have",
"been",
"set",
"and",
"returns",
"a",
"new",
"notification",
"object"
]
| [
"public",
"abstract",
"notification",
"build",
"(",
")",
";"
]
|
[
"sets",
"the",
"title",
"text",
"of",
"the",
"notification"
]
| [
"m",
"title",
"=",
"limit",
"length",
"(",
"title",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"body",
"text",
"of",
"the",
"notification"
]
| [
"m",
"body",
"=",
"limit",
"length",
"(",
"body",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"origin",
"text",
"of",
"the",
"notification"
]
| [
"m",
"origin",
"=",
"limit",
"length",
"(",
"origin",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"text",
"that",
"is",
"displayed",
"in",
"the",
"status",
"bar",
"when",
"the",
"notification",
"first",
"arrives"
]
| [
"m",
"ticker",
"text",
"=",
"limit",
"length",
"(",
"ticker",
"text",
")",
";",
"return",
"this",
";"
]
|
[
"sets",
"the",
"content",
"image",
"to",
"be",
"prominently",
"displayed",
"when",
"the",
"notification",
"is",
"expanded"
]
| [
"m",
"image",
"=",
"image",
";",
"return",
"this",
";"
]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.