query stringlengths 7 33.1k | document stringlengths 7 335k | metadata dict | negatives listlengths 3 101 | negative_scores listlengths 3 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Notify delegate package of updates. | private void sendDelegationChangedBroadcast(String delegatePackage, ArrayList<String> scopes,
int userId) {
final Intent intent = new Intent(
DevicePolicyManager.ACTION_APPLICATION_DELEGATION_SCOPES_CHANGED);
// Only call receivers registered with Context#registerReceiver (do... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void notifyAdapters();",
"private void notifyUpdated() {\n if (mChanged) {\n mChanged = false;\n mObserver.onChanged(this);\n }\n }",
"@Override\n public void doUpdate(NotificationMessage notification) {\n \n }",
"@Override\n void notifys() {\n ... | [
"0.65018946",
"0.64262253",
"0.6402625",
"0.63613737",
"0.634033",
"0.6311158",
"0.62563664",
"0.6235545",
"0.62232393",
"0.6221429",
"0.61886245",
"0.61638236",
"0.6154933",
"0.61421084",
"0.61421084",
"0.61421084",
"0.61353034",
"0.61270577",
"0.6119934",
"0.6112396",
"0.60... | 0.0 | -1 |
If the caller is the credential management app, the alias provided must be contained in the aliases specified in the credential management app's authentication policy. | private boolean isAliasInCredentialManagementAppPolicy(CallerIdentity caller, String alias) {
return mInjector.binderWithCleanCallingIdentity(() -> {
try (KeyChainConnection connection = KeyChain.bindAsUser(mContext,
caller.getUserHandle())) {
// The policy will b... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setAlias(String alias);",
"public void setAlias(String alias)\n {\n this.alias = alias;\n }",
"@VisibleForTesting\n protected static String quoteAlias(String alias) {\n return String.format(\"`%s`\", alias);\n }",
"public void setAlias(String alias) {\r\n\t\tthis.alias = alias;\r\n\t}",... | [
"0.64521796",
"0.6435603",
"0.6207133",
"0.6188835",
"0.6078437",
"0.6063153",
"0.5980966",
"0.5966609",
"0.5913171",
"0.5870625",
"0.5870625",
"0.58507",
"0.58507",
"0.582975",
"0.582975",
"0.58250254",
"0.5812714",
"0.5803752",
"0.57839406",
"0.57570547",
"0.5748422",
"0.... | 0.7401717 | 0 |
Clears device wide policies enforced by COPE PO when relinquishing the device. This method should be invoked once the admin is gone, so that all methods that rely on calculating aggregate policy (e.g. strong auth timeout) from all admins aren't affected by its policies. This method assumes that there is no other device... | private void clearOrgOwnedProfileOwnerDeviceWidePolicies(@UserIdInt int parentId) {
Slogf.i(LOG_TAG, "Cleaning up device-wide policies left over from org-owned profile...");
// Lockscreen message
mLockPatternUtils.setDeviceOwnerInfo(null);
// Wifi config lockdown
mInjector.settin... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearPolicy() {\n policy = new Policy();\n }",
"private void removePolicy(){\n\texcludedPermissions = null;\n\tuncheckedPermissions = null;\n\trolePermissionsTable = null;\n\tremovePolicyFile(true);\n\tremovePolicyFile(false);\n\tremovePolicyContextDirectory();\n\tinitLinkTable();\n\tpolicy = null... | [
"0.6384813",
"0.6157552",
"0.59881103",
"0.5936069",
"0.5819911",
"0.5610534",
"0.5506816",
"0.54967993",
"0.54169655",
"0.5325335",
"0.5287346",
"0.524153",
"0.5180361",
"0.5176085",
"0.517277",
"0.5151018",
"0.51449513",
"0.51346344",
"0.5127466",
"0.5120604",
"0.5095426",
... | 0.72093385 | 0 |
Shouldn't be called from binder thread without clearing identity. | private void notifyResetProtectionPolicyChanged(int frpManagementAgentUid) {
final Intent intent = new Intent(
DevicePolicyManager.ACTION_RESET_PROTECTION_POLICY_CHANGED).addFlags(
Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND | Intent.FLAG_RECEIVER_FOREGROUND);
mContext.sendBr... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void reset() {\n Castle.userId(null);\n Castle.flush();\n }",
"private void clearUserId() {\n\n userId_ = 0L;\n }",
"private void clearUserId() {\n \n userId_ = getDefaultInstance().getUserId();\n }",
"private void clearUserId() {\n \n userId_ = 0L;\n... | [
"0.5953741",
"0.5837828",
"0.58227634",
"0.5812981",
"0.57656646",
"0.5699409",
"0.5611316",
"0.560369",
"0.560369",
"0.560369",
"0.560369",
"0.560369",
"0.560369",
"0.5587962",
"0.55733985",
"0.55286914",
"0.5525073",
"0.5525073",
"0.5525073",
"0.5525073",
"0.5525073",
"0.... | 0.0 | -1 |
Send lost mode location updates recursively, in order of the list of location providers. | private void tryRetrieveAndSendLocationUpdate(ActiveAdmin admin,
AndroidFuture<Boolean> future, String[] providers, int index) {
// None of the providers were able to get location, return false
if (index == providers.length) {
future.complete(false);
return;
}... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void sendLastLocation() {\n\t\tif (listeners.size() == 0)\n\t\t\treturn;\n\n\t\tLocation locationToSend = getLastKnownLocation();\n\n\t\tif (locationToSend != null) {\n\t\t\toldLocation = locationToSend;\n\t\t\tfor(Listener ls: listeners){\n\t\t\t\tls.newLocation(locationToSend);\n\t\t\t}\n\t\t\tlog.debug(\... | [
"0.6791469",
"0.60862875",
"0.6075087",
"0.6003738",
"0.5997694",
"0.5978504",
"0.59375936",
"0.588516",
"0.5879477",
"0.58512485",
"0.58226496",
"0.5779559",
"0.57581306",
"0.57374257",
"0.5702448",
"0.56809413",
"0.56772155",
"0.5658989",
"0.56550735",
"0.56416005",
"0.5635... | 0.6550144 | 1 |
Called any time the device password is updated. Resets all password expiration clocks. | private Set<Integer> updatePasswordExpirationsLocked(int userHandle) {
final ArraySet<Integer> affectedUserIds = new ArraySet<>();
List<ActiveAdmin> admins = getActiveAdminsForLockscreenPoliciesLocked(userHandle);
for (int i = 0; i < admins.size(); i++) {
ActiveAdmin admin = admins.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void resetPattenIfNeeded() {\n if (KeyguardCfg.isBackupPinEnabled() && getSecurityMode() == SecurityMode.PIN && this.mLockPatternUtils.isLockPatternEnabled(KeyguardUpdateMonitor.getCurrentUser())) {\n Intent ai = new Intent(\"com.android.settings.action.HW_RESET_NEW_PASSWORD\");\n ... | [
"0.71537614",
"0.66784126",
"0.66784126",
"0.6665864",
"0.655276",
"0.64746094",
"0.6416589",
"0.62134075",
"0.61707366",
"0.6146437",
"0.6004132",
"0.5973424",
"0.59733117",
"0.5956227",
"0.59477866",
"0.59436935",
"0.5906571",
"0.5898831",
"0.5840777",
"0.5800135",
"0.57947... | 0.0 | -1 |
Returns which user should be wiped if this admin's maximum filed password attempts policy is violated. | private int getUserIdToWipeForFailedPasswords(ActiveAdmin admin) {
final int userId = admin.getUserHandle().getIdentifier();
final ComponentName component = admin.info.getComponent();
return isProfileOwnerOfOrganizationOwnedDevice(component, userId)
? getProfileParentId(userId) :... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int getFailThreshold() {\n\t\t\treturn getContext().getIntegerParameter(\"max_password_fails\",0);\n\t\t}",
"private long getPasswordExpirationLocked(ComponentName who, int userHandle, boolean parent) {\n long timeout = 0L;\n\n if (who != null) {\n ActiveAdmin admin = getActiveAd... | [
"0.58187485",
"0.5717573",
"0.5672098",
"0.56511897",
"0.5411109",
"0.53873545",
"0.53602993",
"0.5248017",
"0.52198994",
"0.52178246",
"0.51978916",
"0.5197447",
"0.5188745",
"0.5177115",
"0.5170385",
"0.5162452",
"0.51465786",
"0.51380944",
"0.51337445",
"0.5119817",
"0.511... | 0.6637912 | 0 |
Get the current storage encryption request status for a given admin, or aggregate of all active admins. | @Override
public boolean getStorageEncryption(@Nullable ComponentName who, int userHandle) {
if (!mHasFeature) {
return false;
}
Preconditions.checkArgumentNonnegative(userHandle, "Invalid userId");
final CallerIdentity caller = getCallerIdentity(who);
Preconditi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Integer getAdminStatus() {\n return adminStatus;\n }",
"public static ArrayList<Admin> getLockedAdmin() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_ADMINS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Admin> adminBloccati = (ArrayList<Admin... | [
"0.6234349",
"0.5688632",
"0.56305265",
"0.55903554",
"0.55705285",
"0.5416284",
"0.5403619",
"0.5390264",
"0.53482574",
"0.533278",
"0.5297177",
"0.52864754",
"0.524834",
"0.5220254",
"0.51998657",
"0.5188035",
"0.51641387",
"0.51331174",
"0.5130695",
"0.5125069",
"0.5124076... | 0.5269904 | 12 |
Get the current encryption status of the device. | @Override
public int getStorageEncryptionStatus(@Nullable String callerPackage, int userHandle) {
if (!mHasFeature) {
// Ok to return current status.
}
Preconditions.checkArgumentNonnegative(userHandle, "Invalid userId");
final CallerIdentity caller = getCallerIdentity(c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getEncryptionMode() {\n return this.encryptionMode;\n }",
"public TransparentDataEncryptionActivityStates status() {\n return this.status;\n }",
"public Encryption encryption() {\n return this.encryption;\n }",
"public Encryption getEncryption() {\n return t... | [
"0.6860782",
"0.67151046",
"0.6710012",
"0.66799086",
"0.66799086",
"0.65119237",
"0.65119237",
"0.6376724",
"0.6354523",
"0.6191477",
"0.61206925",
"0.60379666",
"0.6018512",
"0.5911308",
"0.589882",
"0.5857051",
"0.57673836",
"0.57466024",
"0.57466024",
"0.5736569",
"0.5611... | 0.60330486 | 12 |
Hook to lowlevels: This should report if the filesystem supports encrypted storage. | private boolean isEncryptionSupported() {
// Note, this can be implemented as
// return getEncryptionStatus() != DevicePolicyManager.ENCRYPTION_STATUS_UNSUPPORTED;
// But is provided as a separate internal method if there's a faster way to do a
// simple check for supported-or-not.
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isStorageDeviceProtected() { throw new RuntimeException(\"Stub!\"); }",
"public boolean isLocalEncrypted();",
"public boolean isMediaEncryptionMandatory();",
"public boolean isExternalStorageEmulated() throws RemoteException;",
"boolean needsStoragePermission();",
"public boolean isExterna... | [
"0.67157465",
"0.63579345",
"0.628532",
"0.6267814",
"0.617642",
"0.6099195",
"0.6005261",
"0.58864814",
"0.58135986",
"0.57433766",
"0.57399726",
"0.5679214",
"0.5651797",
"0.56293416",
"0.5625475",
"0.5587127",
"0.55691946",
"0.55576944",
"0.5555351",
"0.5555351",
"0.555535... | 0.63115495 | 2 |
Hook to lowlevels: If needed, record the new admin setting for encryption. | private void setEncryptionRequested(boolean encrypt) {
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static SecretKey getAdminLoggingKey() {\n return adminLoggingKey;\n }",
"public void setAdminLevel(int adminLevel)\n\t{\n\t\tm_adminLevel = adminLevel;\n\t}",
"public static void ulogujSeKaoAdmin() {\r\n\t\tprikazIProveraSifre(-2, 'a');\r\n\t}",
"@Override\n\tpublic Admin saveAdmin(Admin adm... | [
"0.5917742",
"0.5864366",
"0.57745326",
"0.57553744",
"0.56419754",
"0.56364614",
"0.5629903",
"0.5593769",
"0.55885",
"0.55417323",
"0.54943675",
"0.5476261",
"0.54571927",
"0.5431617",
"0.5358678",
"0.53448653",
"0.53423476",
"0.53307027",
"0.5306423",
"0.52959996",
"0.5287... | 0.5216448 | 27 |
Set whether the screen capture is disabled for the user managed by the specified admin. | @Override
public void setScreenCaptureDisabled(ComponentName who, boolean disabled, boolean parent) {
if (!mHasFeature) {
return;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
if (parent) {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pushScreenCapturePolicy(int adminUserId) {\n // Update screen capture device-wide if disabled by the DO or COPE PO on the parent profile.\n ActiveAdmin admin =\n getDeviceOwnerOrProfileOwnerOfOrganizationOwnedDeviceParentLocked(\n UserHandle.USER_SYS... | [
"0.68151575",
"0.6771453",
"0.62736565",
"0.6196868",
"0.6169864",
"0.6113645",
"0.585639",
"0.5781136",
"0.5778047",
"0.57367015",
"0.5701253",
"0.5690525",
"0.5672958",
"0.5627386",
"0.5574932",
"0.5551538",
"0.5539466",
"0.5518521",
"0.54981655",
"0.54713374",
"0.5471119",... | 0.67391765 | 2 |
Push the screen capture policy for a given userId. If screen capture is disabled by the DO or COPE PO on the parent profile, then this takes precedence as screen capture will be disabled devicewide. | private void pushScreenCapturePolicy(int adminUserId) {
// Update screen capture device-wide if disabled by the DO or COPE PO on the parent profile.
ActiveAdmin admin =
getDeviceOwnerOrProfileOwnerOfOrganizationOwnedDeviceParentLocked(
UserHandle.USER_SYSTEM);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void setScreenCaptureDisabled(int userHandle) {\n int current = mPolicyCache.getScreenCaptureDisallowedUser();\n if (userHandle == current) {\n return;\n }\n mPolicyCache.setScreenCaptureDisallowedUser(userHandle);\n updateScreenCaptureDisabled();\n }",
"p... | [
"0.5668691",
"0.5104358",
"0.50262195",
"0.4979243",
"0.48851267",
"0.48200083",
"0.47510368",
"0.4696482",
"0.46822107",
"0.46281978",
"0.4617798",
"0.45938012",
"0.45501482",
"0.45378634",
"0.4534165",
"0.44847482",
"0.44752857",
"0.44552812",
"0.44271347",
"0.44224086",
"0... | 0.7979549 | 0 |
Set the latest screen capture policy, overriding any existing ones. userHandle can be one of USER_ALL, USER_NULL or a concrete userId. | private void setScreenCaptureDisabled(int userHandle) {
int current = mPolicyCache.getScreenCaptureDisallowedUser();
if (userHandle == current) {
return;
}
mPolicyCache.setScreenCaptureDisallowedUser(userHandle);
updateScreenCaptureDisabled();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pushScreenCapturePolicy(int adminUserId) {\n // Update screen capture device-wide if disabled by the DO or COPE PO on the parent profile.\n ActiveAdmin admin =\n getDeviceOwnerOrProfileOwnerOfOrganizationOwnedDeviceParentLocked(\n UserHandle.USER_SYS... | [
"0.65209264",
"0.52492577",
"0.5117017",
"0.5030937",
"0.49792176",
"0.49108264",
"0.47825155",
"0.47731966",
"0.4675532",
"0.46379474",
"0.4624825",
"0.4593013",
"0.45799714",
"0.44751585",
"0.44721013",
"0.44530636",
"0.44378257",
"0.4434803",
"0.44266465",
"0.44222558",
"0... | 0.73987037 | 0 |
Returns whether or not screen capture is disabled for a given admin, or disabled for any active admin (if given admin is null). | @Override
public boolean getScreenCaptureDisabled(ComponentName who, int userHandle, boolean parent) {
if (!mHasFeature) {
return false;
}
final CallerIdentity caller = getCallerIdentity(who);
Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHa... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void pushScreenCapturePolicy(int adminUserId) {\n // Update screen capture device-wide if disabled by the DO or COPE PO on the parent profile.\n ActiveAdmin admin =\n getDeviceOwnerOrProfileOwnerOfOrganizationOwnedDeviceParentLocked(\n UserHandle.USER_SYS... | [
"0.5985601",
"0.597104",
"0.5936648",
"0.5936648",
"0.59047484",
"0.58968705",
"0.56906277",
"0.5670439",
"0.56634545",
"0.5640863",
"0.5618182",
"0.5561392",
"0.5533",
"0.55086875",
"0.55005306",
"0.54999655",
"0.5499958",
"0.54704857",
"0.54252493",
"0.5384646",
"0.5345491"... | 0.53948534 | 19 |
Set whether auto time is required by the specified admin (must be device or profile owner). | @Override
public void setAutoTimeRequired(ComponentName who, boolean required) {
if (!mHasFeature) {
return;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
boolean requireAutoTimeChanged = false;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean getAutoTimeRequired() {\n if (!mHasFeature) {\n return false;\n }\n synchronized (getLockObject()) {\n ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();\n if (deviceOwner != null && deviceOwner.requireAutoTime) {\n ... | [
"0.6559516",
"0.6466412",
"0.6440295",
"0.64055073",
"0.63616025",
"0.6346323",
"0.63184035",
"0.62999624",
"0.595301",
"0.5928669",
"0.5928669",
"0.5761203",
"0.5759013",
"0.57136226",
"0.5668065",
"0.5659146",
"0.5653462",
"0.5625264",
"0.5536334",
"0.5499308",
"0.5444735",... | 0.7514615 | 0 |
Returns whether or not auto time is required by the device owner or any profile owner. | @Override
public boolean getAutoTimeRequired() {
if (!mHasFeature) {
return false;
}
synchronized (getLockObject()) {
ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();
if (deviceOwner != null && deviceOwner.requireAutoTime) {
// If the... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean getAutoTimeEnabled(ComponentName who) {\n if (!mHasFeature) {\n return false;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n\n final CallerIdentity caller = getCallerIdentity(who);\n Preconditions.checkCallAuthorization(is... | [
"0.74359465",
"0.6800562",
"0.6800562",
"0.66322124",
"0.66322124",
"0.66094434",
"0.66094434",
"0.64251363",
"0.6420746",
"0.6413147",
"0.6411815",
"0.64022255",
"0.6347201",
"0.61961913",
"0.6165356",
"0.61651313",
"0.6135657",
"0.6033979",
"0.60337347",
"0.60179675",
"0.60... | 0.8783926 | 0 |
Set whether auto time is enabled on the device. | @Override
public void setAutoTimeEnabled(ComponentName who, boolean enabled) {
if (!mHasFeature) {
return;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
Preconditions.checkCallAuthorization(isProfile... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void setAuto(boolean auto);",
"void setAuto(boolean auto);",
"@Override\n public void setAutoTimeRequired(ComponentName who, boolean required) {\n if (!mHasFeature) {\n return;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n final CallerIdentity caller ... | [
"0.7108379",
"0.7108379",
"0.7056181",
"0.6345685",
"0.6334669",
"0.6328155",
"0.6295756",
"0.6249227",
"0.61471766",
"0.6096314",
"0.6082964",
"0.6069359",
"0.60098577",
"0.6009043",
"0.6009043",
"0.6009043",
"0.6009043",
"0.5946364",
"0.5933509",
"0.5883327",
"0.58620185",
... | 0.742181 | 0 |
Returns whether auto time is used on the device or not. | @Override
public boolean getAutoTimeEnabled(ComponentName who) {
if (!mHasFeature) {
return false;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
Preconditions.checkCallAuthorization(isProfileOwnerOnU... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasUseTime();",
"boolean hasUseTime();",
"@Override\n public boolean getAutoTimeRequired() {\n if (!mHasFeature) {\n return false;\n }\n synchronized (getLockObject()) {\n ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();\n if (deviceOwner !... | [
"0.7716422",
"0.7716422",
"0.76502967",
"0.73793095",
"0.73793095",
"0.71862566",
"0.7166612",
"0.7166612",
"0.69591844",
"0.67813593",
"0.67336273",
"0.6624114",
"0.66159844",
"0.6589529",
"0.6531636",
"0.6512322",
"0.6509303",
"0.6486903",
"0.6461154",
"0.6431994",
"0.63923... | 0.73158306 | 5 |
Set whether auto time zone is enabled on the device. | @Override
public void setAutoTimeZoneEnabled(ComponentName who, boolean enabled) {
if (!mHasFeature) {
return;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
Preconditions.checkCallAuthorization(isPro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@NoProxy\n @NoWrap\n public void setForceUTC(final boolean val) {\n forceUTC = val;\n }",
"@Override\n public boolean getAutoTimeZoneEnabled(ComponentName who) {\n if (!mHasFeature) {\n return false;\n }\n Objects.requireNonNull(who, \"ComponentName is null\");\n\n ... | [
"0.67115885",
"0.66738844",
"0.6327029",
"0.6327029",
"0.6257659",
"0.6122979",
"0.59750706",
"0.5968426",
"0.5964946",
"0.5952145",
"0.58950526",
"0.58628845",
"0.57901174",
"0.57901174",
"0.5699834",
"0.56872463",
"0.5610083",
"0.5584478",
"0.55751246",
"0.556956",
"0.55438... | 0.7434442 | 0 |
Returns whether auto time zone is used on the device or not. | @Override
public boolean getAutoTimeZoneEnabled(ComponentName who) {
if (!mHasFeature) {
return false;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
Preconditions.checkCallAuthorization(isProfileOwne... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean getAutoTimeRequired() {\n if (!mHasFeature) {\n return false;\n }\n synchronized (getLockObject()) {\n ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();\n if (deviceOwner != null && deviceOwner.requireAutoTime) {\n ... | [
"0.647754",
"0.6464757",
"0.6460526",
"0.6460526",
"0.64240956",
"0.6330927",
"0.63039947",
"0.62628555",
"0.623184",
"0.6138773",
"0.611225",
"0.6066988",
"0.6044726",
"0.59989995",
"0.5998811",
"0.59281886",
"0.59281886",
"0.58856225",
"0.585706",
"0.5815056",
"0.5812676",
... | 0.75880265 | 0 |
TODO (b/137101239): remove this method in followup CL since it's only used for split system user. | @Override
public void setForceEphemeralUsers(ComponentName who, boolean forceEphemeralUsers) {
throw new UnsupportedOperationException("This method was used by split system user only.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUser();",
"@Override\n\tpublic void GetServerUser() {\n\n\t}",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n ... | [
"0.6646569",
"0.6565442",
"0.65326285",
"0.65326285",
"0.65326285",
"0.6455671",
"0.62635446",
"0.62635446",
"0.6230142",
"0.62000823",
"0.6152936",
"0.6109236",
"0.5975346",
"0.5973812",
"0.5960427",
"0.59197927",
"0.59197927",
"0.59197927",
"0.59011334",
"0.58990824",
"0.58... | 0.0 | -1 |
TODO (b/137101239): remove this method in followup CL since it's only used for split system user. | @Override
public boolean getForceEphemeralUsers(ComponentName who) {
throw new UnsupportedOperationException("This method was used by split system user only.");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.lang.String getUser();",
"@Override\n\tpublic void GetServerUser() {\n\n\t}",
"public java.lang.String getUser(){\r\n return localUser;\r\n }",
"public java.lang.String getUser(){\r\n return localUser;\r\n ... | [
"0.6646569",
"0.6565442",
"0.65326285",
"0.65326285",
"0.65326285",
"0.6455671",
"0.62635446",
"0.62635446",
"0.6230142",
"0.62000823",
"0.6152936",
"0.6109236",
"0.5975346",
"0.5973812",
"0.5960427",
"0.59197927",
"0.59197927",
"0.59197927",
"0.59011334",
"0.58990824",
"0.58... | 0.56350833 | 48 |
Disables all device cameras according to the specified admin. | @Override
public void setCameraDisabled(ComponentName who, boolean disabled, boolean parent) {
if (!mHasFeature) {
return;
}
Objects.requireNonNull(who, "ComponentName is null");
final CallerIdentity caller = getCallerIdentity(who);
if (parent) {
Prec... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void disablecameraLights(){\n \tcamLights.set(true);\n }",
"private void turnOffCamera() {\n playSound();\n preview.removeAllViews();\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(params);\n ... | [
"0.64278024",
"0.5956969",
"0.58467317",
"0.5702058",
"0.5662311",
"0.5618503",
"0.5535701",
"0.55089533",
"0.5467378",
"0.5452554",
"0.5427883",
"0.5397837",
"0.5365021",
"0.5364066",
"0.5343674",
"0.5332698",
"0.53152514",
"0.5308484",
"0.5271959",
"0.5239406",
"0.52219594"... | 0.5093031 | 32 |
Gets whether or not all device cameras are disabled for a given admin, or disabled for any active admins. | @Override
public boolean getCameraDisabled(ComponentName who, int userHandle, boolean parent) {
if (!mHasFeature) {
return false;
}
final CallerIdentity caller = getCallerIdentity(who);
Preconditions.checkCallAuthorization(hasFullCrossUsersPermission(caller, userHandle))... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isAdmin() {\r\n return admin;\r\n }",
"public boolean isAdmin()\n {\n return admin;\n }",
"public boolean isAdmin()\n {\n return admin;\n }",
"public boolean isIsAdmin() {\r\n return isAdmin;\r\n }",
"public boolean isAdmin() {\n return ad... | [
"0.53163",
"0.5310487",
"0.5310487",
"0.5305441",
"0.5298904",
"0.52936304",
"0.52537555",
"0.51996833",
"0.51964086",
"0.51886725",
"0.51868385",
"0.51353866",
"0.5097122",
"0.5070235",
"0.50630045",
"0.50437766",
"0.5040494",
"0.5037329",
"0.50182474",
"0.4945109",
"0.49111... | 0.5861602 | 0 |
Gets the disabled state for features in keyguard for the given admin, or the aggregate of all active admins if who is null. This API is cached: invalidate with invalidateBinderCaches(). | @Override
public int getKeyguardDisabledFeatures(ComponentName who, int userHandle, boolean parent) {
if (!mHasFeature) {
return 0;
}
Preconditions.checkArgumentNonnegative(userHandle, "Invalid userId");
final CallerIdentity caller = getCallerIdentity();
Precondi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static ArrayList<Admin> getLockedAdmin() {\n\t\tRequestContent rp = new RequestContent();\n\t\trp.type = RequestType.GET_LOCKED_ADMINS;\n\t\tReceiveContent rpp = sendReceive(rp);\n\t\tArrayList<Admin> adminBloccati = (ArrayList<Admin>) rpp.parameters[0];\n\t\treturn adminBloccati;\n\t}",
"public boolean g... | [
"0.6081325",
"0.5915418",
"0.57620966",
"0.57331145",
"0.57309467",
"0.5729699",
"0.5729699",
"0.5696796",
"0.5681739",
"0.5660217",
"0.5646334",
"0.56225854",
"0.5602682",
"0.5597006",
"0.557593",
"0.55742323",
"0.5469153",
"0.5466306",
"0.5460156",
"0.54352015",
"0.5427425"... | 0.5446572 | 19 |
This API is cached: invalidate with invalidateBinderCaches(). | @Override
public boolean hasDeviceOwner() {
final CallerIdentity caller = getCallerIdentity();
Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)
|| canManageUsers(caller) || isFinancedDeviceOwner(caller)
|| hasCallingOrSelfPermission(pe... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n t... | [
"0.8095534",
"0.60156465",
"0.5793735",
"0.5773701",
"0.5755453",
"0.5696039",
"0.5686666",
"0.5680754",
"0.56761426",
"0.5641331",
"0.5636237",
"0.5635864",
"0.5630962",
"0.5612507",
"0.5594647",
"0.54873353",
"0.54346234",
"0.5429686",
"0.54236144",
"0.5403826",
"0.5377821"... | 0.0 | -1 |
Checks if the app uid provided is the profile owner. This method should only be called if no componentName is available. | private boolean isUidProfileOwnerLocked(int appUid) {
ensureLocked();
final int userId = UserHandle.getUserId(appUid);
final ComponentName profileOwnerComponent = mOwners.getProfileOwnerComponent(userId);
if (profileOwnerComponent == null) {
return false;
}
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean hasDeviceOwner() {\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller)\n || hasCallingOrSelfPer... | [
"0.65836895",
"0.6109297",
"0.59961617",
"0.5994578",
"0.5958953",
"0.5941229",
"0.59123254",
"0.5891666",
"0.58882",
"0.5816269",
"0.58141893",
"0.5782375",
"0.5773202",
"0.5750855",
"0.5744769",
"0.5726823",
"0.5690389",
"0.5658545",
"0.5646916",
"0.5646916",
"0.5569828",
... | 0.7248761 | 0 |
Returns the "name" of the device owner. It'll work for nonDO users too, but requires MANAGE_USERS. | @Override
public String getDeviceOwnerName() {
if (!mHasFeature) {
return null;
}
Preconditions.checkCallAuthorization(canManageUsers(getCallerIdentity())
|| hasCallingOrSelfPermission(permission.MANAGE_PROFILE_AND_DEVICE_OWNERS));
synchronized (getLockOb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public CharSequence getDeviceOwnerOrganizationName() {\n if (!mHasFeature) {\n return null;\n }\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) |... | [
"0.74685514",
"0.7350973",
"0.73282844",
"0.7295675",
"0.7287447",
"0.7265206",
"0.7231005",
"0.719449",
"0.719449",
"0.7179186",
"0.7106322",
"0.71047217",
"0.7093556",
"0.70125425",
"0.6953178",
"0.69501",
"0.68748075",
"0.68669647",
"0.68668854",
"0.68367594",
"0.68257874"... | 0.83057445 | 0 |
Changing app restrictions involves disk IO, offload it to the background thread. | private void clearApplicationRestrictions(int userId) {
mBackgroundHandler.post(() -> {
final List<PackageInfo> installedPackageInfos = mInjector.getPackageManager(userId)
.getInstalledPackages(MATCH_DIRECT_BOOT_AWARE | MATCH_DIRECT_BOOT_UNAWARE);
final UserHandle use... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void enforcePermission() {\n\t\tif (context.checkCallingPermission(\"com.marakana.permission.FIB_SLOW\") == PackageManager.PERMISSION_DENIED) {\n\t\t\tSecurityException e = new SecurityException(\"Not allowed to use the slow algorithm\");\n\t\t\tLog.e(\"FibService\", \"Not allowed to use the slow algorithm... | [
"0.6056504",
"0.5519864",
"0.545555",
"0.5428862",
"0.5376036",
"0.53548735",
"0.5333325",
"0.5317982",
"0.5299904",
"0.5279775",
"0.5246976",
"0.52047384",
"0.5189772",
"0.5154435",
"0.50620365",
"0.49822807",
"0.4959023",
"0.49432543",
"0.49299493",
"0.49258083",
"0.4925601... | 0.473564 | 43 |
Reset some of the userspecific policies. | private void clearUserPoliciesLocked(int userId) {
final DevicePolicyData policy = getUserData(userId);
policy.mPermissionPolicy = DevicePolicyManager.PERMISSION_POLICY_PROMPT;
// Clear delegations.
policy.mDelegationMap.clear();
policy.mStatusBarDisabled = false;
policy.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void clearPolicy() {\n policy = new Policy();\n }",
"public void resetAll() {\n triggered = false;\n classBlacklist.clear();\n policies.clear();\n protectedFiles.clear();\n System.setSecurityManager(defaultSecurityManager);\n }",
"private void removePolicy(){\n\t... | [
"0.6792308",
"0.6763785",
"0.6345537",
"0.60291857",
"0.59919286",
"0.59493506",
"0.59270954",
"0.5887265",
"0.58586836",
"0.5847552",
"0.58463603",
"0.58397686",
"0.57927406",
"0.5783679",
"0.5716403",
"0.5711358",
"0.57035536",
"0.5700874",
"0.5692869",
"0.56513673",
"0.564... | 0.6135149 | 3 |
This checks only if the Setup Wizard has run. Since Wear devices pair before completing Setup Wizard, and pairing involves transferring user data, calling logic may want to check mIsWatch or mPaired in addition to hasUserSetupCompleted(). | private boolean hasUserSetupCompleted(int userHandle) {
if (!mHasFeature) {
return true;
}
return mInjector.hasUserSetupCompleted(getUserData(userHandle));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean isSetupDone();",
"public boolean checkSetup(){\n return checkSetup(folderName);\n }",
"public static boolean isSetup() {\n return setup;\n }",
"public boolean isStartSetupwizard() {\n\t\treturn sp.getBoolean(\"firstTimePowerOn\", true);\n\t}",
"public boolean needSetup() {\n\t\treturn... | [
"0.7187266",
"0.68066144",
"0.65836716",
"0.64874303",
"0.6473548",
"0.6457389",
"0.6422168",
"0.6394318",
"0.63458574",
"0.6304621",
"0.6261561",
"0.62420446",
"0.6207328",
"0.61946696",
"0.59707665",
"0.591567",
"0.5893544",
"0.5891919",
"0.5875007",
"0.58356684",
"0.578471... | 0.62192696 | 12 |
Valid transitions for normal usecases. | private void checkUserProvisioningStateTransition(int currentState, int newState) {
switch (currentState) {
case DevicePolicyManager.STATE_USER_UNMANAGED:
// Can move to any state from unmanaged (except itself as an edge case)..
if (newState != DevicePolicyManager.STA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private static void _VerifyAllowedTransition(short oldState, short newState){\r\n\t\tswitch (oldState){\r\n\t\t\tcase STATE_INSTALLED: {\r\n\t\t\t\tif (newState == STATE_SELECTED) {break;}\r\n\t\t\t\tif (newState == STATE_BLOCKED) {break;}\r\n\r\n\t\t\t\tthrow new RuntimeException(\"State transition is not allowed... | [
"0.6769005",
"0.6440032",
"0.6091615",
"0.59634763",
"0.5940536",
"0.5915285",
"0.5915285",
"0.5885931",
"0.5881413",
"0.5873416",
"0.58531576",
"0.58232677",
"0.57664144",
"0.5761839",
"0.5726039",
"0.5696633",
"0.5687256",
"0.56423974",
"0.56265604",
"0.5608192",
"0.5585019... | 0.5783227 | 12 |
Returns the active profile owner for this user or null if the current user has no profile owner. | @VisibleForTesting
ActiveAdmin getProfileOwnerAdminLocked(int userHandle) {
ComponentName profileOwner = mOwners.getProfileOwnerComponent(userHandle);
if (profileOwner == null) {
return null;
}
DevicePolicyData policy = getUserData(userHandle);
final int n = polic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@objid (\"d7af9849-7951-4020-8339-9057fcec6b89\")\n Profile getOwnerProfile();",
"User getOwner();",
"public CorporateUser getCandidateOwner() {\n\t\tif (candidateOwner == null) {\n\t\t\tsetCandidateOwner(findCorporateUser(getCandidate().getOwner().getId()));\n\t\t}\n\t\treturn candidateOwner;\n\t}",
"pub... | [
"0.73084474",
"0.66102606",
"0.65630853",
"0.6458499",
"0.6449959",
"0.6409845",
"0.62262565",
"0.6215865",
"0.6208317",
"0.6191952",
"0.6155325",
"0.6088174",
"0.6050195",
"0.5986032",
"0.5974815",
"0.59574103",
"0.59146494",
"0.59137857",
"0.59105366",
"0.58992213",
"0.5895... | 0.58354694 | 24 |
Returns the ActiveAdmin associated with the PO or DO on the given user. | private @Nullable ActiveAdmin getDeviceOrProfileOwnerAdminLocked(int userHandle) {
ActiveAdmin admin = getProfileOwnerAdminLocked(userHandle);
if (admin == null && getDeviceOwnerUserIdUncheckedLocked() == userHandle) {
admin = getDeviceOwnerAdminLocked();
}
return admin;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n ActiveAdmin getProfileOwnerAdminLocked(int userHandle) {\n ComponentName profileOwner = mOwners.getProfileOwnerComponent(userHandle);\n if (profileOwner == null) {\n return null;\n }\n DevicePolicyData policy = getUserData(userHandle);\n final i... | [
"0.6926969",
"0.59094447",
"0.5852117",
"0.5639775",
"0.56122476",
"0.55972844",
"0.5555135",
"0.55537724",
"0.55331874",
"0.5527458",
"0.54269326",
"0.54164046",
"0.5363001",
"0.53502494",
"0.53240454",
"0.5245245",
"0.52364665",
"0.52023435",
"0.5201445",
"0.51881135",
"0.5... | 0.69696975 | 0 |
This API is cached: invalidate with invalidateBinderCaches(). | @Override
public @Nullable ComponentName getProfileOwnerOrDeviceOwnerSupervisionComponent(
@NonNull UserHandle userHandle) {
if (!mHasFeature) {
return null;
}
synchronized (getLockObject()) {
final ComponentName doComponent = mOwners.getDeviceOwnerCompone... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n t... | [
"0.8095534",
"0.60156465",
"0.5793735",
"0.5773701",
"0.5755453",
"0.5696039",
"0.5686666",
"0.5680754",
"0.56761426",
"0.5641331",
"0.5636237",
"0.5635864",
"0.5630962",
"0.5612507",
"0.5594647",
"0.54873353",
"0.54346234",
"0.5429686",
"0.54236144",
"0.5403826",
"0.5377821"... | 0.0 | -1 |
Returns if the specified component is the supervision component. | @Override
public boolean isSupervisionComponent(@NonNull ComponentName who) {
if (!mHasFeature) {
return false;
}
synchronized (getLockObject()) {
if (mConstants.USE_TEST_ADMIN_AS_SUPERVISION_COMPONENT) {
final CallerIdentity caller = getCallerIdentity... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getIsComponentInstanceOf();",
"public boolean isSupervised(IResource resource) {\n\t\treturn true;\n\t}",
"protected boolean isComponent( Object value, String component ) {\n DefaultMutableTreeNode node = (DefaultMutableTreeNode)value;\n treeInfo nodeInfo = (treeInfo)(node.getUserO... | [
"0.5901988",
"0.58141774",
"0.54310614",
"0.54100055",
"0.53912085",
"0.5347004",
"0.53374213",
"0.52836835",
"0.5185343",
"0.5177034",
"0.5168508",
"0.5148381",
"0.5107656",
"0.51064926",
"0.50986564",
"0.50930846",
"0.5083134",
"0.50315654",
"0.50151634",
"0.50105274",
"0.5... | 0.7459007 | 0 |
This API is cached: invalidate with invalidateBinderCaches(). | @Override
public boolean isOrganizationOwnedDeviceWithManagedProfile() {
if (!mHasFeature) {
return false;
}
return getOrganizationOwnedProfileUserId() != UserHandle.USER_NULL;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n t... | [
"0.8095534",
"0.60156465",
"0.5793735",
"0.5773701",
"0.5755453",
"0.5696039",
"0.5686666",
"0.5680754",
"0.56761426",
"0.5641331",
"0.5636237",
"0.5635864",
"0.5630962",
"0.5612507",
"0.5594647",
"0.54873353",
"0.54346234",
"0.5429686",
"0.54236144",
"0.5403826",
"0.5377821"... | 0.0 | -1 |
If the caller is not a system app then it should only be able to check its own device identifier access. | private void ensureCallerIdentityMatchesIfNotSystem(String packageName, int pid, int uid,
CallerIdentity caller) {
int callingUid = caller.getUid();
int callingPid = mInjector.binderGetCallingPid();
if (UserHandle.getAppId(callingUid) >= Process.FIRST_APPLICATION_UID
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n public void enforceCallerCanRequestDeviceIdAttestation(CallerIdentity caller)\n throws SecurityException {\n /**\n * First check if there's a profile owner because the device could be in COMP mode (where\n * there's a device owner and profile owner on the... | [
"0.65970576",
"0.62827367",
"0.62230784",
"0.6220507",
"0.6220507",
"0.6203759",
"0.6157529",
"0.5997846",
"0.59636384",
"0.5881413",
"0.5849547",
"0.5822904",
"0.57856774",
"0.5782801",
"0.5770835",
"0.57413876",
"0.5696663",
"0.56924933",
"0.5684181",
"0.5680768",
"0.562627... | 0.7359633 | 0 |
Canonical name for a given package. | private String getApplicationLabel(String packageName, @UserIdInt int userId) {
return mInjector.binderWithCleanCallingIdentity(() -> {
final Context userContext;
try {
UserHandle userHandle = UserHandle.of(userId);
userContext = mContext.createPackageCont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"String getPackageName() {\n final int lastSlash = name.lastIndexOf('/');\n final String parentPath = name.substring(0, lastSlash);\n return parentPath.replace('/', '.');\n }",
"public String getPackageName() {\n final var lastDotIdx = name.lastIndexOf('.');\n\n ... | [
"0.69648355",
"0.6913199",
"0.6758479",
"0.66565406",
"0.6655999",
"0.66051817",
"0.6594819",
"0.65808046",
"0.65572065",
"0.64721787",
"0.646768",
"0.6402253",
"0.6399128",
"0.6389917",
"0.6380698",
"0.6339359",
"0.63366866",
"0.6331403",
"0.6281549",
"0.6262153",
"0.6253459... | 0.0 | -1 |
The profile owner can only be set by adb or an app with the MANAGE_PROFILE_AND_DEVICE_OWNERS permission. The profile owner can only be set before the user setup phase has completed, except for: SYSTEM_UID adb unless hasIncompatibleAccountsOrNonAdb is true. | private void enforceCanSetProfileOwnerLocked(
CallerIdentity caller, @Nullable ComponentName owner, int userHandle,
boolean hasIncompatibleAccountsOrNonAdb) {
UserInfo info = getUserInfo(userHandle);
if (info == null) {
// User doesn't exist.
throw new Ill... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@objid (\"6680b948-597e-4df9-b9a2-de8dc499acb3\")\n void setOwnerProfile(Profile value);",
"@GuardedBy(\"getLockObject()\")\n private void applyProfileRestrictionsIfDeviceOwnerLocked() {\n final int doUserId = mOwners.getDeviceOwnerUserId();\n if (doUserId == UserHandle.USER_NULL) {\n ... | [
"0.73509586",
"0.696127",
"0.66381437",
"0.6581536",
"0.6499589",
"0.64820373",
"0.6379178",
"0.63190806",
"0.6223153",
"0.6071829",
"0.5905495",
"0.589419",
"0.58278203",
"0.56536216",
"0.5619743",
"0.5605897",
"0.55832195",
"0.55825645",
"0.55792356",
"0.5564408",
"0.552966... | 0.737516 | 0 |
The Device owner can only be set by adb or an app with the MANAGE_PROFILE_AND_DEVICE_OWNERS permission. | private void enforceCanSetDeviceOwnerLocked(
CallerIdentity caller, @Nullable ComponentName owner, @UserIdInt int deviceOwnerUserId,
boolean hasIncompatibleAccountsOrNonAdb) {
if (!isAdb(caller)) {
Preconditions.checkCallAuthorization(
hasCallingOrSelfPerm... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public boolean hasDeviceOwner() {\n final CallerIdentity caller = getCallerIdentity();\n Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)\n || canManageUsers(caller) || isFinancedDeviceOwner(caller)\n || hasCallingOrSelfPer... | [
"0.68667996",
"0.6860564",
"0.66310054",
"0.66150165",
"0.658633",
"0.6547921",
"0.6534151",
"0.6488878",
"0.6388605",
"0.6362429",
"0.6362429",
"0.6362429",
"0.6362429",
"0.63571674",
"0.6325896",
"0.6254945",
"0.62178266",
"0.6164536",
"0.6100741",
"0.6099127",
"0.6088918",... | 0.6912333 | 0 |
Since we're doing this operation on behalf of an app, we only want to use the actual "unlocked" state. | private void enforceUserUnlocked(int userId) {
Preconditions.checkState(mUserManager.isUserUnlocked(userId),
"User must be running and unlocked");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic boolean isLocked() { return true; }",
"@Override\r\n\tpublic boolean unlockIt() {\n\t\treturn false;\r\n\t}",
"@Override\n protected boolean isCalledForCurrentUserLocked() {\n return true;\n }",
"public boolean isLocked() {\r\n \treturn false;\r\n }",
"@Ove... | [
"0.653226",
"0.6519326",
"0.65076727",
"0.64202005",
"0.6403402",
"0.63471454",
"0.6262468",
"0.6262468",
"0.6262468",
"0.6251497",
"0.6203212",
"0.61992383",
"0.6167021",
"0.6164901",
"0.61176777",
"0.60970676",
"0.60707265",
"0.6063965",
"0.60448456",
"0.603004",
"0.6025915... | 0.5632932 | 80 |
Dump state that is guarded by the handler | private void handleDump(IndentingPrintWriter pw) {
if (mNetworkLoggingNotificationUserId != UserHandle.USER_NULL) {
pw.println("mNetworkLoggingNotificationUserId: " + mNetworkLoggingNotificationUserId);
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void dumpState() {\r\n\t\tfor (TextChunk location : locationalResult) {\r\n\t\t\tlocation.printDiagnostics();\r\n\t\t\tSystem.out.println();\r\n\t\t}\r\n\t}",
"public void dumpState() {\r\n\t\tlistRunningTests();\r\n\t\tworkQueue.dumpState();\r\n\t}",
"public void dump()\r\n {\r\n dump(true);... | [
"0.716801",
"0.7149743",
"0.6801312",
"0.67090917",
"0.6561084",
"0.6551978",
"0.6551472",
"0.6540705",
"0.64660317",
"0.63517463",
"0.63147354",
"0.62364864",
"0.62287307",
"0.6167426",
"0.604271",
"0.6040761",
"0.6028179",
"0.6013978",
"0.5993328",
"0.59487057",
"0.5943434"... | 0.5861863 | 24 |
Invoke a method in AccessibilityManager ensuring the client is removed. | private <T> T withAccessibilityManager(
int userId, Function<AccessibilityManager, T> function) {
// Not using AccessibilityManager.getInstance because that guesses
// at the user you require based on callingUid and caches for a given
// process.
final IBinder iBinder = Servi... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean removeAction(AccessibilityAction action) {\n/* 364 */ throw new RuntimeException(\"Stub!\");\n/* */ }",
"void unclaim(@Nonnull Client client)\n throws IllegalArgumentException;",
"void unclaim(@Nonnull Client client);",
"@Override\n public void unInvoke() {\n final E... | [
"0.59746367",
"0.5754304",
"0.57518405",
"0.5706418",
"0.55439633",
"0.55241966",
"0.54987776",
"0.54634833",
"0.54378414",
"0.54378414",
"0.54378414",
"0.5432737",
"0.5432737",
"0.5432737",
"0.54313767",
"0.5424248",
"0.5379114",
"0.5368145",
"0.5322737",
"0.5315939",
"0.531... | 0.47033066 | 81 |
Returns an array containing the union of the given nonsuspended packages and exempt apps. Assumes both parameters are nonnull and nonempty. | private String[] buildNonSuspendedPackagesUnionArray(String[] nonSuspendedPackages,
Set<String> exemptApps) {
String[] result = new String[nonSuspendedPackages.length + exemptApps.size()];
int index = 0;
for (String app : nonSuspendedPackages) {
result[index++] = app;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<String> listPolicyExemptAppsUnchecked() {\n String[] core = mContext.getResources().getStringArray(R.array.policy_exempt_apps);\n String[] vendor = mContext.getResources().getStringArray(R.array.vendor_policy_exempt_apps);\n\n int size = core.length + vendor.length;\n Set<S... | [
"0.6837635",
"0.5680263",
"0.544914",
"0.5446453",
"0.5305116",
"0.51791203",
"0.5159925",
"0.5137876",
"0.5134521",
"0.513304",
"0.51189214",
"0.508307",
"0.5073224",
"0.5048662",
"0.5027432",
"0.502104",
"0.49931887",
"0.49756074",
"0.49739614",
"0.49477842",
"0.4916844",
... | 0.8312363 | 0 |
TODO(b/181238156): decide whether it should only list the apps set by the resources, or also the "critical" apps defined by PersonalAppsSuspensionHelper (like SMS app). If it's the latter, refactor PersonalAppsSuspensionHelper so it (or a superclass) takes the resources on constructor. | private List<String> listPolicyExemptAppsUnchecked() {
String[] core = mContext.getResources().getStringArray(R.array.policy_exempt_apps);
String[] vendor = mContext.getResources().getStringArray(R.array.vendor_policy_exempt_apps);
int size = core.length + vendor.length;
Set<String> app... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void loadApps() {\n\t\tIntent mainIntent = new Intent(Intent.ACTION_MAIN, null);\n\t\tmainIntent.addCategory(Intent.CATEGORY_LAUNCHER);\n\t\tmApps = getPackageManager().queryIntentActivities(mainIntent, 0);\n\t}",
"public Observable<List<AppDetail>> getUserPermittedApps() {\n return getAllInstalle... | [
"0.5689813",
"0.5679715",
"0.5674617",
"0.56340754",
"0.5598467",
"0.5572488",
"0.5525742",
"0.53566736",
"0.53309065",
"0.52480865",
"0.5239956",
"0.5176177",
"0.5160585",
"0.511335",
"0.5078144",
"0.50674504",
"0.50127304",
"0.5011046",
"0.4939918",
"0.4910459",
"0.49046797... | 0.65853643 | 0 |
Pushes the user restrictions originating from a specific user. If called by the profile owner of an organizationowned device, the global and local user restrictions will be an accumulation of the global user restrictions from the profile owner active admin and its parent active admin. The key of the local user restrict... | private void pushUserRestrictions(int originatingUserId) {
final Bundle global;
final RestrictionsSet local = new RestrictionsSet();
final boolean isDeviceOwner;
synchronized (getLockObject()) {
isDeviceOwner = mOwners.isDeviceOwnerUserId(originatingUserId);
if (i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GuardedBy(\"getLockObject()\")\n private void applyProfileRestrictionsIfDeviceOwnerLocked() {\n final int doUserId = mOwners.getDeviceOwnerUserId();\n if (doUserId == UserHandle.USER_NULL) {\n if (VERBOSE_LOG) Slogf.d(LOG_TAG, \"No DO found, skipping application of restriction.\");\n ... | [
"0.5675429",
"0.5459563",
"0.5388306",
"0.53068197",
"0.52951187",
"0.51800215",
"0.51157224",
"0.5083801",
"0.50795054",
"0.50775325",
"0.5055188",
"0.49909472",
"0.49892867",
"0.49710643",
"0.49343884",
"0.4901997",
"0.48954722",
"0.48730773",
"0.4817918",
"0.4813619",
"0.4... | 0.79318446 | 0 |
This function should return true if and only if the package is blocked by setUninstallBlocked(). It should still return false for other cases of blocks, such as when the package is a system app, or when it is an active device admin. | @Override
public boolean isUninstallBlocked(ComponentName who, String packageName) {
final int userId = UserHandle.getCallingUserId();
synchronized (getLockObject()) {
//TODO: This is a silly access control check. Remove.
if (who != null) {
final CallerIdenti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isNonMarketAppsAllowed() {\n\t\treturn Settings.Secure.getInt(getContentResolver(), Settings.Secure.INSTALL_NON_MARKET_APPS, 0) > 0;\r\n\t}",
"boolean isPackageInstaller(String packageName);",
"protected boolean isInMWPortraitWhiteList(String packageName) {\n if (packageName == null || sM... | [
"0.65297174",
"0.61815464",
"0.6150837",
"0.6027446",
"0.5924225",
"0.59194666",
"0.58806914",
"0.584951",
"0.58167636",
"0.58074814",
"0.5795239",
"0.574565",
"0.5729289",
"0.5719572",
"0.569997",
"0.5667118",
"0.56510353",
"0.56352174",
"0.5588383",
"0.55663985",
"0.5542267... | 0.77017856 | 0 |
TODO: Should there be a check to make sure this relationship is within a profile group? enforceSystemProcess("getCrossProfileCallerIdDisabled can only be called by system"); | @Override
public boolean getBluetoothContactSharingDisabledForUser(int userId) {
synchronized (getLockObject()) {
ActiveAdmin admin = getProfileOwnerAdminLocked(userId);
return (admin != null) ? admin.disableBluetoothContactSharing : false;
}
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@VisibleForTesting\n public void enforceCallerCanRequestDeviceIdAttestation(CallerIdentity caller)\n throws SecurityException {\n /**\n * First check if there's a profile owner because the device could be in COMP mode (where\n * there's a device owner and profile owner on the... | [
"0.572628",
"0.55155855",
"0.5486814",
"0.54800475",
"0.546308",
"0.5452174",
"0.53486854",
"0.53330225",
"0.530415",
"0.5283007",
"0.5198807",
"0.5175015",
"0.517029",
"0.5167161",
"0.512397",
"0.5119905",
"0.5090517",
"0.50623536",
"0.50569546",
"0.50504106",
"0.5025728",
... | 0.46245354 | 96 |
Check policyexempt apps first, as it doesn't require the lock | @Override
public boolean isLockTaskPermitted(String pkg) {
if (listPolicyExemptAppsUnchecked().contains(pkg)) {
if (VERBOSE_LOG) {
Slogf.v(LOG_TAG, "isLockTaskPermitted(%s): returning true for policy-exempt app",
pkg);
}
return ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private List<String> listPolicyExemptAppsUnchecked() {\n String[] core = mContext.getResources().getStringArray(R.array.policy_exempt_apps);\n String[] vendor = mContext.getResources().getStringArray(R.array.vendor_policy_exempt_apps);\n\n int size = core.length + vendor.length;\n Set<S... | [
"0.7018083",
"0.66934407",
"0.62510747",
"0.62096876",
"0.5952845",
"0.58983725",
"0.5896269",
"0.5805358",
"0.5794114",
"0.5768883",
"0.56294006",
"0.5546713",
"0.55361134",
"0.5529575",
"0.5520644",
"0.5493197",
"0.54695326",
"0.5446306",
"0.5412603",
"0.5391589",
"0.538044... | 0.634607 | 2 |
We need to update the internal state of whether a user has completed setup or a device has paired once. After that, we ignore any changes that reset the Settings.Secure.USER_SETUP_COMPLETE or Settings.Secure.DEVICE_PAIRED change as we don't trust any apps that might try to reset them. Unfortunately, we don't know which... | void updateUserSetupCompleteAndPaired() {
List<UserInfo> users = mUserManager.getAliveUsers();
final int N = users.size();
for (int i = 0; i < N; i++) {
int userHandle = users.get(i).id;
if (mInjector.settingsSecureGetIntForUser(Settings.Secure.USER_SETUP_COMPLETE, 0,
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SmallTest\n public void testInitiallyDone_DeviceOwnerSkipUserSetup() {\n final ProvisioningParams params = createProvisioningParams(ACTION_PROVISION_MANAGED_DEVICE,\n true);\n when(mSettingsFacade.isUserSetupCompleted(mContext)).thenReturn(false);\n\n // WHEN calling markUse... | [
"0.64735276",
"0.6378639",
"0.63781756",
"0.63667744",
"0.6348842",
"0.58698094",
"0.5634013",
"0.55650127",
"0.55278903",
"0.54862255",
"0.5463064",
"0.54478127",
"0.5413043",
"0.5384535",
"0.53528035",
"0.53447986",
"0.5310654",
"0.5308201",
"0.53071934",
"0.52817655",
"0.5... | 0.80460626 | 0 |
This method is called from AM with its lock held, so don't take the DPMS lock. b/29242568 | @Override
public Intent createShowAdminSupportIntent(int userId, boolean useDefaultIfNoAdmin) {
if (getEnforcingAdminAndUserDetailsInternal(userId, null) != null
|| useDefaultIfNoAdmin) {
return DevicePolicyManagerService.this.createShowAdminSupportIntent(userId)... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final void ensureLocked() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n return;\n }\n Slogf.wtfStack(LOG_TAG, \"Not holding DPMS lock.\");\n }",
"private void wtfIfInLock() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n Slogf.wtfStack(LOG_TAG, \"Sho... | [
"0.6699872",
"0.64196205",
"0.60013527",
"0.5948335",
"0.5933769",
"0.59256756",
"0.58800286",
"0.5780393",
"0.5722965",
"0.5707021",
"0.57035476",
"0.5703055",
"0.5687535",
"0.5677213",
"0.5660849",
"0.5656647",
"0.5643698",
"0.5624828",
"0.56004393",
"0.55957794",
"0.559491... | 0.0 | -1 |
TODO(b/178494483): use EventLog instead TODO(b/178494483): log metrics? | @Override
public void notifyUnsafeOperationStateChanged(DevicePolicySafetyChecker checker, int reason,
boolean isSafe) {
if (VERBOSE_LOG) {
Slogf.v(LOG_TAG, "notifyUnsafeOperationStateChanged(): %s=%b",
DevicePolicyManager.operationSafetyReason... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static void recordMetricEvent(String arg0) {\n seTimeStamps();\n String serviceName = MDC.get(MDC_SERVICE_NAME);\n metricsLogger.info(MessageCodes.RULE_METRICS_INFO, serviceName, arg0);\n }",
"abstract protected void _log(TrackingEvent event) throws Exception;",
"@Before\n pub... | [
"0.62552494",
"0.6215472",
"0.59313166",
"0.58402574",
"0.58269876",
"0.58088565",
"0.578601",
"0.5771164",
"0.57350874",
"0.57262135",
"0.5719476",
"0.57104063",
"0.569635",
"0.5659109",
"0.5645512",
"0.56312436",
"0.56149995",
"0.5608769",
"0.5601234",
"0.5590861",
"0.55889... | 0.0 | -1 |
This method is called with AMS lock held, so don't take DPMS lock | private Intent createShowAdminSupportIntent(int userId) {
final Intent intent = new Intent(Settings.ACTION_SHOW_ADMIN_SUPPORT_DETAILS);
intent.putExtra(Intent.EXTRA_USER_ID, userId);
intent.setFlags(FLAG_ACTIVITY_NEW_TASK);
return intent;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"final void ensureLocked() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n return;\n }\n Slogf.wtfStack(LOG_TAG, \"Not holding DPMS lock.\");\n }",
"private void wtfIfInLock() {\n if (Thread.holdsLock(mLockDoNoUseDirectly)) {\n Slogf.wtfStack(LOG_TAG, \"Sho... | [
"0.6493036",
"0.6098475",
"0.5992209",
"0.5873412",
"0.58660907",
"0.5788344",
"0.5773694",
"0.5738161",
"0.57188004",
"0.5703206",
"0.56768847",
"0.56490177",
"0.56451935",
"0.5619656",
"0.5575937",
"0.55534494",
"0.5514724",
"0.5502165",
"0.54881734",
"0.5486346",
"0.548634... | 0.0 | -1 |
Excludes restrictions imposed by UserManager. | private List<UserManager.EnforcingUser> getDevicePolicySources(
List<UserManager.EnforcingUser> sources) {
int sizeBefore = sources.size();
List<UserManager.EnforcingUser> realSources = new ArrayList<>(sizeBefore);
for (int i = 0; i < sizeBefore; i++) {
UserManager.Enforc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void reject(){\n ArrayList<User> u1 = new ArrayList<User>();\n u1.addAll(Application.getApplication().getNonValidatedUsers());\n u1.remove(this);\n\n Application.getApplication().setNonValidatedUsers(u1);\n }",
"public List<User> getDisabledUsers();",
"private List<IAuthRu... | [
"0.6392895",
"0.597508",
"0.5917687",
"0.5857686",
"0.582268",
"0.58054286",
"0.56457233",
"0.5606533",
"0.5586343",
"0.5510057",
"0.5451054",
"0.5433655",
"0.5407092",
"0.5393463",
"0.53838676",
"0.5383005",
"0.53778195",
"0.5339973",
"0.5316633",
"0.5262053",
"0.52614295",
... | 0.0 | -1 |
The device owner can only be set before the setup phase of the primary user has completed, except for adb command if no accounts or additional users are present on the device. | private int checkDeviceOwnerProvisioningPreConditionLocked(@Nullable ComponentName owner,
@UserIdInt int deviceOwnerUserId, @UserIdInt int callingUserId, boolean isAdb,
boolean hasIncompatibleAccountsOrNonAdb) {
if (mOwners.hasDeviceOwner()) {
return STATUS_HAS_DEVICE_OWNER;
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void enforceCanSetDeviceOwnerLocked(\n CallerIdentity caller, @Nullable ComponentName owner, @UserIdInt int deviceOwnerUserId,\n boolean hasIncompatibleAccountsOrNonAdb) {\n if (!isAdb(caller)) {\n Preconditions.checkCallAuthorization(\n hasCalling... | [
"0.67913586",
"0.6754298",
"0.666729",
"0.6654191",
"0.6633401",
"0.64423805",
"0.6434994",
"0.63576835",
"0.6297804",
"0.6261388",
"0.6224215",
"0.61808634",
"0.6145732",
"0.61439764",
"0.60460216",
"0.60277134",
"0.6023761",
"0.60099804",
"0.59960204",
"0.59960204",
"0.5996... | 0.663134 | 5 |
Return device owner or profile owner set on a given user. | private @Nullable ComponentName getOwnerComponent(int userId) {
synchronized (getLockObject()) {
if (mOwners.getDeviceOwnerUserId() == userId) {
return mOwners.getDeviceOwnerComponent();
}
if (mOwners.hasProfileOwner(userId)) {
return mOwners.g... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"User getOwner();",
"@objid (\"d7af9849-7951-4020-8339-9057fcec6b89\")\n Profile getOwnerProfile();",
"@Override\n public @Nullable ComponentName getProfileOwnerOrDeviceOwnerSupervisionComponent(\n @NonNull UserHandle userHandle) {\n if (!mHasFeature) {\n return null;\n ... | [
"0.70281696",
"0.67626023",
"0.675423",
"0.657296",
"0.6528804",
"0.6486706",
"0.6480898",
"0.6382954",
"0.6349692",
"0.6325497",
"0.6319112",
"0.62686193",
"0.6233957",
"0.6233957",
"0.61716026",
"0.6159586",
"0.6126041",
"0.61172175",
"0.6112015",
"0.60779244",
"0.60357946"... | 0.6930499 | 1 |
Returns the target sdk version number that the given packageName was built for in the given user. | private int getTargetSdk(String packageName, int userId) {
final ApplicationInfo ai;
try {
ai = mIPackageManager.getApplicationInfo(packageName, 0, userId);
return ai == null ? 0 : ai.targetSdkVersion;
} catch (RemoteException e) {
// Shouldn't happen
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"int getPackageVersion(String packageName);",
"private String getOwnerPackageNameForUserLocked(int userId) {\n return mOwners.getDeviceOwnerUserId() == userId\n ? mOwners.getDeviceOwnerPackageName()\n : mOwners.getProfileOwnerPackage(userId);\n }",
"private String getAppl... | [
"0.6399046",
"0.5580128",
"0.5486843",
"0.5476538",
"0.54188526",
"0.53810763",
"0.5379866",
"0.53100777",
"0.52959037",
"0.5223095",
"0.5220446",
"0.5220446",
"0.5175312",
"0.5161523",
"0.51562124",
"0.51557505",
"0.5148591",
"0.5131241",
"0.5066233",
"0.506422",
"0.50624406... | 0.78967386 | 0 |
This API is cached: invalidate with invalidateBinderCaches(). | @Override
public CharSequence getDeviceOwnerOrganizationName() {
if (!mHasFeature) {
return null;
}
final CallerIdentity caller = getCallerIdentity();
Preconditions.checkCallAuthorization(isDefaultDeviceOwner(caller)
|| canManageUsers(caller) || isFinanced... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n t... | [
"0.8095534",
"0.60156465",
"0.5793735",
"0.5773701",
"0.5755453",
"0.5696039",
"0.5686666",
"0.5680754",
"0.56761426",
"0.5641331",
"0.5636237",
"0.5635864",
"0.5630962",
"0.5612507",
"0.5594647",
"0.54873353",
"0.54346234",
"0.5429686",
"0.54236144",
"0.5403826",
"0.5377821"... | 0.0 | -1 |
This API is cached: invalidate with invalidateBinderCaches(). | @Override
public CharSequence getOrganizationNameForUser(int userHandle) {
if (!mHasFeature) {
return null;
}
Preconditions.checkArgumentNonnegative(userHandle, "Invalid userId");
final CallerIdentity caller = getCallerIdentity();
Preconditions.checkCallAuthoriza... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n t... | [
"0.8095534",
"0.60156465",
"0.5793735",
"0.5773701",
"0.5755453",
"0.5696039",
"0.5686666",
"0.5680754",
"0.56761426",
"0.5641331",
"0.5636237",
"0.5635864",
"0.5630962",
"0.5612507",
"0.5594647",
"0.54873353",
"0.54346234",
"0.5429686",
"0.54236144",
"0.5403826",
"0.5377821"... | 0.0 | -1 |
Make sure that the user has a profile owner and that the specified component is the profile owner of that user. | @GuardedBy("getLockObject()")
private void setProfileOwnerOnOrganizationOwnedDeviceUncheckedLocked(
ComponentName who, int userId, boolean isProfileOwnerOnOrganizationOwnedDevice) {
if (!isProfileOwner(who, userId)) {
throw new IllegalArgumentException(String.format(
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Test\n public void testProfileOwner() {\n AbstractProvisioningController controller =\n mFactory.createProvisioningController(InstrumentationRegistry.getTargetContext(),\n PROFILE_OWNER_PARAMS, mCallback);\n\n // THEN the controller should be a profile owner ... | [
"0.65006775",
"0.64696395",
"0.6209688",
"0.6191942",
"0.5791328",
"0.570374",
"0.56815565",
"0.56775254",
"0.5657959",
"0.5526329",
"0.5494297",
"0.54695576",
"0.545774",
"0.54086095",
"0.5407382",
"0.53514874",
"0.5323255",
"0.52912",
"0.5289611",
"0.5261297",
"0.5248565",
... | 0.54215646 | 13 |
Force update internal persistent state from Settings.Secure.USER_SETUP_COMPLETE. It's added for testing only. Please use this API carefully if it's used by other system app and bare in mind Settings.Secure.USER_SETUP_COMPLETE can be modified by user and other system apps. | @Override
public void forceUpdateUserSetupComplete(@UserIdInt int userId) {
Preconditions.checkCallAuthorization(
hasCallingOrSelfPermission(permission.MANAGE_PROFILE_AND_DEVICE_OWNERS));
boolean isUserCompleted = mInjector.settingsSecureGetIntForUser(
Settings.Secur... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void updateUserSetupCompleteAndPaired() {\n List<UserInfo> users = mUserManager.getAliveUsers();\n final int N = users.size();\n for (int i = 0; i < N; i++) {\n int userHandle = users.get(i).id;\n if (mInjector.settingsSecureGetIntForUser(Settings.Secure.USER_SETUP_COMPLE... | [
"0.7400287",
"0.70136064",
"0.6896293",
"0.6839234",
"0.6774284",
"0.6325695",
"0.6141219",
"0.6087715",
"0.572947",
"0.57231677",
"0.5620494",
"0.5506971",
"0.54887635",
"0.5487891",
"0.5478982",
"0.54763836",
"0.5414531",
"0.5353712",
"0.5335873",
"0.5301573",
"0.5271692",
... | 0.73843783 | 1 |
There has to be a device owner, under another user id. | private boolean canUserBindToDeviceOwnerLocked(int userId) {
if (!mOwners.hasDeviceOwner() || userId == mOwners.getDeviceOwnerUserId()) {
return false;
}
// The user must have a profile owner that belongs to the same package as the device owner.
if (!mOwners.hasProfileOwner(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void transferDeviceOwnershipLocked(ComponentName admin, ComponentName target, int userId) {\n transferActiveAdminUncheckedLocked(target, admin, userId);\n mOwners.transferDeviceOwnership(target);\n Slogf.i(LOG_TAG, \"Device owner set: \" + target + \" on user \" + userId);\n mOw... | [
"0.68979836",
"0.678816",
"0.67098004",
"0.6692571",
"0.6615566",
"0.65386385",
"0.64124435",
"0.6405186",
"0.63575333",
"0.6349152",
"0.6347454",
"0.627942",
"0.62743783",
"0.6209019",
"0.61893123",
"0.61817336",
"0.61372685",
"0.6116197",
"0.60972124",
"0.60669976",
"0.6041... | 0.6582374 | 5 |
Pauses security and network logging if there are unaffiliated users on the device | @GuardedBy("getLockObject()")
private void maybePauseDeviceWideLoggingLocked() {
if (!areAllUsersAffiliatedWithDeviceLocked()) {
if (mOwners.hasDeviceOwner()) {
Slogf.i(LOG_TAG, "There are unaffiliated users, network logging will be "
+ "paused if enabled.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GuardedBy(\"getLockObject()\")\n private void maybeResumeDeviceWideLoggingLocked() {\n boolean allUsersAffiliated = areAllUsersAffiliatedWithDeviceLocked();\n boolean orgOwnedProfileDevice = isOrganizationOwnedDeviceWithManagedProfile();\n mInjector.binderWithCleanCallingIdentity(() -> {\n... | [
"0.6695311",
"0.57715917",
"0.57306695",
"0.55883086",
"0.55589247",
"0.55493647",
"0.5537544",
"0.5501163",
"0.5498989",
"0.5491529",
"0.5459485",
"0.54546386",
"0.54393667",
"0.5438878",
"0.5438394",
"0.5429415",
"0.5380655",
"0.5360566",
"0.5354701",
"0.53523034",
"0.53502... | 0.7125747 | 0 |
Resumes security and network logging (if they are enabled) if all users are affiliated | @GuardedBy("getLockObject()")
private void maybeResumeDeviceWideLoggingLocked() {
boolean allUsersAffiliated = areAllUsersAffiliatedWithDeviceLocked();
boolean orgOwnedProfileDevice = isOrganizationOwnedDeviceWithManagedProfile();
mInjector.binderWithCleanCallingIdentity(() -> {
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@GuardedBy(\"getLockObject()\")\n private void maybePauseDeviceWideLoggingLocked() {\n if (!areAllUsersAffiliatedWithDeviceLocked()) {\n if (mOwners.hasDeviceOwner()) {\n Slogf.i(LOG_TAG, \"There are unaffiliated users, network logging will be \"\n + \"pau... | [
"0.624239",
"0.6138147",
"0.60293835",
"0.5954643",
"0.5845962",
"0.54754597",
"0.5414061",
"0.54000413",
"0.5395046",
"0.5392914",
"0.53895336",
"0.53195953",
"0.52428913",
"0.524115",
"0.52374446",
"0.5237381",
"0.52236384",
"0.52176857",
"0.5199353",
"0.5156572",
"0.510634... | 0.71072835 | 0 |
Deletes any security and network logs that might have been collected so far | @GuardedBy("getLockObject()")
private void discardDeviceWideLogsLocked() {
mSecurityLogMonitor.discardLogs();
if (mNetworkLogger != null) {
mNetworkLogger.discardLogs();
}
// TODO: We should discard pre-boot security logs here too, as otherwise those
// logs (whic... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void cleanupLogs() {\n logger.debug(\"Beginning log cleanup...\");\n int total = 0;\n long startMs = time.milliseconds();\n for (Log log : allLogs()) {\n if (log.config.dedupe)\n continue;\n\n logger.debug(\"Garbage collecting '{}'\", log.name... | [
"0.7687677",
"0.74652755",
"0.68899465",
"0.67918766",
"0.6766381",
"0.67354167",
"0.6553719",
"0.6539925",
"0.6295651",
"0.61874735",
"0.6181434",
"0.616435",
"0.60651886",
"0.60364324",
"0.59934175",
"0.5955352",
"0.595189",
"0.5937148",
"0.5912482",
"0.589964",
"0.58458596... | 0.72084767 | 2 |
This API is cached: invalidate with invalidateBinderCaches(). | @Override
public boolean isNetworkLoggingEnabled(@Nullable ComponentName admin,
@NonNull String packageName) {
if (!mHasFeature) {
return false;
}
final CallerIdentity caller = getCallerIdentity(admin, packageName);
Preconditions.checkCallAuthorization((caller... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"static void invalidateBinderCaches() {\n DevicePolicyManager.invalidateBinderCaches();\n }",
"public void update() {\n\t\tthis.binder_Inventario.clear();\n\t}",
"public void invalidateAll() {\n synchronized (this) {\n long l10;\n this.H = l10 = 512L;\n }\n t... | [
"0.8095534",
"0.60156465",
"0.5793735",
"0.5773701",
"0.5755453",
"0.5696039",
"0.5686666",
"0.5680754",
"0.56761426",
"0.5641331",
"0.5636237",
"0.5635864",
"0.5630962",
"0.5612507",
"0.5594647",
"0.54873353",
"0.54346234",
"0.5429686",
"0.54236144",
"0.5403826",
"0.5377821"... | 0.0 | -1 |
/ A maximum of 1200 events are returned, and the total marshalled size is in the order of 100kB, so returning a List instead of ParceledListSlice is acceptable. Ideally this would be done with ParceledList, however it only supports homogeneous types. | @Override
public List<NetworkEvent> retrieveNetworkLogs(@Nullable ComponentName admin,
@NonNull String packageName, long batchToken) {
if (!mHasFeature) {
return null;
}
final CallerIdentity caller = getCallerIdentity(admin, packageName);
final boolean isManag... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"java.util.List<com.google.protobuf.ByteString> getDataList();",
"java.util.List<com.google.protobuf.ByteString> getDataList();",
"java.util.List<com.google.protobuf.ByteString> getResponseList();",
"List<E> read();",
"public byte[] readRawList() throws IOException {\n Buffer buffer = new Buffer(new byte... | [
"0.61540294",
"0.61540294",
"0.6085247",
"0.5915636",
"0.59131694",
"0.59018487",
"0.58558345",
"0.57515377",
"0.57382214",
"0.57382214",
"0.57382214",
"0.57382214",
"0.57382214",
"0.57183397",
"0.5671151",
"0.5646241",
"0.5631418",
"0.5571221",
"0.5571221",
"0.5571221",
"0.5... | 0.0 | -1 |
Returns whether it's time to post another network logging notification. When returning true, this method has the sideeffect of updating the recorded last network logging notification time to now. | private boolean shouldSendNetworkLoggingNotificationLocked() {
ensureLocked();
// Send a network logging notification if the admin is a device owner, not profile owner.
final ActiveAdmin deviceOwner = getDeviceOwnerAdminLocked();
if (deviceOwner == null || !deviceOwner.isNetworkLoggingEn... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isLogTime() {\n return logTime;\n }",
"private boolean m50966f() {\n int i;\n SharedPreferences sharedPreferences = C8665cc.this.f36887b.getSharedPreferences(\"log.timestamp\", 0);\n String string = sharedPreferences.getString(\"log.requst\", \"\");\n ... | [
"0.6326773",
"0.607471",
"0.5964738",
"0.59632385",
"0.5949707",
"0.58848155",
"0.581849",
"0.5776283",
"0.57726353",
"0.5766919",
"0.5749775",
"0.5737598",
"0.5727546",
"0.5693899",
"0.56743866",
"0.56188726",
"0.5600419",
"0.55571836",
"0.5526539",
"0.55235004",
"0.5521779"... | 0.69362473 | 0 |
Return the package name of owner in a given user. | private String getOwnerPackageNameForUserLocked(int userId) {
return mOwners.getDeviceOwnerUserId() == userId
? mOwners.getDeviceOwnerPackageName()
: mOwners.getProfileOwnerPackage(userId);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private @Nullable ComponentName getOwnerComponent(int userId) {\n synchronized (getLockObject()) {\n if (mOwners.getDeviceOwnerUserId() == userId) {\n return mOwners.getDeviceOwnerComponent();\n }\n if (mOwners.hasProfileOwner(userId)) {\n retur... | [
"0.6460385",
"0.63969254",
"0.63969254",
"0.63457054",
"0.61978716",
"0.61978716",
"0.612456",
"0.59011143",
"0.5842339",
"0.5790683",
"0.57610154",
"0.57609546",
"0.57604325",
"0.57481855",
"0.57372886",
"0.57163894",
"0.5702457",
"0.5691475",
"0.56681126",
"0.5664628",
"0.5... | 0.76231736 | 0 |
Transfers the profile owner for user with id profileOwnerUserId from admin to target. | private void transferProfileOwnershipLocked(ComponentName admin, ComponentName target,
int profileOwnerUserId) {
transferActiveAdminUncheckedLocked(target, admin, profileOwnerUserId);
mOwners.transferProfileOwner(target, profileOwnerUserId);
Slogf.i(LOG_TAG, "Profile owner set: " + t... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void transferDeviceOwnershipLocked(ComponentName admin, ComponentName target, int userId) {\n transferActiveAdminUncheckedLocked(target, admin, userId);\n mOwners.transferDeviceOwnership(target);\n Slogf.i(LOG_TAG, \"Device owner set: \" + target + \" on user \" + userId);\n mOw... | [
"0.66407675",
"0.6163451",
"0.5988203",
"0.59100467",
"0.58649653",
"0.568873",
"0.56294733",
"0.56130594",
"0.54791737",
"0.5399703",
"0.53449714",
"0.53319",
"0.53048676",
"0.52777725",
"0.5262657",
"0.52397686",
"0.52023554",
"0.5197125",
"0.51708084",
"0.51568276",
"0.513... | 0.81931865 | 0 |
Transfers the device owner for user with id userId from admin to target. | private void transferDeviceOwnershipLocked(ComponentName admin, ComponentName target, int userId) {
transferActiveAdminUncheckedLocked(target, admin, userId);
mOwners.transferDeviceOwnership(target);
Slogf.i(LOG_TAG, "Device owner set: " + target + " on user " + userId);
mOwners.writeDev... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void transferProfileOwnershipLocked(ComponentName admin, ComponentName target,\n int profileOwnerUserId) {\n transferActiveAdminUncheckedLocked(target, admin, profileOwnerUserId);\n mOwners.transferProfileOwner(target, profileOwnerUserId);\n Slogf.i(LOG_TAG, \"Profile owner ... | [
"0.72084755",
"0.6016131",
"0.57794034",
"0.5673296",
"0.56685877",
"0.5583894",
"0.5544149",
"0.55127555",
"0.5486039",
"0.5486039",
"0.5482625",
"0.5482625",
"0.5482625",
"0.5470435",
"0.5462984",
"0.54584134",
"0.5448236",
"0.54377645",
"0.54327446",
"0.54327446",
"0.54327... | 0.82795197 | 0 |
Set Private DNS settings using system permissions, as apps cannot write to global settings. | private void putPrivateDnsSettings(int mode, @Nullable String host) {
mInjector.binderWithCleanCallingIdentity(() -> {
ConnectivitySettingsManager.setPrivateDnsMode(mContext, mode);
ConnectivitySettingsManager.setPrivateDnsHostname(mContext, host);
});
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void updateSystemSettings()\r\n {\r\n System.setProperty( \"http.agent\", Environment.getPhexVendor() );\r\n if ( isHttpProxyUsed )\r\n {\r\n System.setProperty( \"http.proxyHost\", httpProxyHost );\r\n System.setProperty( \"http.proxyPort\", String.valueOf( htt... | [
"0.5691731",
"0.5280102",
"0.5218554",
"0.5157136",
"0.511526",
"0.511526",
"0.51148164",
"0.5073038",
"0.49741",
"0.4966887",
"0.49497873",
"0.49492076",
"0.49218163",
"0.49167532",
"0.48220527",
"0.4818401",
"0.48139924",
"0.48020107",
"0.4794193",
"0.47688347",
"0.47674954... | 0.71648806 | 0 |
Returns whether the device is currently being used as a publiclyaccessible dedicated device. Assumes that feature checks and permission checks have already been performed, and that the calling identity has been cleared. | private boolean isManagedKioskInternal() throws RemoteException {
return mOwners.hasDeviceOwner()
&& mInjector.getIActivityManager().getLockTaskModeState()
== ActivityManager.LOCK_TASK_MODE_LOCKED
&& !isLockTaskFeatureEnabled(DevicePolicyManager.LOCK_TASK_... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public boolean isAccessGranted() {\n try {\n PackageManager packageManager = getPackageManager();\n ApplicationInfo applicationInfo = packageManager.getApplicationInfo(getPackageName(), 0);\n AppOpsManager appOpsManager = (AppOpsManager) getSystemService(Context.APP_OPS_SERV... | [
"0.64247745",
"0.63588756",
"0.6327824",
"0.6233609",
"0.622206",
"0.6190823",
"0.61650014",
"0.6164125",
"0.6163352",
"0.6148419",
"0.6129456",
"0.61287844",
"0.6113677",
"0.6098461",
"0.6096993",
"0.60799545",
"0.60780114",
"0.60780114",
"0.60683995",
"0.6033742",
"0.600920... | 0.6301969 | 3 |
TODO(b/175285301): Explicitly get the user's identity to check. | private boolean isLockTaskFeatureEnabled(int lockTaskFeature) throws RemoteException {
int lockTaskFeatures =
getUserData(getCurrentForegroundUserId()).mLockTaskFeatures;
return (lockTaskFeatures & lockTaskFeature) == lockTaskFeature;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"boolean hasUserId();",
"boolean hasUserId();",
"boolean hasUserId();",
"public Identity getIdentity()\r\n {\r\n return securityService.findLoggedInIdentity();\r\n }",
"@Before(unless = { \"signin\", \"doLogin\" })\n\tprivate static void checkAuthentification() {\n\t\t// get ID from secure soci... | [
"0.6624412",
"0.6624412",
"0.6624412",
"0.65398526",
"0.65082306",
"0.6468452",
"0.64396936",
"0.64306587",
"0.6413995",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",
"0.6412371",... | 0.0 | -1 |
Starts an activity to check policy compliance or request compliance acknowledgement. | private void triggerPolicyComplianceCheckIfNeeded(int profileUserId, boolean suspended) {
synchronized (getLockObject()) {
final ActiveAdmin profileOwner = getProfileOwnerAdminLocked(profileUserId);
if (profileOwner == null) {
Slogf.wtf(LOG_TAG, "Profile owner not found f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@SystemAPI\n\tboolean needsApproval();",
"boolean requestIfNeeded(Activity activity, Permission permission);",
"void fulfill( AvailabilityRequirement requirement );",
"void onOpenCMPConsentToolActivity(ServerResponse response, CMPSettings settings);",
"public void viewApplicants() throws InterruptedExcepti... | [
"0.55046165",
"0.5353205",
"0.51920724",
"0.5181727",
"0.5168677",
"0.5151489",
"0.5102668",
"0.50381994",
"0.50259334",
"0.5014194",
"0.49870357",
"0.4985695",
"0.49701038",
"0.49567947",
"0.49505898",
"0.49436995",
"0.49394137",
"0.48993507",
"0.4885953",
"0.48841396",
"0.4... | 0.55304253 | 0 |
Checks whether personal apps should be suspended according to the policy and applies the change if needed. | private boolean updatePersonalAppsSuspension(int profileUserId, boolean unlocked) {
final boolean shouldSuspend;
synchronized (getLockObject()) {
final ActiveAdmin profileOwner = getProfileOwnerAdminLocked(profileUserId);
if (profileOwner != null) {
final int noti... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private void triggerPolicyComplianceCheckIfNeeded(int profileUserId, boolean suspended) {\n synchronized (getLockObject()) {\n final ActiveAdmin profileOwner = getProfileOwnerAdminLocked(profileUserId);\n if (profileOwner == null) {\n Slogf.wtf(LOG_TAG, \"Profile owner n... | [
"0.6564932",
"0.57073975",
"0.56114066",
"0.5534036",
"0.54520357",
"0.54139894",
"0.5384009",
"0.5369057",
"0.5363935",
"0.529487",
"0.52932876",
"0.52706504",
"0.52689",
"0.52678084",
"0.5265932",
"0.5258886",
"0.52412504",
"0.5239934",
"0.52368295",
"0.52109146",
"0.520960... | 0.75678647 | 0 |
Checks work profile time off policy, scheduling personal apps suspension via alarm if necessary. | private int updateProfileOffDeadlineLocked(
int profileUserId, ActiveAdmin profileOwner, boolean unlocked) {
final long now = mInjector.systemCurrentTimeMillis();
if (profileOwner.mProfileOffDeadline != 0 && now > profileOwner.mProfileOffDeadline) {
Slogf.i(LOG_TAG, "Profile off ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private boolean updatePersonalAppsSuspension(int profileUserId, boolean unlocked) {\n final boolean shouldSuspend;\n synchronized (getLockObject()) {\n final ActiveAdmin profileOwner = getProfileOwnerAdminLocked(profileUserId);\n if (profileOwner != null) {\n fina... | [
"0.6460928",
"0.5929882",
"0.5924689",
"0.57482004",
"0.56100786",
"0.55181116",
"0.5508973",
"0.5492963",
"0.5472596",
"0.5434543",
"0.5430715",
"0.5411402",
"0.54071003",
"0.5331722",
"0.5300361",
"0.52815133",
"0.52797145",
"0.52535",
"0.5242455",
"0.5236929",
"0.5223874",... | 0.68175834 | 0 |
TODO(b/237065504): Allow mainline modules to get the device owner type. This is a workaround to get the device owner type in PermissionController. See HibernationPolicy.kt. | private void setGlobalSettingDeviceOwnerType(int deviceOwnerType) {
mInjector.binderWithCleanCallingIdentity(
() -> mInjector.settingsGlobalPutInt("device_owner_type", deviceOwnerType));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String getOwnerType() {\n\t\treturn ownerType;\n\t}",
"@Override\n public final Integer getOwnerType() {\n return null;\n }",
"public OwnerType getOwnerType() {\n\t\treturn ownerType;\n\t}",
"public String getOwnerEntityType()\r\n\t{\r\n\t\treturn ownerEntityType;\r\n\t}",
"@Override\n publi... | [
"0.6808682",
"0.6546656",
"0.6533389",
"0.6532942",
"0.64456433",
"0.63210887",
"0.6262009",
"0.6231546",
"0.61691236",
"0.61691236",
"0.6161709",
"0.6085767",
"0.60459995",
"0.60225433",
"0.60037726",
"0.5965923",
"0.5955538",
"0.5955538",
"0.5931114",
"0.5853944",
"0.579808... | 0.5842824 | 20 |
Get the form data | @Override
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
String empIdVal = req.getParameter("empid");
String nameVal = req.getParameter("empName");
String designationVal = req.getParameter("designation");
String SalaryVal = req.getParameter("salar... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Object getFormData() {\r\n return data;\r\n }",
"public Object getFormData() {\r\n\t\treturn null;\r\n\t}",
"public Object getFormData() {\r\n return null;\r\n }",
"private void readForm() {\n }",
"public String getForm() {\r\n\t\treturn form;\r\n\t}",
"public Form readForm(... | [
"0.74692106",
"0.7225129",
"0.71057594",
"0.6937751",
"0.6723559",
"0.6659601",
"0.65527195",
"0.6539782",
"0.65366",
"0.6459624",
"0.6440941",
"0.5959026",
"0.5910598",
"0.5869427",
"0.58692974",
"0.582014",
"0.57944363",
"0.57651716",
"0.5763384",
"0.5728548",
"0.5722108",
... | 0.0 | -1 |
If test is getting failed then take the screen shot and put it in Automation Report. | @AfterMethod
public void tearDown(ITestResult result)
{
//If test is getting failed then take the screen shot and put it in Automation Report.
//
if(result.getStatus()==ITestResult.FAILURE)
{
String screenshot_path=Utility.captureScreenshot(driver, result.getName());
String image=logger.addScreenCapture... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void onTestFailure(ITestResult arg0) {\n\t\tSystem.setProperty(\"org.uncommons.reportng.escape-output\", \"false\");\r\n\t\ttry {\r\n\t\t\tTestUtils.captureScreenshot();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\ttest.log(LogSta... | [
"0.78202164",
"0.7754439",
"0.7570281",
"0.75092083",
"0.74644804",
"0.7446471",
"0.74218816",
"0.73285943",
"0.731257",
"0.7298054",
"0.7271891",
"0.7268418",
"0.7267166",
"0.72190535",
"0.72037834",
"0.7165403",
"0.71511984",
"0.71199214",
"0.71021163",
"0.7012814",
"0.7009... | 0.6039431 | 80 |
Add your validation methods here | public static String getValidFirstName(String aFirstName) {
while (isValidFirstName(aFirstName) == false) {
aFirstName = JOptionPane.showInputDialog("Please Enter Valid First Name");
}
return aFirstName;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void validate() {}",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n public void customValidation() {\n }",
"@Override\n\tpublic void validate()\n\t{\n\n\t}",
"@Override\r\n\tprotected void validate() {\n\t}",
... | [
"0.79397076",
"0.79283726",
"0.79283726",
"0.79283726",
"0.76985085",
"0.7643684",
"0.76434803",
"0.7623089",
"0.7597094",
"0.7550071",
"0.7550071",
"0.7513794",
"0.7452073",
"0.74151516",
"0.7366356",
"0.7324461",
"0.7208294",
"0.71828216",
"0.7161178",
"0.7115941",
"0.70516... | 0.0 | -1 |
Created by zviad on 6/23/17. messages repository | public interface MessagesRepo extends JpaRepository<Message,Integer> {
List<Message> getMessageByTimes(Date startDate,Date endDate );
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"void mo80456b(Message message);",
"private Messages() {\n\t}",
"void mo80453a(Message message);",
"@Override\r\n public void handleMessage(Message msg) {\n }",
"@Override\n\tpublic void processMessage(Message message) {\n\t\t\n\t}",
"Message getCurrentMessage();",
"@Override\n\tpu... | [
"0.65521425",
"0.65183336",
"0.64994466",
"0.63493174",
"0.62959623",
"0.6197873",
"0.6170527",
"0.61638457",
"0.6149578",
"0.6145319",
"0.6145216",
"0.61362016",
"0.61164105",
"0.610902",
"0.60990083",
"0.6075529",
"0.6042856",
"0.60067695",
"0.59726435",
"0.59726435",
"0.59... | 0.0 | -1 |
Set the buffer to the new array reference. | void setBuffer(byte[] b)
{
buffer = b;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setBuffers(KType[][] newBuffers) {\n // Check they're all the same size, except potentially the last one\n int totalLen = 0;\n for (int i = 0; i < newBuffers.length - 1; i++) {\n final int currLen = newBuffers[i].length;\n assert currLen == newBuffers[i + 1].l... | [
"0.65511173",
"0.65507936",
"0.6471496",
"0.6450667",
"0.62973297",
"0.6269368",
"0.6263718",
"0.62246275",
"0.6204616",
"0.6097396",
"0.60545385",
"0.60306305",
"0.5909822",
"0.5876043",
"0.5824708",
"0.57728463",
"0.5732979",
"0.571635",
"0.5704002",
"0.56907284",
"0.568189... | 0.71887916 | 0 |
Read an short from the buffer, starting at the given byte. | abstract int readShort(int start); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"short readShort() throws IOException;",
"public short readShort() throws IOException;",
"short readShort();",
"private short readShort(SeekableStream stream)\n throws IOException {\n if (isBigEndian) {\n return stream.readShort();\n } else {\n return stream.readShor... | [
"0.7797527",
"0.767905",
"0.74595267",
"0.73051685",
"0.7239133",
"0.7213995",
"0.71816075",
"0.7168727",
"0.68664926",
"0.68549776",
"0.6748069",
"0.6717521",
"0.67054605",
"0.6663078",
"0.6610706",
"0.6552646",
"0.6511458",
"0.6500235",
"0.64847034",
"0.64275366",
"0.641534... | 0.7554815 | 2 |
Read an int from the buffer, starting at the given byte. | abstract int readInt(int start); | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private int readByte() {\n return src[srcPos++] & 0xFF;\n }",
"public final int read() {\r\n \r\n if (cbyte == size) {\r\n return -1;\r\n }\r\n \r\n // Otherwise, the byte under the head at \"cbyte\" can be read.\r\n \r\n if (bytenum == BYTES_IN_ELE... | [
"0.6934023",
"0.67309433",
"0.67016697",
"0.6554827",
"0.6525504",
"0.6506524",
"0.6482531",
"0.6443134",
"0.6374968",
"0.63596374",
"0.6332344",
"0.6324358",
"0.6300215",
"0.6297349",
"0.62965554",
"0.62809914",
"0.62807167",
"0.62732863",
"0.6267519",
"0.62651956",
"0.62194... | 0.6540513 | 4 |
Read a string from the current buffer starting at the given position. | String readString(int start, int len)
{
char[] val = new char[len];
int end = start + len;
int idx = 0;
for(int i = start; i < end; i++)
val[idx++] = (char)buffer[i];
return new String(val);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public String readString() {\n final int BUF_SIZE = 100;\n byte[] byteDest = new byte[BUF_SIZE];\n String ret = \"\";\n int num = BUF_SIZE;\n try {\n while (!ret.contains(\"\\r\")) {\n if ((num = in.read(byteDest)) > 0) {\n ret += new ... | [
"0.65316904",
"0.6464232",
"0.63938475",
"0.6366007",
"0.6272423",
"0.62718177",
"0.61736727",
"0.61710244",
"0.6161794",
"0.615757",
"0.612518",
"0.6047338",
"0.60374194",
"0.6031239",
"0.59896463",
"0.5975959",
"0.5944323",
"0.59383184",
"0.59128034",
"0.5894726",
"0.589440... | 0.62345713 | 6 |
Read an float from the buffer, starting at the given byte. | float readFloat(int start)
{
int bits = readInt(start);
return Float.intBitsToFloat(bits);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public static float readFloatFromBytes(byte[] data) {\n return ByteBuffer.wrap(data).order(ByteOrder.LITTLE_ENDIAN).getFloat();\n }",
"public float readFloat() throws IOException {\n return in.readFloat();\n }",
"float readFloat();",
"public float unpackFloat() {\n return buffer.getFloat... | [
"0.72045785",
"0.71906805",
"0.6986588",
"0.69399285",
"0.69374156",
"0.68743587",
"0.67487234",
"0.6735607",
"0.6640382",
"0.66238856",
"0.66002864",
"0.65435266",
"0.65087986",
"0.6470136",
"0.64018756",
"0.6217412",
"0.6206559",
"0.6202581",
"0.61970025",
"0.61614794",
"0.... | 0.7026121 | 2 |
Contructor: Initialise the floating speed to a random value. | public RedCell()
{
super(1, Greenfoot.getRandomNumber(2) + 1);
setRotation(Greenfoot.getRandomNumber(360));
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public void setSpeed() {\n\t\tthis.ySpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t\tthis.xSpd = this.MINSPEED + randGen.nextFloat() * (this.MAXSPEED - this.MINSPEED);\n\t}",
"public void setSpeed(float val) {speed = val;}",
"public void changeSpeed() {\n Random gen = ne... | [
"0.7148967",
"0.69909704",
"0.6459034",
"0.64556444",
"0.6399619",
"0.63679737",
"0.63159686",
"0.6291908",
"0.6289763",
"0.6275201",
"0.6249502",
"0.6241598",
"0.62394243",
"0.62394243",
"0.6214341",
"0.6202783",
"0.6195426",
"0.61701995",
"0.6154937",
"0.6138442",
"0.612736... | 0.0 | -1 |
Interface for document indexer. A indexer receives a query and a number limit, return documents (no more than limit) related to query. | @FunctionalInterface
public interface IIndexer<T extends IDocument> {
List<T> getDocuments(String query, int limit);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\r\n\t\t\tpublic List<ScoredDocument> search(Query query, long maxNumberOfDocuments) {\n\t\t\t\treturn null;\r\n\t\t\t}",
"public interface ILuceneIndexDAO extends IStatefulIndexerSession {\n // ===================================================================\n // The domain of indexing creates... | [
"0.629219",
"0.6018451",
"0.58168525",
"0.57377535",
"0.5674213",
"0.56500906",
"0.5647394",
"0.5646804",
"0.5619239",
"0.56156033",
"0.5594961",
"0.5566254",
"0.5539528",
"0.5506846",
"0.54472506",
"0.5445576",
"0.54400486",
"0.54237306",
"0.5418839",
"0.53795373",
"0.537752... | 0.69983536 | 0 |
One of the charts will be null | @ApiModelProperty(value = "One of the charts will be null")
public ProgramProfitChart getProgramChart() {
return programChart;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public Plottable getPlottable()\n {\n\t return null;\n }",
"public ChartTypes getChartTypes() { return _chartTypes; }",
"private DefaultPieDataset getChartDataset() {\n if (this.pieDataset == null) {\n pieDataset = new DefaultPieDataset();\n List<String> mo... | [
"0.6132717",
"0.5878218",
"0.58664113",
"0.5828297",
"0.58027136",
"0.57536304",
"0.5751528",
"0.5737669",
"0.5640193",
"0.5639634",
"0.5638627",
"0.56095856",
"0.5608566",
"0.55833817",
"0.5576626",
"0.5567085",
"0.5551855",
"0.55404216",
"0.5496501",
"0.54954565",
"0.549395... | 0.0 | -1 |
Convert the given object to string with each line indented by 4 spaces (except the first line). | private String toIndentedString(java.lang.Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private String toIndentedString(Object object) {\n if (object == null) {\n return EndpointCentralConstants.NULL_STRING;\n }\n return object.toString().replace(EndpointCentralConstants.LINE_BREAK,\n EndpointCentralConstants.LINE_BREAK + EndpointCentralConstants.TAB_SPA... | [
"0.78847593",
"0.75493765",
"0.74971926",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0.746168",
"0... | 0.0 | -1 |
ABSTRACT METHODS Maximum hit points | public int calculate_maximum_HP(int level, int mod_from_race) {
return (level * die_type) + class_hp_mod + mod_from_race;
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public final int getMaximumHitPoints () {\n return this.details.getMaxHitPoints();\n }",
"int maxHit(Player player, Entity target);",
"public int getMaximumPoints();",
"@Basic @Immutable\n\tpublic int getMaxHitpoints() {\n\t\treturn MAX_HITPOINTS;\n\t}",
"public int maxHit() {\n\t\treturn maxHit;... | [
"0.75700545",
"0.7313377",
"0.7203353",
"0.71302783",
"0.69691616",
"0.6457556",
"0.6334892",
"0.6330811",
"0.6321385",
"0.6270521",
"0.62402546",
"0.618644",
"0.60881937",
"0.60503894",
"0.5995081",
"0.59749174",
"0.5965567",
"0.59621775",
"0.5926285",
"0.59108603",
"0.59000... | 0.0 | -1 |
The Event Ontology as a collection of terms This class was created on 20130919 from Event Ontology version published 25th October 2007 | public interface Event {
public static final String NAMESPACE = "http://purl.org/NET/c4dm/event.owl#";
// classes
public static final URI
Event = new URIImpl(NAMESPACE + "Event"),
Factor = new URIImpl(NAMESPACE + "Factor"),
Product = new URIImpl(NAMESPACE + "Product");
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Term[] getTerms() { return terms; }",
"ArrayList<Term> getTerms() {\n ArrayList<Term> terms = new ArrayList<>();\n String[] columns = {\"id\", \"name\", \"start_date\", \"end_date\"};\n Cursor cursor = db.query(\"term\", columns, null, null, null, null, null);\n while (cursor.m... | [
"0.68455684",
"0.6531884",
"0.65295184",
"0.6276906",
"0.61664736",
"0.6162362",
"0.6158484",
"0.610916",
"0.60647553",
"0.60164505",
"0.59168303",
"0.5899064",
"0.5806762",
"0.5751866",
"0.5747237",
"0.5734508",
"0.5719838",
"0.5714391",
"0.57093024",
"0.56756365",
"0.560899... | 0.52284706 | 42 |
Hack for IE6 and IE7 Transitional mode to give buttonTop correct width, otherwise it will show the width of the content.: | @Override
public void buttonTop(DivElement buttonTop) {
CSS.setProperty(buttonTop, CSS.A.WIDTH, "100%");
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"private javax.swing.JButton getJButton10() {\n\t\tif(jButton10 == null) {\n\t\t\tjButton10 = new javax.swing.JButton();\n\t\t\tjButton10.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton10.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton10.setText(\"F10 Gaveta\");\n\t\t\tjButton10.setF... | [
"0.57376766",
"0.5723606",
"0.57120544",
"0.5651201",
"0.5537479",
"0.55346495",
"0.544119",
"0.544015",
"0.5432799",
"0.5414564",
"0.5401595",
"0.53436446",
"0.5341441",
"0.53141433",
"0.5313636",
"0.5267388",
"0.5257078",
"0.52158797",
"0.5202405",
"0.5169019",
"0.5152622",... | 0.6960396 | 0 |
Constructor for objects of class WinScreen. | public WinScreen()
{
// Create a new world with 600x400 cells with a cell size of 1x1 pixels.
super(1500, 500, 1);
prepare();
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public ScreenMonitor(){\n this(Configuration.SCREEN_MONITOR_UPDATE_DELAY,\n\t \t\tConfiguration.SCREEN_MONITOR_LOGS_SIZE, \n\t \t\tConfiguration.SCREEN_MONITOR_LINE_SEPERATOR,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_MEMORY,\n\t \t\tConfiguration.SCREEN_MONITOR_DATA_POWER);\n }",
"static p... | [
"0.7567161",
"0.7430843",
"0.72291434",
"0.7047974",
"0.68252414",
"0.67996544",
"0.6769857",
"0.6719489",
"0.66590464",
"0.65026766",
"0.6484646",
"0.6408443",
"0.6403896",
"0.6395152",
"0.6368921",
"0.63594145",
"0.6349443",
"0.6343483",
"0.6321797",
"0.6311421",
"0.6264213... | 0.73694867 | 2 |
Prepare the world for the start of the program. That is: create the initial objects and add them to the world. | private void prepare()
{
MenuButton menubutton = new MenuButton();
addObject(menubutton, 268, 406);
Tittle tittle2 = new Tittle();
addObject(tittle2, 544, 422);
Exit exit2 = new Exit();
addObject(exit2, 863, 427);
tittle2.setLocation(545, 401);
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n\tpublic void init() {\n\t\tworld = new World(gsm);\n\t\tworld.init();\n\t\t\n\t\tif(worldName == null){\n\t\t\tworldName = \"null\";\n\t\t\tmap_name = \"map\";\n\t\t} \n\t\tworld.generate(map_name);\n\t}",
"public void initializeObliqueLaunch(){\r\n world = new Environment();\r\n cannon = ... | [
"0.7015959",
"0.68863577",
"0.6829823",
"0.6809496",
"0.67739516",
"0.67211413",
"0.6718364",
"0.66616625",
"0.66208994",
"0.66106826",
"0.66085744",
"0.65771747",
"0.6571896",
"0.6520775",
"0.6499635",
"0.64636165",
"0.6449335",
"0.64275587",
"0.64012617",
"0.63890284",
"0.6... | 0.61537296 | 35 |
create 2 instances of the Stock class with the same contents | public static void main(String[] args) {
Stock company1 = new Stock("XYZ", 47.69);
Stock company2 = new Stock("XYZ", 47.69);
// create 2 instances of the Stock class with different contents
Stock company3 = new Stock("ABC", 14.88);
Stock company4 = new Stock("abc", 88.14);
// compare the content... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"public Stock() {\n\t\tsi = new SmallCouchImport();\n\t\tstockList.addAll(si.getStock());\n\t\tsi = new BigCouchImport();\n\t\tstockList.addAll(si.getStock());\n\t\tsi = new SmallTableImport();\n\t\tstockList.addAll(si.getStock());\n\t\tsi = new BigTableImport();\n\t\tstockList.addAll(si.getStock());\n\t}",
"publ... | [
"0.7383207",
"0.71467745",
"0.7127774",
"0.6860117",
"0.6795711",
"0.6662848",
"0.6649934",
"0.6637062",
"0.65099645",
"0.643976",
"0.6376923",
"0.63110656",
"0.6280572",
"0.6219338",
"0.6212592",
"0.61880755",
"0.6102387",
"0.60681903",
"0.5965348",
"0.5950819",
"0.5934663",... | 0.56186354 | 47 |
Created by DH on 3/4/2018. | public interface ServiceProducto {
// @GET("/sites/MLA/search?q=tennis")
// Call<ContenedorDeProductos>getProductos();
@GET("/sites/MLA/search")
Call<ContenedorDeProductos>getProductos(@Query("q") String terminoABuscar);
} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"@Override\n public void perish() {\n \n }",
"private stendhal() {\n\t}",
"public final void mo51373a() {\n }",
"@Override\n\tpublic void grabar() {\n\t\t\n\t}",
"@Override\n\tpublic void comer() {\n\t\t\n\t}",
"@Override\n public int describeContents() { return 0; }",
"protected ... | [
"0.5892861",
"0.5823062",
"0.56899256",
"0.5584394",
"0.55282485",
"0.55142546",
"0.55030394",
"0.5498018",
"0.5474422",
"0.5474422",
"0.5474422",
"0.5474422",
"0.5474422",
"0.5474422",
"0.543597",
"0.54275924",
"0.54275924",
"0.5413564",
"0.5401981",
"0.5399707",
"0.5386651"... | 0.0 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.