auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; makeFakeAndroidHome ( ) ; makeFakeSdk ( ) ; mSdkManager = com.android.sdklib.SdkManager.createManager ( mFakeSdk.getAbsolutePath ( ) , mLog ) ; assertNotNull ( "SdkManager location was invalid" , mSdkManager ) ; mAvdManager = new com.android.sdklib.SdkManagerTestCase.TmpAvdManager ( mSdkManager , mLog ) ; }

Target:
public void setUp ( int repoXsdLevel ) throws java.lang.Exception { mRepoXsdLevel = repoXsdLevel ; mLog = new com.android.sdklib.mock.MockLog ( ) ; makeFakeAndroidHome ( ) ; makeFakeSdk ( ) ; mSdkManager = com.android.sdklib.SdkManager.createManager ( mFakeSdk.getAbsolutePath ( ) , mLog ) ; assertNotNull ( "SdkManager location was invalid" , mSdkManager ) ; mAvdManager = com.android.sdklib.internal.avd.AvdManager.getInstance ( mSdkManager.getLocalSdk ( ) , mLog ) ; }
Source:
public synchronized java.util.Set < java.security.Provider.Service > getServices ( ) { updatePropertyServiceTable ( ) ; if ( ( lastServicesSet ) != null ) { return lastServicesSet ; } if ( ( serviceTable ) != null ) { lastServicesSet = new java.util.HashSet < java.security.Provider.Service > ( serviceTable.values ( ) ) ; } else { lastServicesSet = new java.util.HashSet < java.security.Provider.Service > ( ) ; } if ( ( propertyServiceTable ) != null ) { lastServicesSet.addAll ( propertyServiceTable.values ( ) ) ; } lastServicesSet = java.util.Collections.unmodifiableSet ( lastServicesSet ) ; return lastServicesSet ; }

Target:
public synchronized java.util.Set < java.security.Provider.Service > getServices ( ) { updatePropertyServiceTable ( ) ; if ( ( lastServicesSet ) != null ) { return lastServicesSet ; } if ( ( serviceTable ) != null ) { lastServicesSet = new java.util.LinkedHashSet < java.security.Provider.Service > ( serviceTable.values ( ) ) ; } else { lastServicesSet = new java.util.LinkedHashSet < java.security.Provider.Service > ( ) ; } if ( ( propertyServiceTable ) != null ) { lastServicesSet.addAll ( propertyServiceTable.values ( ) ) ; } lastServicesSet = java.util.Collections.unmodifiableSet ( lastServicesSet ) ; return lastServicesSet ; }
Source:
public final char readChar ( ) throws java.io.IOException { int ch1 = in.read ( ) ; int ch2 = in.read ( ) ; if ( ( ch1 | ch2 ) < 0 ) throw new java.io.EOFException ( ) ; return ( ( char ) ( ( ch1 << 8 ) + ( ch2 << 0 ) ) ) ; }

Target:
public final int readInt ( ) throws java.io.IOException { readFully ( readBuffer , 0 , 4 ) ; return libcore.io.Memory.peekInt ( readBuffer , 0 , java.nio.ByteOrder.BIG_ENDIAN ) ; }
Source:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "GetterTest.java:47: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" + ( ( ( "GetterTest.java:48: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)\n" + "GetterTest.java:52: Warning: Calling getter method isBar1() on self is slower than field access (mBar1)\n" ) + "GetterTest.java:54: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1)\n" ) + "GetterTest.java:55: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2)" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.class.data=>bin/classes/test/bytecode/GetterTest.class" ) ) ; }

Target:
public void test ( ) throws java.lang.Exception { assertEquals ( ( "src/test/bytecode/GetterTest.java:47: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1) [FieldGetter]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " getFoo1();\n" + " ~~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:48: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2) [FieldGetter]\n" ) + " getFoo2();\n" ) + " ~~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:52: Warning: Calling getter method isBar1() on self is slower than field access (mBar1) [FieldGetter]\n" ) + " isBar1();\n" ) + " ~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:54: Warning: Calling getter method getFoo1() on self is slower than field access (mFoo1) [FieldGetter]\n" ) + " this.getFoo1();\n" ) + " ~~~~~~~\n" ) + "src/test/bytecode/GetterTest.java:55: Warning: Calling getter method getFoo2() on self is slower than field access (mFoo2) [FieldGetter]\n" ) + " this.getFoo2();\n" ) + " ~~~~~~~\n" ) + "0 errors, 5 warnings\n" ) + "" ) ) , lintProject ( "bytecode/.classpath=>.classpath" , "apicheck/minsdk1.xml=>AndroidManifest.xml" , "bytecode/GetterTest.java.txt=>src/test/bytecode/GetterTest.java" , "bytecode/GetterTest.class.data=>bin/classes/test/bytecode/GetterTest.class" ) ) ; }
Source:
public int getBondState ( ) { if ( ( android.bluetooth.BluetoothDevice.sService ) == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get bond state" ) ; return android.bluetooth.BluetoothDevice.BOND_NONE ; } try { return android.bluetooth.BluetoothDevice.sService.getBondState ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } catch ( java.lang.NullPointerException npe ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , ( ( "NullPointerException for getBondState() of device (" + ( getAddress ( ) ) ) + ")" ) , npe ) ; } return android.bluetooth.BluetoothDevice.BOND_NONE ; }

Target:
public int getBondState ( ) { final android.bluetooth.IBluetooth service = android.bluetooth.BluetoothDevice.sService ; if ( service == null ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "BT not enabled. Cannot get bond state" ) ; return android.bluetooth.BluetoothDevice.BOND_NONE ; } try { return service.getBondState ( this ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothDevice.TAG , "" , e ) ; } return android.bluetooth.BluetoothDevice.BOND_NONE ; }
Source:
boolean equalNameAndParameters ( java.lang.reflect.Method m ) { java.lang.reflect.ArtMethod nonProxyThis = java.lang.Class.findOverriddenMethodIfProxy ( this . artMethod ) ; java.lang.reflect.ArtMethod nonProxyM = java.lang.Class.findOverriddenMethodIfProxy ( m.artMethod ) ; return ( java.lang.reflect.ArtMethod.getMethodName ( nonProxyThis ) . equals ( java.lang.reflect.ArtMethod.getMethodName ( nonProxyM ) ) ) && ( java.lang.reflect.ArtMethod.equalMethodParameters ( nonProxyThis , nonProxyM.getParameterTypes ( ) ) ) ; }

Target:
public java.lang.Class < ? > getReturnType ( ) { com.android.dex.Dex dex = declaringClassOfOverriddenMethod.getDex ( ) ; int returnTypeIndex = dex.returnTypeIndexFromMethodIndex ( dexMethodIndex ) ; return declaringClassOfOverriddenMethod.getDexCacheType ( dex , returnTypeIndex ) ; }
Source:
private void simulateInstalledDistro ( com.android.timezone.distro.TimeZoneDistro timeZoneDistro ) throws java.lang.Exception { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; assertTrue ( currentTzDataDir.mkdir ( ) ) ; timeZoneDistro.extractTo ( currentTzDataDir ) ; }

Target:
private void simulateInstalledDistro ( byte [ ] distroBytes ) throws java.lang.Exception { java.io.File currentTzDataDir = installer.getCurrentTzDataDir ( ) ; assertFalse ( currentTzDataDir.exists ( ) ) ; assertTrue ( currentTzDataDir.mkdir ( ) ) ; new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) . extractTo ( currentTzDataDir ) ; }
Source:
public void testI18NameParsing ( ) { for ( com.android.server.wifi.hotspot2.anqp.I18NameTest.I18NameTestMapping testMapping : com.android.server.wifi.hotspot2.anqp.I18NameTest.I18_NAME_MAPPINGS ) { try { com.android.server.wifi.hotspot2.anqp.I18Name i18Name = new com.android.server.wifi.hotspot2.anqp.I18Name ( java.nio.ByteBuffer.wrap ( testMapping.mBytes ) . order ( java.nio.ByteOrder.LITTLE_ENDIAN ) ) ; assertEquals ( testMapping.mExpectedLanguage , i18Name.getLanguage ( ) ) ; assertEquals ( testMapping.mExpectedLocale , i18Name.getLocale ( ) ) ; assertEquals ( testMapping.mExpectedText , i18Name.getText ( ) ) ; } catch ( java.net.ProtocolException e ) { fail ( ( "Exception encountered during parsing: " + e ) ) ; } } }

Target:
public void parseBufferWithDefaultTestData ( ) throws java.lang.Exception { byte [ ] data = getDefaultTestData ( ) ; com.android.server.wifi.hotspot2.anqp.I18Name actualName = com.android.server.wifi.hotspot2.anqp.I18Name.parse ( getTestBuffer ( data , data.length ) ) ; com.android.server.wifi.hotspot2.anqp.I18Name expectedName = new com.android.server.wifi.hotspot2.anqp.I18Name ( com.android.server.wifi.hotspot2.anqp.I18NameTest.TEST_LANGUAGE , com.android.server.wifi.hotspot2.anqp.I18NameTest.TEST_LOCALE , com.android.server.wifi.hotspot2.anqp.I18NameTest.TEST_TEXT ) ; org.junit.Assert.assertEquals ( expectedName , actualName ) ; }
Source:
private void mount ( ) { android.os.storage.IMountService mountService = getMountService ( ) ; try { if ( mountService != null ) { mountService.mountVolume ( mClickedMountPoint ) ; } else { android.util.Log.e ( com.android.settings.deviceinfo.Memory.TAG , "Mount service is null, can't mount" ) ; } } catch ( android.os.RemoteException ex ) { } }

Target:
private void mount ( ) { android.os.storage.IMountService mountService = getMountService ( ) ; try { if ( mountService != null ) { mountService.mountVolume ( com.android.settings.deviceinfo.Memory.mClickedMountPoint ) ; } else { android.util.Log.e ( com.android.settings.deviceinfo.Memory.TAG , "Mount service is null, can't mount" ) ; } } catch ( android.os.RemoteException ex ) { } }
Source:
public void testReadAfterWrite ( ) throws java.lang.Exception { com.android.server.wifi.WifiConfigStoreData writeData = createSingleOpenNetworkStoreData ( ) ; mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true , writeData ) ; com.android.server.wifi.WifiConfigStoreData readData = mWifiConfigStore.read ( ) ; com.android.server.wifi.WifiConfigStoreDataTest.assertConfigStoreDataEqual ( writeData , readData ) ; }

Target:
public void testWriteWithEmptyData ( ) throws java.lang.Exception { mWifiConfigStore.switchUserStoreAndRead ( mUserStore ) ; mWifiConfigStore.write ( true ) ; assertFalse ( mAlarmManager.isPending ( WifiConfigStore.BUFFERED_WRITE_ALARM_TAG ) ) ; assertTrue ( mSharedStore.isStoreWritten ( ) ) ; assertTrue ( mUserStore.isStoreWritten ( ) ) ; assertTrue ( java.util.Arrays.equals ( com.android.server.wifi.WifiConfigStoreTest.EMPTY_FILE_CONTENT.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) , mSharedStore.getStoreBytes ( ) ) ) ; assertTrue ( java.util.Arrays.equals ( com.android.server.wifi.WifiConfigStoreTest.EMPTY_FILE_CONTENT.getBytes ( java.nio.charset.StandardCharsets.UTF_8 ) , mUserStore.getStoreBytes ( ) ) ) ; }
Source:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassLiteral literal ) { com.android.jack.dx.rop.cst.Constant cst = com.android.jack.backend.dex.rop.RopHelper.getCstType ( literal.getRefType ( ) ) ; com.android.jack.ir.ast.JType type = literal.getType ( ) ; com.android.jack.dx.rop.code.Rop constOp = com.android.jack.dx.rop.code.Rops.opConst ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( type ) ) ; com.android.jack.dx.rop.code.Insn constInst = new com.android.jack.dx.rop.code.ThrowingCstInsn ( constOp , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( literal ) , com.android.jack.dx.rop.code.RegisterSpecList.EMPTY , getCatchTypes ( ) , cst ) ; addInstruction ( constInst ) ; addMoveResultPseudoAsExtraInstruction ( destReg , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( literal ) ) ; return false ; }

Target:
public boolean visit ( @ javax.annotation.Nonnull com.android.jack.ir.ast.JClassLiteral literal ) { com.android.jack.dx.rop.cst.Constant cst = com.android.jack.backend.dex.rop.RopHelper.getCstType ( literal.getRefType ( ) ) ; com.android.jack.ir.ast.JType type = literal.getType ( ) ; com.android.jack.dx.rop.code.Rop constOp = com.android.jack.dx.rop.code.Rops.opConst ( com.android.jack.backend.dex.rop.RopHelper.convertTypeToDx ( type ) ) ; com.android.jack.dx.rop.code.Insn constInst = new com.android.jack.dx.rop.code.PlainCstInsn ( constOp , com.android.jack.backend.dex.rop.RopHelper.getSourcePosition ( literal ) , destReg , com.android.jack.dx.rop.code.RegisterSpecList.EMPTY , cst ) ; addInstruction ( constInst ) ; return false ; }
Source:
private void registerUiccCardEvents ( ) { if ( ( mUiccApplication ) != null ) { mUiccApplication.registerForReady ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_APP_READY , null ) ; mUiccApplication.registerForNetworkLocked ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_NETWORK_LOCKED , null ) ; } if ( ( mIccRecords ) != null ) { mIccRecords.registerForRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_RECORDS_LOADED , null ) ; mIccRecords.registerForLockedRecordsLoaded ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_LOCKED , null ) ; mIccRecords.registerForRecordsEvents ( this , com.android.internal.telephony.uicc.UiccProfile.EVENT_ICC_RECORD_EVENTS , null ) ; } }

Target:
private boolean areAllRecordsLoaded ( ) { for ( com.android.internal.telephony.uicc.UiccCardApplication app : mUiccApplications ) { if ( ( app != null ) && ( isSupportedApplication ( app ) ) ) { com.android.internal.telephony.uicc.IccRecords ir = app.getIccRecords ( ) ; if ( ( ir == null ) || ( ! ( ir.isLoaded ( ) ) ) ) { return false ; } } } return ( mUiccApplications [ 0 ] ) != null ; }
Source:
public java.util.Collection < ? extends java.security.cert.CRL > engineGenerateCRLs ( java.io.InputStream inStream ) throws java.security.cert.CRLException { try { return crlParser.generateItems ( inStream ) ; } catch ( org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertificateFactory.ParsingException e ) { throw new java.security.cert.CRLException ( e ) ; } }

Target:
public java.util.Collection < ? extends java.security.cert.CRL > engineGenerateCRLs ( java.io.InputStream inStream ) throws java.security.cert.CRLException { if ( inStream == null ) { return java.util.Collections.emptyList ( ) ; } try { return crlParser.generateItems ( inStream ) ; } catch ( org.apache.harmony.xnet.provider.jsse.OpenSSLX509CertificateFactory.ParsingException e ) { throw new java.security.cert.CRLException ( e ) ; } }
Source:
private boolean checkForIntentsFromManaged ( ) { android.content.pm.ActivityInfo forwarderActivityInfo = getForwarderActivityInfo ( ByodHelperActivity.ACTION_PROFILE_OWNER_STATUS ) ; if ( forwarderActivityInfo == null ) { return false ; } boolean success = true ; success &= checkForIntentsNotHandled ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.forwardedIntentsFromManaged , forwarderActivityInfo , ( " from managed profile should be forwarded to the " + "primary profile but is not." ) , true ) ; success &= checkForIntentsNotHandled ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.notForwardedIntentsFromManaged , forwarderActivityInfo , ( "from managed profile should not be forwarded to the " + "primary profile but it is." ) , false ) ; return success ; }

Target:
private boolean checkIntentForwardingFromManaged ( ) { android.content.pm.ActivityInfo forwarderActivityInfo = getForwarderActivityInfo ( ByodHelperActivity.ACTION_PROFILE_OWNER_STATUS ) ; if ( forwarderActivityInfo == null ) { return false ; } boolean success = true ; success &= checkIntentForwarding ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.forwardedIntentsFromManaged , forwarderActivityInfo , ( " from managed profile should be forwarded to the " + "primary profile but is not." ) , true ) ; success &= checkIntentForwarding ( com.android.cts.verifier.managedprovisioning.IntentFiltersTestHelper.notForwardedIntentsFromManaged , forwarderActivityInfo , ( "from managed profile should not be forwarded to the " + "primary profile but it is." ) , false ) ; return success ; }
Source:
private void doLog ( java.util.logging.LogRecord lr ) { lr.setLoggerName ( name ) ; java.lang.String ebname = getEffectiveResourceBundleName ( ) ; if ( ( ebname != null ) && ( ! ( ebname.equals ( java.util.logging.Logger.SYSTEM_LOGGER_RB_NAME ) ) ) ) { lr.setResourceBundleName ( ebname ) ; lr.setResourceBundle ( findResourceBundle ( ebname , true ) ) ; } log ( lr ) ; }

Target:
public java.lang.String getResourceBundleName ( ) { return loggerBundle.resourceBundleName ; }
Source:
public boolean isSatisfiedBy ( org.gradle.nativeplatform.SharedLibraryBinarySpec binary ) { return ( binary.getBuildType ( ) . getName ( ) . equals ( buildType.getName ( ) ) ) && ( ( binary.getFlavor ( ) . getName ( ) . equals ( flavorGroup.getName ( ) ) ) || ( ( productFlavors.isEmpty ( ) ) && ( binary.getFlavor ( ) . getName ( ) . equals ( "default" ) ) ) ) ; }

Target:
public boolean apply ( org.gradle.nativeplatform.SharedLibraryBinarySpec binary ) { return ( binary.getBuildType ( ) . getName ( ) . equals ( buildType.getName ( ) ) ) && ( ( binary.getFlavor ( ) . getName ( ) . equals ( flavorGroup.getName ( ) ) ) || ( ( productFlavors.isEmpty ( ) ) && ( binary.getFlavor ( ) . getName ( ) . equals ( "default" ) ) ) ) ; }
Source:
public void removeJavascriptInterface ( final java.lang.String interfaceName ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { removeJavascriptInterface ( interfaceName ) ; } } ) ; return ; } mAwContents.removeJavascriptInterface ( interfaceName ) ; }

Target:
public void addJavascriptInterface ( final java.lang.Object obj , final java.lang.String interfaceName ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { addJavascriptInterface ( obj , interfaceName ) ; } } ) ; return ; } java.lang.Class < ? extends java.lang.annotation.Annotation > requiredAnnotation = null ; if ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.JELLY_BEAN_MR1 ) ) { requiredAnnotation = android.webkit.JavascriptInterface.class ; } mAwContents.addPossiblyUnsafeJavascriptInterface ( obj , interfaceName , requiredAnnotation ) ; }
Source:
private void registerForSimRecordEvents ( ) { com.android.internal.telephony.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.registerForNetworkSelectionModeAutomatic ( this , com.android.internal.telephony.gsm.EVENT_SET_NETWORK_AUTOMATIC , null ) ; r.registerForNewSms ( this , com.android.internal.telephony.gsm.EVENT_NEW_ICC_SMS , null ) ; r.registerForRecordsEvents ( this , com.android.internal.telephony.gsm.EVENT_ICC_RECORD_EVENTS , null ) ; r.registerForRecordsLoaded ( this , com.android.internal.telephony.gsm.EVENT_SIM_RECORDS_LOADED , null ) ; }

Target:
private void unregisterForSimRecordEvents ( ) { com.android.internal.telephony.uicc.IccRecords r = mIccRecords.get ( ) ; if ( r == null ) { return ; } r.unregisterForNetworkSelectionModeAutomatic ( this ) ; r.unregisterForNewSms ( this ) ; r.unregisterForRecordsEvents ( this ) ; r.unregisterForRecordsLoaded ( this ) ; }
Source:
public void testQuickFix_noAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "param" , PsiType.BOOLEAN ) ; com.intellij.codeInspection.ex.ProblemDescriptorImpl problemDescriptorMock = org.mockito.Mockito.mock ( com.intellij.codeInspection.ex.ProblemDescriptorImpl.class ) ; org.mockito.Mockito.when ( problemDescriptorMock.getPsiElement ( ) ) . thenReturn ( parameter ) ; com.google.gct.intellij.endpoints.validation.InvalidParameterAnnotationsInspection.MyQuickFix myQuickFix = new com.google.gct.intellij.endpoints.validation.InvalidParameterAnnotationsInspection ( ) . new com.google.gct.intellij.endpoints.validation.MyQuickFix ( ) ; myQuickFix.applyFix ( myProject , problemDescriptorMock ) ; junit.framework.Assert.assertEquals ( "boolean param" , parameter.getText ( ) ) ; }

Target:
public void testQuickFix_noAnnotation ( ) { com.intellij.openapi.project.Project myProject = myFixture.getProject ( ) ; com.intellij.psi.PsiParameter parameter = com.intellij.psi.JavaPsiFacade.getInstance ( myProject ) . getElementFactory ( ) . createParameter ( "param" , PsiType.BOOLEAN ) ; runQuickFixTest ( parameter , "boolean param" ) ; }
Source:
public java.lang.String getVisualVoicemailPackageName ( java.lang.String callingPackage , int subId ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , callingPackage , "getVisualVoicemailPackageName" ) ) ) { return null ; } return com.android.phone.vvm.RemoteVvmTaskManager.getRemotePackage ( mPhone.getContext ( ) , subId ) . getPackageName ( ) ; }

Target:
public java.lang.String getVisualVoicemailPackageName ( java.lang.String callingPackage , int subId ) { mAppOps.checkPackage ( android.os.Binder.getCallingUid ( ) , callingPackage ) ; if ( ! ( com.android.internal.telephony.TelephonyPermissions.checkCallingOrSelfReadPhoneState ( mApp , subId , callingPackage , "getVisualVoicemailPackageName" ) ) ) { return null ; } final long identity = android.os.Binder.clearCallingIdentity ( ) ; try { return com.android.phone.vvm.RemoteVvmTaskManager.getRemotePackage ( mPhone.getContext ( ) , subId ) . getPackageName ( ) ; } finally { android.os.Binder.restoreCallingIdentity ( identity ) ; } }
Source:
public void test_limiting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; java.lang.String actionName = "actionName" ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , actionName , "testSimple2" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( runner , ( ( target.getName ( ) ) + "#testSimple2" ) , actionName ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }

Target:
public void test_limiting_to_1method_and_run_for_SimpleTest2_should_perform_test ( ) { java.lang.Class < ? > target = vogar.target.junit3.SimpleTest2.class ; vogar.target.Runner runner = new vogar.target.junit.JUnitRunner ( monitor , "testSimple2" , target , skipPastReference , testEnvironment , 0 ) ; runner.run ( "" , null , null ) ; org.mockito.Mockito.verify ( monitor ) . outcomeStarted ( vogar.target.junit.JUnitRunner.class , ( ( target.getName ( ) ) + "#testSimple2" ) ) ; org.mockito.Mockito.verify ( monitor ) . outcomeFinished ( Result.SUCCESS ) ; }
Source:
private org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyId ( java.security.PublicKey pubKey ) { try { org.bouncycastle.asn1.x509.SubjectPublicKeyInfo info = new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo ( ( ( org.bouncycastle.asn1.ASN1Sequence ) ( org.bouncycastle.asn1.ASN1Primitive.fromByteArray ( pubKey.getEncoded ( ) ) ) ) ) ; return new org.bouncycastle.asn1.x509.SubjectKeyIdentifier ( info ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "error creating key" ) ; } }

Target:
private org.bouncycastle.asn1.x509.SubjectKeyIdentifier createSubjectKeyId ( java.security.PublicKey pubKey ) { try { org.bouncycastle.asn1.x509.SubjectPublicKeyInfo info = new org.bouncycastle.asn1.x509.SubjectPublicKeyInfo ( ( ( org.bouncycastle.asn1.ASN1Sequence ) ( org.bouncycastle.asn1.ASN1Primitive.fromByteArray ( pubKey.getEncoded ( ) ) ) ) ) ; return new org.bouncycastle.asn1.x509.SubjectKeyIdentifier ( org.bouncycastle.jcajce.provider.keystore.pkcs12.PKCS12KeyStoreSpi.getDigest ( info ) ) ; } catch ( java.lang.Exception e ) { throw new java.lang.RuntimeException ( "error creating key" ) ; } }
Source:
public void onCallStartFailed ( com.android.ims.ImsCall imsCall , android.telephony.ims.ImsReasonInfo reasonInfo ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "mImsUssdListener onCallStartFailed reasonCode=" + ( reasonInfo.getCode ( ) ) ) ) ; onCallTerminated ( imsCall , reasonInfo ) ; }

Target:
public void onDeregistered ( android.telephony.ims.ImsReasonInfo imsReasonInfo ) { if ( com.android.internal.telephony.imsphone.ImsPhoneCallTracker.DBG ) log ( ( "onImsDisconnected imsReasonInfo=" + imsReasonInfo ) ) ; resetImsCapabilities ( ) ; mPhone.setServiceState ( ServiceState.STATE_OUT_OF_SERVICE ) ; mPhone.setImsRegistered ( false ) ; mPhone.processDisconnectReason ( imsReasonInfo ) ; mMetrics.writeOnImsConnectionState ( mPhone.getPhoneId ( ) , ImsConnectionState.State.DISCONNECTED , imsReasonInfo ) ; }
Source:
public void test001_002 ( ) throws java.lang.Exception { java.io.File testDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.preprocessor.test001.jack" ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; toolchain.addProperty ( PreProcessor.FILE.getName ( ) , new java.io.File ( testDir , "config.jpp" ) . getAbsolutePath ( ) ) ; toolchain.srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.getClasspathAsString ( toolchain.getDefaultBootClasspath ( ) ) , com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "annotationAdderTest" , ".out.zip" ) , true , testDir ) ; }

Target:
public void test001_002 ( ) throws java.lang.Exception { java.io.File testDir = com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.preprocessor.test001.jack" ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addProperty ( PreProcessor.ENABLE.getName ( ) , "true" ) ; toolchain.addProperty ( PreProcessor.FILE.getName ( ) , new java.io.File ( testDir , "config.jpp" ) . getAbsolutePath ( ) ) ; toolchain.addToClasspath ( toolchain.getDefaultBootClasspath ( ) ) . srcToExe ( com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "annotationAdderTest" , ".out.zip" ) , true , testDir ) ; }
Source:
public java.net.URL getEntryUrlOrNull ( java.lang.String entryName ) { java.util.zip.ZipEntry entry = libcore.io.ClassPathURLStreamHandler.findEntryWithDirectoryFallback ( jarFile , entryName ) ; if ( entry != null ) { try { return new java.net.URL ( "jar" , null , ( - 1 ) , ( ( ( fileUri ) + "!/" ) + entryName ) , this ) ; } catch ( java.net.MalformedURLException e ) { throw new java.lang.RuntimeException ( "Invalid entry name" , e ) ; } } return null ; }

Target:
public java.net.URL getEntryUrlOrNull ( java.lang.String entryName ) { if ( ( libcore.io.ClassPathURLStreamHandler.findEntryWithDirectoryFallback ( strictJarFile , entryName ) ) != null ) { try { return new java.net.URL ( "jar" , null , ( - 1 ) , ( ( ( fileUri ) + "!/" ) + entryName ) , this ) ; } catch ( java.net.MalformedURLException e ) { throw new java.lang.RuntimeException ( "Invalid entry name" , e ) ; } } return null ; }
Source:
public void testConstructor_CaliperBenchmark ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"," ) + "\"runner\":\"" ) + ( vogar.target.CaliperRunner.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }

Target:
public void testConstructor_CaliperBenchmark_Profile ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( "-i" , "runtime" ) ; runner.run ( ) ; java.lang.String out = ios.contents ( Stream.OUT ) ; org.junit.Assert.assertTrue ( out.startsWith ( "Profiling is disabled: " ) ) ; out = out.replaceAll ( "^Profiling is disabled:[^\n]+\\n" , "" ) ; out = out.replaceAll ( "\t[^\n]+\\n" , "" ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.class . getName ( ) ) ) + "\"}\n" ) + "Experiment selection: \n" ) + " Benchmark Methods: [timeMethod]\n" ) + " Instruments: [runtime]\n" ) + " User parameters: {}\n" ) + " Virtual machines: [default]\n" ) + " Selection type: Full cartesian product\n" ) + "\n" ) + "This selection yields 1 experiments.\n" ) + ( com.google.caliper.runner.UserCodeException.class . getName ( ) ) ) + ": An exception was thrown from the benchmark code\n" ) + "Caused by: " ) + ( java.lang.IllegalStateException.class . getName ( ) ) ) + ": " ) + ( vogar.target.TestRunnerTest.CaliperBenchmark.CALIPER_BENCHMARK_MESSAGE ) ) + "\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , out ) ; }
Source:
public void copyTo ( short [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copyTo" ) ; validateIsInt16 ( ) ; mRS.validate ( ) ; mRS.nAllocationRead ( getID ( mRS ) , d , Element.DataType.SIGNED_16 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy2DRangeFrom ( int xoff , int yoff , int w , int h , short [ ] data ) { validateIsInt16 ( ) ; copy2DRangeFromUnchecked ( xoff , yoff , w , h , data , Element.DataType.SIGNED_16 , data.length ) ; }
Source:
public void onRepeat ( android.view.View v , long howlong , int repcnt ) { scanBackward ( repcnt , howlong ) ; }

Target:
public void onClick ( android.view.View v ) { com.android.music.utils.LogHelper.d ( com.android.music.MediaPlaybackActivity.TAG , "mQueueButton onClick" ) ; android.media.browse.MediaBrowser.MediaItem parentItem = new android.media.browse.MediaBrowser.MediaItem ( new android.media.MediaDescription.Builder ( ) . setMediaId ( com.android.music.utils.MediaIDHelper.createBrowseCategoryMediaID ( MediaIDHelper.MEDIA_ID_MUSICS_BY_PLAYLIST , MediaIDHelper.MEDIA_ID_NOW_PLAYING ) ) . setTitle ( "Now Playing" ) . build ( ) , MediaBrowser.MediaItem.FLAG_BROWSABLE ) ; android.content.Intent intent = new android.content.Intent ( android.content.Intent.ACTION_PICK ) . setDataAndType ( Uri.EMPTY , "vnd.android.cursor.dir/track" ) . putExtra ( MusicUtils.TAG_WITH_TABS , false ) . putExtra ( MusicUtils.TAG_PARENT_ITEM , parentItem ) ; startActivity ( intent ) ; }
Source:
public void testExtraPathWithSlash ( ) throws java.lang.Exception { java.lang.String document = ( ( ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:extra> <r:revision>1</r:revision> <r:path>path/cannot\\contain\\segments</r:path> " ) + "<r:archives> <r:archive os=\"any\"> <r:size>1</r:size> <r:checksum>2822ae37115ebf13412bbef91339ee0d9454525e</r:checksum> " ) + "<r:url>url</r:url> </r:archive> </r:archives> </r:extra>" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepository.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-pattern-valid: Value \'path/cannot\\\\contain\\\\segments\' is not facet-valid with respect to pattern.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }

Target:
public void testExtraPathWithSlash ( ) throws java.lang.Exception { java.lang.String document = ( ( ( ( "<?xml version=\"1.0\"?>" + ( com.android.sdklib.repository.SdkRepositoryTest.OPEN_TAG ) ) + "<r:extra> <r:revision>1</r:revision> <r:path>path/cannot\\contain\\segments</r:path> " ) + "<r:archives> <r:archive os=\"any\"> <r:size>1</r:size> <r:checksum>2822ae37115ebf13412bbef91339ee0d9454525e</r:checksum> " ) + "<r:url>url</r:url> </r:archive> </r:archives> </r:extra>" ) + ( com.android.sdklib.repository.SdkRepositoryTest.CLOSE_TAG ) ; javax.xml.transform.Source source = new javax.xml.transform.stream.StreamSource ( new java.io.StringReader ( document ) ) ; javax.xml.validation.Validator validator = getValidator ( SdkRepoConstants.NS_LATEST_VERSION , null ) ; try { validator.validate ( source ) ; } catch ( org.xml.sax.SAXParseException e ) { assertRegex ( "cvc-pattern-valid: Value \'path/cannot\\\\contain\\\\segments\' is not facet-valid with respect to pattern.*" , e.getMessage ( ) ) ; return ; } fail ( ) ; }
Source:
private void calcOurVisibleRect ( android.graphics.Rect r ) { android.graphics.Point p = new android.graphics.Point ( ) ; getGlobalVisibleRect ( r , p ) ; r.offset ( ( - ( p.x ) ) , ( - ( p.y ) ) ) ; }

Target:
private void calcOurVisibleRect ( android.graphics.Rect r ) { android.graphics.Point p = new android.graphics.Point ( ) ; getGlobalVisibleRect ( r , p ) ; r.offset ( ( - ( p.x ) ) , ( - ( p.y ) ) ) ; if ( mFindIsUp ) { r.bottom -= mFindHeight ; } }
Source:
public static com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager getInstance ( android.content.Context context , com.android.internal.telephony.CommandsInterface ci , android.os.Handler h , int what , java.lang.Object obj ) { synchronized ( com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sReferenceCountMonitor ) { if ( null == ( com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance ) ) { com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance = new com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager ( context , ci ) ; } ( com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance.sReferenceCount ) ++ ; } com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance.registerForCdmaSubscriptionSourceChanged ( h , what , obj ) ; return com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance ; }

Target:
public static com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager getInstance ( android.content.Context context , com.android.internal.telephony.CommandsInterface ci , android.os.Handler h , int what , java.lang.Object obj ) { synchronized ( com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sReferenceCountMonitor ) { if ( null == ( com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance ) ) { com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance = new com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager ( context , ci ) ; } ( com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sReferenceCount ) ++ ; } com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance.registerForCdmaSubscriptionSourceChanged ( h , what , obj ) ; return com.android.internal.telephony.cdma.CdmaSubscriptionSourceManager.sInstance ; }
Source:
public void warning ( java.lang.String tag , java.lang.String message , java.lang.Object data ) { java.lang.String description = describe ( message ) ; boolean log = true ; if ( com.android.ide.eclipse.adt.internal.editors.layout.gle2.TAG_RESOURCES_FORMAT.equals ( tag ) ) { if ( ( description.equals ( "You must supply a layout_width attribute." ) ) || ( description.equals ( "You must supply a layout_height attribute." ) ) ) { tag = com.android.ide.eclipse.adt.internal.editors.layout.gle2.RenderLogger.TAG_MISSING_DIMENSION ; log = false ; } } if ( log ) { com.android.ide.eclipse.adt.AdtPlugin.log ( IStatus.WARNING , "%1$s: %2$s" , mName , description ) ; } addWarning ( tag , description ) ; }

Target:
private void appendToIdeLog ( java.lang.Throwable throwable , int severity , java.lang.String description ) { com.android.ide.common.rendering.RenderSecurityManager renderSecurityManager = com.android.ide.common.rendering.RenderSecurityManager.getCurrent ( ) ; if ( renderSecurityManager != null ) { renderSecurityManager.setActive ( false ) ; } try { if ( throwable != null ) { com.android.ide.eclipse.adt.AdtPlugin.log ( throwable , "%1$s: %2$s" , mName , description ) ; } else { com.android.ide.eclipse.adt.AdtPlugin.log ( severity , "%1$s: %2$s" , mName , description ) ; } } finally { if ( renderSecurityManager != null ) { renderSecurityManager.setActive ( true ) ; } } }
Source:
public static android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult verifyJitter ( android.hardware.cts.helpers.TestSensorEvent [ ] events , double threshold ) { android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult result = new android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult ( ) ; java.util.List < java.lang.Double > jitterValues = android.hardware.cts.helpers.SensorCtsHelper.getJitterValues ( events ) ; double jitter95Percentile = android.hardware.cts.helpers.SensorCtsHelper.get95PercentileValue ( jitterValues ) ; result.putValue ( "jitter" , jitterValues ) ; result.putValue ( "jitter95Percentile" , jitter95Percentile ) ; if ( jitter95Percentile > threshold ) { result.fail ( "Jitter out of range: jitter at 95th percentile=%.0fns, expected=<%.0fns" , jitter95Percentile , threshold ) ; } return result ; }

Target:
public static android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult verifyJitter ( android.hardware.cts.helpers.TestSensorEvent [ ] events , int expected , int threshold ) { android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult result = new android.hardware.cts.helpers.SensorVerificationHelper.VerificationResult ( ) ; java.util.List < java.lang.Double > jitterValues = android.hardware.cts.helpers.SensorCtsHelper.getJitterValues ( events ) ; double jitter95Percentile = android.hardware.cts.helpers.SensorCtsHelper.get95PercentileValue ( jitterValues ) ; result.putValue ( android.hardware.cts.helpers.SensorVerificationHelper.JITTER_95_PERCENTILE_KEY , jitter95Percentile ) ; if ( jitter95Percentile > ( expected * ( threshold / 100.0 ) ) ) { result.fail ( "Jitter out of range: jitter at 95th percentile=%.0fns, expected=<%.0fns" , jitter95Percentile , ( expected * ( threshold / 100.0 ) ) ) ; } return result ; }
Source:
boolean isLeadingZeroPossible ( int countryCallingCode ) { com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata mainMetadataForCallingCode = getMetadataForRegionOrCallingCode ( countryCallingCode , getRegionCodeForCountryCode ( countryCallingCode ) ) ; if ( mainMetadataForCallingCode == null ) { return false ; } return mainMetadataForCallingCode.isLeadingZeroPossible ( ) ; }

Target:
boolean isNumberMatchingDesc ( java.lang.String nationalNumber , com.google.i18n.phonenumbers.Phonemetadata.PhoneNumberDesc numberDesc ) { int actualLength = nationalNumber.length ( ) ; java.util.List < java.lang.Integer > possibleLengths = numberDesc.getPossibleLengthList ( ) ; if ( ( ( possibleLengths.size ( ) ) > 0 ) && ( ! ( possibleLengths.contains ( actualLength ) ) ) ) { return false ; } return matcherApi.matchNationalNumber ( nationalNumber , numberDesc , false ) ; }
Source:
public java.lang.String getClassName ( ) { if ( ( className ) == null ) { if ( ! ( isReference ( ) ) ) { throw new java.lang.IllegalArgumentException ( ( "not an object type: " + ( descriptor ) ) ) ; } if ( ( descriptor.charAt ( 0 ) ) == '[' ) { className = descriptor ; } else { className = descriptor.substring ( 1 , ( ( descriptor.length ( ) ) - 1 ) ) ; } } return className ; }

Target:
protected int compareTo0 ( com.android.jack.dx.rop.cst.Constant other ) { assert other instanceof com.android.jack.dx.rop.type.Type ; return descriptor.compareTo ( ( ( com.android.jack.dx.rop.type.Type ) ( other ) ) . descriptor ) ; }
Source:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( "DeviceFilter[mVendorId=" + ( mVendorId ) ) + ",mProductId=" ) + ( mProductId ) ) + ",mClass=" ) + ( mClass ) ) + ",mSubclass=" ) + ( mSubclass ) ) + ",mProtocol=" ) + ( mProtocol ) ) + "]" ; }

Target:
public java.lang.String toString ( ) { return ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( "DeviceFilter[mVendorId=" + ( mVendorId ) ) + ",mProductId=" ) + ( mProductId ) ) + ",mClass=" ) + ( mClass ) ) + ",mSubclass=" ) + ( mSubclass ) ) + ",mProtocol=" ) + ( mProtocol ) ) + ",mManufacturerName=" ) + ( mManufacturerName ) ) + ",mProductName=" ) + ( mProductName ) ) + ",mSerialNumber=" ) + ( mSerialNumber ) ) + "]" ; }
Source:
public void onCreate ( ) { mHandlerThread = new android.os.HandlerThread ( "RecommendationProvider" ) ; mHandlerThread.start ( ) ; mHandler = new android.os.Handler ( mHandlerThread.getLooper ( ) ) ; mProvider = new com.android.networkrecommendation.DefaultNetworkRecommendationProvider ( mHandler , ( ( android.net.NetworkScoreManager ) ( getSystemService ( Context.NETWORK_SCORE_SERVICE ) ) ) , new com.android.networkrecommendation.DefaultNetworkRecommendationProvider.ScoreStorage ( ) ) ; mWifiWakeupController = new com.android.networkrecommendation.WifiWakeupController ( this , getContentResolver ( ) , mHandlerThread.getLooper ( ) ) ; }

Target:
public void onCreate ( ) { mHandlerThread = new android.os.HandlerThread ( "RecommendationProvider" ) ; mHandlerThread.start ( ) ; mHandler = new android.os.Handler ( mHandlerThread.getLooper ( ) ) ; mProvider = new com.android.networkrecommendation.DefaultNetworkRecommendationProvider ( mHandler , getSystemService ( android.net.NetworkScoreManager.class ) , new com.android.networkrecommendation.DefaultNetworkRecommendationProvider.ScoreStorage ( ) ) ; mWifiNotificationController = new com.android.networkrecommendation.WifiNotificationController ( this , mHandler.getLooper ( ) , null ) ; mWifiWakeupController = new com.android.networkrecommendation.WifiWakeupController ( this , getContentResolver ( ) , mHandlerThread.getLooper ( ) , getSystemService ( android.net.wifi.WifiManager.class ) , new com.android.networkrecommendation.WifiWakeupNetworkSelector ( getResources ( ) ) ) ; }
Source:
public java.util.List < android.app.ActivityManager.StackInfo > getAllStackInfos ( ) { enforceCallingPermission ( android.Manifest.permission.MANAGE_ACTIVITY_STACKS , "getAllStackInfos()" ) ; long ident = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( this ) { return mStackSupervisor.getAllStackInfosLocked ( ) ; } } finally { android.os.Binder.restoreCallingIdentity ( ident ) ; } }

Target:
private boolean removeTaskByIdLocked ( int taskId , boolean killProcess , boolean removeFromRecents ) { final com.android.server.am.TaskRecord tr = mStackSupervisor.anyTaskForIdLocked ( taskId , ( ! ( com.android.server.am.ActivityStackSupervisor.RESTORE_FROM_RECENTS ) ) , StackId.INVALID_STACK_ID ) ; if ( tr != null ) { tr.removeTaskActivitiesLocked ( ) ; cleanUpRemovedTaskLocked ( tr , killProcess , removeFromRecents ) ; if ( tr.isPersistable ) { notifyTaskPersisterLocked ( null , true ) ; } return true ; } android.util.Slog.w ( com.android.server.am.ActivityManagerService.TAG , ( "Request to remove task ignored for non-existent task " + taskId ) ) ; return false ; }
Source:
public final void testPkgTypeDoc ( ) { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_DOCS ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasTag ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }

Target:
public final void testPkgTypeDoc ( ) { com.android.sdklib.repository.descriptors.IPkgCapabilities p = PkgType.PKG_DOC ; assertTrue ( p.hasMajorRevision ( ) ) ; assertFalse ( p.hasFullRevision ( ) ) ; assertTrue ( p.hasAndroidVersion ( ) ) ; assertFalse ( p.hasPath ( ) ) ; assertFalse ( p.hasTag ( ) ) ; assertFalse ( p.hasVendor ( ) ) ; assertFalse ( p.hasMinToolsRev ( ) ) ; assertFalse ( p.hasMinPlatformToolsRev ( ) ) ; }
Source:
public void onActivityCreate ( android.os.Bundle saveInstanceState ) { mainActivity.setContentView ( R.layout.main_activity ) ; com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener bottomNavBarBottomNavTabListener = new com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener ( mainActivity.getSupportFragmentManager ( ) ) ; com.android.dialer.main.impl.bottomnav.BottomNavBar bottomNav = mainActivity.findViewById ( R.id.bottom_nav_bar ) ; bottomNav.addOnTabSelectedListener ( bottomNavBarBottomNavTabListener ) ; bottomNav.selectTab ( TabIndex.SPEED_DIAL ) ; }

Target:
public void onActivityCreate ( android.os.Bundle saveInstanceState ) { mainActivity.setContentView ( R.layout.main_activity ) ; com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener bottomNavBarBottomNavTabListener = new com.android.dialer.main.impl.NewMainActivityPeer.MainBottomNavBarBottomNavTabListener ( mainActivity.getSupportFragmentManager ( ) , mainActivity.getApplicationContext ( ) ) ; com.android.dialer.main.impl.bottomnav.BottomNavBar bottomNav = mainActivity.findViewById ( R.id.bottom_nav_bar ) ; bottomNav.addOnTabSelectedListener ( bottomNavBarBottomNavTabListener ) ; bottomNav.selectTab ( TabIndex.SPEED_DIAL ) ; }
Source:
public libcore.tzdata.update2.DistroVersion getDistroVersion ( ) throws java.io.IOException , libcore.tzdata.update2.DistroException { byte [ ] contents = libcore.tzdata.update2.TimeZoneDistro.getEntryContents ( new java.io.ByteArrayInputStream ( bytes ) , libcore.tzdata.update2.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( contents == null ) { throw new libcore.tzdata.update2.DistroException ( "Distro version file entry not found" ) ; } return libcore.tzdata.update2.DistroVersion.fromBytes ( contents ) ; }

Target:
public libcore.tzdata.shared2.DistroVersion getDistroVersion ( ) throws java.io.IOException , libcore.tzdata.shared2.DistroException { byte [ ] contents = libcore.tzdata.shared2.TimeZoneDistro.getEntryContents ( new java.io.ByteArrayInputStream ( bytes ) , libcore.tzdata.shared2.TimeZoneDistro.DISTRO_VERSION_FILE_NAME ) ; if ( contents == null ) { throw new libcore.tzdata.shared2.DistroException ( "Distro version file entry not found" ) ; } return libcore.tzdata.shared2.DistroVersion.fromBytes ( contents ) ; }
Source:
public static < V , X extends java.lang.Exception > com.google.common.util.concurrent.CheckedFuture < V , X > immediateFailedCheckedFuture ( final X exception ) { com.google.common.base.Preconditions.checkNotNull ( exception ) ; return com.google.common.util.concurrent.Futures.makeChecked ( com.google.common.util.concurrent.Futures.< V > immediateFailedFuture ( exception ) , new com.google.common.base.Function < java.lang.Exception , X > ( ) { @ java.lang.Override public X apply ( java.lang.Exception e ) { return exception ; } } ) ; }

Target:
public static < V , X extends java.lang.Exception > com.google.common.util.concurrent.CheckedFuture < V , X > immediateFailedCheckedFuture ( X exception ) { com.google.common.base.Preconditions.checkNotNull ( exception ) ; return new com.google.common.util.concurrent.Futures.ImmediateFailedCheckedFuture < V , X > ( exception ) ; }