auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_Jar_created_before_java_5 ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Created_by_1_4.jar" ; tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( new java.io.File ( resources , modifiedJarName ) , true ) ; java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; jarFile.getInputStream ( zipEntry ) ; } }

Target:
public void test_JarFile_Modified_Manifest_EntryAttributes ( ) throws java.io.IOException { java.lang.String modifiedJarName = "Modified_Manifest_EntryAttributes.jar" ; java.io.File file = tests.support.resource.Support_Resources.copyFile ( resources , null , modifiedJarName ) ; try ( java.util.jar.JarFile jarFile = new java.util.jar.JarFile ( file , true ) ) { java.util.Enumeration < java.util.jar.JarEntry > entries = jarFile.entries ( ) ; while ( entries.hasMoreElements ( ) ) { java.util.zip.ZipEntry zipEntry = entries.nextElement ( ) ; try { jarFile.getInputStream ( zipEntry ) ; fail ( "should throw Security Exception" ) ; } catch ( java.lang.SecurityException e ) { } } } }
Source:
public com.android.resources.Density getDensity ( ) { if ( ( mCurrentConfig ) != null ) { com.android.ide.common.resources.configuration.PixelDensityQualifier qual = mCurrentConfig.getPixelDensityQualifier ( ) ; if ( qual != null ) { com.android.resources.Density d = qual.getValue ( ) ; if ( d != ( com.android.resources.Density.NODPI ) ) { return d ; } } } return com.android.resources.Density.MEDIUM ; }

Target:
public com.android.resources.Density getDensity ( ) { if ( ( mCurrentConfig ) != null ) { com.android.ide.common.resources.configuration.DensityQualifier qual = mCurrentConfig.getDensityQualifier ( ) ; if ( qual != null ) { com.android.resources.Density d = qual.getValue ( ) ; if ( d != ( com.android.resources.Density.NODPI ) ) { return d ; } } } return com.android.resources.Density.MEDIUM ; }
Source:
public java.lang.String scriptDisplayNameInContext ( java.lang.String script ) { if ( ( nameLength ) == ( android.icu.text.DisplayContext.LENGTH_SHORT ) ) { java.lang.String scriptName = langData.get ( "Scripts%short" , script ) ; if ( ! ( scriptName.equals ( script ) ) ) { return adjustForUsageAndContext ( android.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.SCRIPT , scriptName ) ; } } return adjustForUsageAndContext ( android.icu.impl.LocaleDisplayNamesImpl.CapitalizationContextUsage.SCRIPT , langData.get ( "Scripts" , script ) ) ; }

Target:
public java.lang.String regionDisplayName ( java.lang.String region ) { return regionDisplayName ( region , false ) ; }
Source:
public java.lang.String getFolderSegment ( com.android.sdklib.IAndroidTarget target ) { if ( ( mValue ) != null ) { return mValue.getValue ( ) ; } return "" ; }

Target:
public boolean isBetterMatchThan ( com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier compareTo , com.android.ide.eclipse.adt.internal.resources.configurations.ResourceQualifier reference ) { if ( compareTo == null ) { return true ; } com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier compareQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( compareTo ) ) ; com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier referenceQualifier = ( ( com.android.ide.eclipse.adt.internal.resources.configurations.KeyboardStateQualifier ) ( reference ) ) ; if ( ( referenceQualifier.mValue ) == ( com.android.sdklib.resources.KeyboardState.SOFT ) ) { if ( ( ( compareQualifier.mValue ) == ( com.android.sdklib.resources.KeyboardState.EXPOSED ) ) && ( ( mValue ) == ( com.android.sdklib.resources.KeyboardState.SOFT ) ) ) { return true ; } } return false ; }
Source:
public void setUserRotationMode ( int mode , int rot ) { android.content.ContentResolver res = mContext.getContentResolver ( ) ; if ( mode == ( android.view.WindowManagerPolicy.USER_ROTATION_LOCKED ) ) { Settings.System.putInt ( res , Settings.System.USER_ROTATION , rot ) ; Settings.System.putInt ( res , Settings.System.ACCELEROMETER_ROTATION , 0 ) ; } else { Settings.System.putInt ( res , Settings.System.ACCELEROMETER_ROTATION , 1 ) ; } }

Target:
public void setUserRotationMode ( int mode , int rot ) { android.content.ContentResolver res = mContext.getContentResolver ( ) ; if ( mode == ( android.view.WindowManagerPolicy.USER_ROTATION_LOCKED ) ) { Settings.System.putIntForUser ( res , Settings.System.USER_ROTATION , rot , UserHandle.USER_CURRENT ) ; Settings.System.putIntForUser ( res , Settings.System.ACCELEROMETER_ROTATION , 0 , UserHandle.USER_CURRENT ) ; } else { Settings.System.putIntForUser ( res , Settings.System.ACCELEROMETER_ROTATION , 1 , UserHandle.USER_CURRENT ) ; } }
Source:
public android.hardware.cts.helpers.TestSensorEvent [ ] collectEvents ( long duration , java.util.concurrent.TimeUnit timeUnit ) { if ( ( mTestSensorEventListener ) != null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "Listener already registered, returning." ) ; return null ; } try { registerListener ( ) ; return getEvents ( duration , timeUnit ) ; } finally { unregisterListener ( ) ; } }

Target:
public void runSensor ( android.hardware.cts.helpers.TestSensorEventListener listener , long duration , java.util.concurrent.TimeUnit timeUnit ) { if ( ( mTestSensorEventListener ) != null ) { android.util.Log.w ( android.hardware.cts.helpers.TestSensorManager.LOG_TAG , "Listener already registered, returning." ) ; return ; } try { registerListener ( listener ) ; waitForEvents ( duration , timeUnit ) ; } finally { unregisterListener ( ) ; } }
Source:
protected static void processAttrCert5 ( org.bouncycastle.x509.X509AttributeCertificate attrCert , org.bouncycastle.x509.ExtendedPKIXParameters pkixParams ) throws java.security.cert.CertPathValidatorException { try { attrCert.checkValidity ( org.bouncycastle.jce.provider.CertPathValidatorUtilities.getValidDate ( pkixParams ) ) ; } catch ( java.security.cert.CertificateExpiredException e ) { throw new org.bouncycastle.jce.exception.ExtCertPathValidatorException ( "Attribute certificate is not valid." , e ) ; } catch ( java.security.cert.CertificateNotYetValidException e ) { throw new org.bouncycastle.jce.exception.ExtCertPathValidatorException ( "Attribute certificate is not valid." , e ) ; } }

Target:
protected static void processAttrCert5 ( org.bouncycastle.x509.X509AttributeCertificate attrCert , org.bouncycastle.jcajce.PKIXExtendedParameters pkixParams ) throws java.security.cert.CertPathValidatorException { try { attrCert.checkValidity ( org.bouncycastle.jce.provider.CertPathValidatorUtilities.getValidDate ( pkixParams ) ) ; } catch ( java.security.cert.CertificateExpiredException e ) { throw new org.bouncycastle.jce.exception.ExtCertPathValidatorException ( "Attribute certificate is not valid." , e ) ; } catch ( java.security.cert.CertificateNotYetValidException e ) { throw new org.bouncycastle.jce.exception.ExtCertPathValidatorException ( "Attribute certificate is not valid." , e ) ; } }
Source:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.widget.LinearLayout group = new android.widget.LinearLayout ( this ) ; group.setOrientation ( LinearLayout.VERTICAL ) ; java.lang.Iterable < com.example.android.multiproject.person.Person > people = new com.example.android.multiproject.person.People ( ) ; for ( com.example.android.multiproject.person.Person person : people ) { group.addView ( new com.sample.android.multiproject.library.PersonView ( this , person ) ) ; } setContentView ( group ) ; }

Target:
public void onCreate ( android.os.Bundle savedInstanceState ) { super . onCreate ( savedInstanceState ) ; android.widget.LinearLayout group = new android.widget.LinearLayout ( this ) ; group.setOrientation ( LinearLayout.VERTICAL ) ; group.setId ( R.id.rootView ) ; java.lang.Iterable < com.example.android.multiproject.person.Person > people = new com.example.android.multiproject.person.People ( ) ; for ( com.example.android.multiproject.person.Person person : people ) { group.addView ( new com.sample.android.multiproject.library.PersonView ( this , person ) ) ; } setContentView ( group ) ; }
Source:
public java.util.Set < com.android.sdklib.repository.FullRevision > getBuildTools ( ) { com.android.sdklib.repository.local.LocalPkgInfo [ ] pkgs = mLocalSdk.getPkgsInfos ( LocalSdk.PKG_BUILD_TOOLS ) ; java.util.TreeSet < com.android.sdklib.repository.FullRevision > bt = new java.util.TreeSet < com.android.sdklib.repository.FullRevision > ( ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : pkgs ) { if ( pkg.hasFullRevision ( ) ) { bt.add ( pkg.getFullRevision ( ) ) ; } } return java.util.Collections.unmodifiableSet ( bt ) ; }

Target:
public java.util.Set < com.android.sdklib.repository.FullRevision > getBuildTools ( ) { com.android.sdklib.repository.local.LocalPkgInfo [ ] pkgs = mLocalSdk.getPkgsInfos ( PkgType.PKG_BUILD_TOOLS ) ; java.util.TreeSet < com.android.sdklib.repository.FullRevision > bt = new java.util.TreeSet < com.android.sdklib.repository.FullRevision > ( ) ; for ( com.android.sdklib.repository.local.LocalPkgInfo pkg : pkgs ) { com.android.sdklib.repository.descriptors.IPkgDesc d = pkg.getDesc ( ) ; if ( d.hasFullRevision ( ) ) { bt.add ( d.getFullRevision ( ) ) ; } } return java.util.Collections.unmodifiableSet ( bt ) ; }
Source:
public void verifyModifyOriginalConfig ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = "test1" ; mProvider = createProvider ( config ) ; verifyInstalledConfig ( config , true ) ; config.homeSp.fqdn = "test2" ; verifyInstalledConfig ( config , false ) ; }

Target:
public void verifyModifyOriginalConfig ( ) throws java.lang.Exception { android.net.wifi.hotspot2.PasspointConfiguration config = new android.net.wifi.hotspot2.PasspointConfiguration ( ) ; config.homeSp = new android.net.wifi.hotspot2.pps.HomeSP ( ) ; config.homeSp.fqdn = "test1" ; config.credential = new android.net.wifi.hotspot2.pps.Credential ( ) ; config.credential.userCredential = new android.net.wifi.hotspot2.pps.Credential.UserCredential ( ) ; mProvider = createProvider ( config ) ; verifyInstalledConfig ( config , true ) ; config.homeSp.fqdn = "test2" ; verifyInstalledConfig ( config , false ) ; }
Source:
public com.google.common.base.CharMatcher and ( com.google.common.base.CharMatcher other ) { return new com.google.common.base.CharMatcher.And ( this , other ) ; }

Target:
void setBits ( java.util.BitSet table ) { java.util.BitSet tmp1 = new java.util.BitSet ( ) ; first.setBits ( tmp1 ) ; java.util.BitSet tmp2 = new java.util.BitSet ( ) ; second.setBits ( tmp2 ) ; tmp1.and ( tmp2 ) ; table.or ( tmp1 ) ; }
Source:
public void TestArabicLongStyle ( ) { if ( logKnownIssue ( "12181" , "No support for negative numbers in CDF" ) ) { return ; } com.ibm.icu.text.NumberFormat cdf = com.ibm.icu.text.CompactDecimalFormat.getInstance ( com.ibm.icu.util.ULocale.forLanguageTag ( "ar" ) , CompactStyle.LONG ) ; assertEquals ( "Arabic Long" , "‏-٥٫٣ ألف" , cdf.format ( ( - 5300 ) ) ) ; }

Target:
public void TestArabicLongStyle ( ) { if ( logKnownIssue ( "12181" , "No support for negative numbers in CDF" ) ) { return ; } com.ibm.icu.text.NumberFormat cdf = com.ibm.icu.text.CompactDecimalFormat.getInstance ( new java.util.Locale ( "ar" ) , CompactStyle.LONG ) ; assertEquals ( "Arabic Long" , "‏-٥٫٣ ألف" , cdf.format ( ( - 5300 ) ) ) ; }
Source:
public void destroyUserData ( java.lang.String uuid , int userId , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.destroyUserData ( uuid , userId , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.server.pm.Installer.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.markBootComplete ( instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw com.android.server.pm.Installer.InstallerException.from ( e ) ; } }
Source:
public void testConstructor_WithMethodName ( ) throws java.lang.Exception { java.lang.String methodName = "testMethodName" ; vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( methodName ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( ( ( ( ( "" + ( "Warning: Arguments are invalid for Caliper: " + "Extra stuff, did not expect non-option arguments: [" ) ) + methodName ) + "]\n" ) + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#" ) + methodName ) + "\"," ) + "\"runner\":\"" ) + ( vogar.target.junit.JUnitRunner.class . getName ( ) ) ) + "\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }

Target:
public void testConstructor_JUnit3Test ( ) throws java.lang.Exception { vogar.target.TestRunner runner = testRunnerRule.createTestRunner ( ) ; runner.run ( ) ; org.junit.Assert.assertEquals ( ( ( ( ( ( ( ( ( ( "" + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testMethodName\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"outcome\":\"" ) + ( vogar.target.TestRunnerTest.JUnit3Test.class . getName ( ) ) ) + "#testOtherName\"}\n" ) + "//00xx{\"result\":\"SUCCESS\"}\n" ) + "//00xx{\"completedNormally\":true}\n" ) , ios.contents ( Stream.OUT ) ) ; }
Source:
public void acceptRingingCallWithVideoState ( int videoState ) { try { com.android.server.telecom.Log.startSession ( "TSI.aRCWVS" ) ; synchronized ( mLock ) { enforceModifyPermission ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { acceptRingingCallInternal ( videoState ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void acceptRingingCallWithVideoState ( int videoState ) { try { android.telecom.Log.startSession ( "TSI.aRCWVS" ) ; synchronized ( mLock ) { enforceModifyPermission ( ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { acceptRingingCallInternal ( videoState ) ; } finally { android.os.Binder.restoreCallingIdentity ( token ) ; } } } finally { android.telecom.Log.endSession ( ) ; } }
Source:
public void testEmbedded ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "embedded" ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , ":main:assembleRelease" ) ; java.io.File mainApk = new java.io.File ( project , ( ( "main/build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/apk/main-release-unsigned.apk" ) ) ; com.android.build.gradle.ManualBuildTest.checkJar ( mainApk , java.util.Collections.< java.lang.String , java.lang.String > singletonMap ( "assets/embedded-release-unsigned.apk" , null ) ) ; }

Target:
public void testEmbedded ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "embedded" ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_TEST_VERSION , project , java.util.Collections.< java.lang.String > emptyList ( ) , "clean" , ":main:assembleRelease" ) ; java.io.File mainApk = new java.io.File ( project , ( ( "main/build/" + ( com.android.builder.model.AndroidProject.FD_OUTPUTS ) ) + "/apk/main-release-unsigned.apk" ) ) ; com.android.build.gradle.ManualBuildTest.checkJar ( mainApk , java.util.Collections.< java.lang.String , java.lang.String > singletonMap ( "assets/embedded-release-unsigned.apk" , null ) ) ; }
Source:
static float computeStraightness ( float [ ] points ) { float totalLen = android.gesture.GestureUtils.computeTotalLength ( points ) ; float dx = ( points [ 2 ] ) - ( points [ 0 ] ) ; float dy = ( points [ 3 ] ) - ( points [ 1 ] ) ; return ( ( float ) ( java.lang.Math.sqrt ( ( ( dx * dx ) + ( dy * dy ) ) ) ) ) / totalLen ; }

Target:
static float computeStraightness ( float [ ] points ) { float totalLen = android.gesture.GestureUtils.computeTotalLength ( points ) ; float dx = ( points [ 2 ] ) - ( points [ 0 ] ) ; float dy = ( points [ 3 ] ) - ( points [ 1 ] ) ; return ( ( float ) ( java.lang.Math.hypot ( dx , dy ) ) ) / totalLen ; }
Source:
private void getPliResponse ( java.io.ByteArrayOutputStream buf ) { java.lang.String lang = android.os.SystemProperties.get ( "persist.sys.language" ) ; if ( lang != null ) { int tag = ComprehensionTlvTag.LANGUAGE.value ( ) ; buf.write ( tag ) ; com.android.internal.telephony.cat.ResponseData.writeLength ( buf , lang.length ( ) ) ; buf.write ( lang.getBytes ( ) , 0 , lang.length ( ) ) ; } }

Target:
private void getPliResponse ( java.io.ByteArrayOutputStream buf ) { final java.lang.String lang = java.util.Locale.getDefault ( ) . getLanguage ( ) ; if ( lang != null ) { int tag = ComprehensionTlvTag.LANGUAGE.value ( ) ; buf.write ( tag ) ; com.android.internal.telephony.cat.ResponseData.writeLength ( buf , lang.length ( ) ) ; buf.write ( lang.getBytes ( ) , 0 , lang.length ( ) ) ; } }
Source:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getConnectionState(): device=" + ( device.getAddress ( ) ) ) ) ; return STATE_DISCONNECTED ; }

Target:
public int getConnectionState ( android.bluetooth.BluetoothDevice device ) { android.util.Log.v ( android.bluetooth.BluetoothInputHost.TAG , ( "getConnectionState(): device=" + device ) ) ; if ( ( mService ) != null ) { try { return mService.getConnectionState ( device ) ; } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.bluetooth.BluetoothInputHost.TAG , e.toString ( ) ) ; } } else { android.util.Log.w ( android.bluetooth.BluetoothInputHost.TAG , "Proxy not attached to service" ) ; } return STATE_DISCONNECTED ; }
Source:
static com.google.common.collect.ImmutableList < com.google.devtools.build.android.desugar.InputFileProvider > toRegisteredInputFileProvider ( com.google.common.io.Closer closer , java.util.List < java.nio.file.Path > paths ) throws java.io.IOException { com.google.common.collect.ImmutableList.Builder < com.google.devtools.build.android.desugar.InputFileProvider > builder = new com.google.common.collect.ImmutableList.Builder < > ( ) ; for ( java.nio.file.Path path : paths ) { builder.add ( closer.register ( com.google.devtools.build.android.desugar.Desugar.toInputFileProvider ( path ) ) ) ; } return builder.build ( ) ; }

Target:
static com.google.common.collect.ImmutableList < com.google.devtools.build.android.desugar.io.InputFileProvider > toRegisteredInputFileProvider ( com.google.common.io.Closer closer , java.util.List < java.nio.file.Path > paths ) throws java.io.IOException { com.google.common.collect.ImmutableList.Builder < com.google.devtools.build.android.desugar.io.InputFileProvider > builder = new com.google.common.collect.ImmutableList.Builder < > ( ) ; for ( java.nio.file.Path path : paths ) { builder.add ( closer.register ( com.google.devtools.build.android.desugar.io.InputFileProvider.open ( path ) ) ) ; } return builder.build ( ) ; }
Source:
public void execute ( com.android.build.gradle.model.AndroidBinary androidBinary ) { com.android.build.gradle.model.DefaultAndroidBinary binary = ( ( com.android.build.gradle.model.DefaultAndroidBinary ) ( androidBinary ) ) ; if ( binary.getTargetAbi ( ) . isEmpty ( ) ) { binary.builtBy ( binary.getNativeBinaries ( ) ) ; } else { for ( org.gradle.nativeplatform.NativeLibraryBinarySpec nativeBinary : binary.getNativeBinaries ( ) ) { if ( binary.getTargetAbi ( ) . contains ( nativeBinary.getTargetPlatform ( ) . getName ( ) ) ) { binary.builtBy ( nativeBinary ) ; } } } }

Target:
public void execute ( com.android.build.gradle.model.AndroidBinary androidBinary ) { com.android.build.gradle.model.DefaultAndroidBinary binary = ( ( com.android.build.gradle.model.DefaultAndroidBinary ) ( androidBinary ) ) ; for ( org.gradle.nativeplatform.NativeLibraryBinarySpec nativeBinary : binary.getNativeBinaries ( ) ) { if ( ( binary.getTargetAbi ( ) . isEmpty ( ) ) || ( binary.getTargetAbi ( ) . contains ( nativeBinary.getTargetPlatform ( ) . getName ( ) ) ) ) { binary.getBuildTask ( ) . dependsOn ( com.android.build.gradle.ndk.internal.NdkNamingScheme.getNdkBuildTaskName ( nativeBinary ) ) ; } } }
Source:
public java.lang.annotation.Annotation [ ] getAnnotations ( ) { try { java.lang.Class < ? > c = java.lang.Class.forName ( ( ( getName ( ) ) + ".package-info" ) ) ; return c.getAnnotations ( ) ; } catch ( java.lang.Exception ex ) { return java.lang.Package.NO_ANNOTATIONS ; } }

Target:
public java.lang.annotation.Annotation [ ] getAnnotations ( ) { try { java.lang.ClassLoader classLoader = dalvik.system.VMStack.getCallingClassLoader ( ) ; if ( classLoader == null ) { classLoader = java.lang.ClassLoader.getSystemClassLoader ( ) ; } java.lang.Class < ? > c = java.lang.Class.forName ( ( ( getName ( ) ) + ".package-info" ) , true , classLoader ) ; return c.getAnnotations ( ) ; } catch ( java.lang.Exception ex ) { return java.lang.Package.NO_ANNOTATIONS ; } }
Source:
private void addDeviceCategory ( android.preference.PreferenceGroup preferenceGroup , int titleId , com.android.settingslib.bluetooth.BluetoothDeviceFilter.Filter filter , boolean addCachedDevices ) { preferenceGroup.setTitle ( titleId ) ; getPreferenceScreen ( ) . addPreference ( preferenceGroup ) ; setFilter ( filter ) ; setDeviceListGroup ( preferenceGroup ) ; if ( addCachedDevices ) { addCachedDevices ( ) ; } preferenceGroup.setEnabled ( true ) ; }

Target:
private void addDeviceCategory ( android.support.v7.preference.PreferenceGroup preferenceGroup , int titleId , com.android.settingslib.bluetooth.BluetoothDeviceFilter.Filter filter , boolean addCachedDevices ) { cacheRemoveAllPrefs ( preferenceGroup ) ; preferenceGroup.setTitle ( titleId ) ; setFilter ( filter ) ; setDeviceListGroup ( preferenceGroup ) ; if ( addCachedDevices ) { addCachedDevices ( ) ; } preferenceGroup.setEnabled ( true ) ; removeCachedPrefs ( preferenceGroup ) ; }
Source:
private java.io.File createRscLibrary ( ) throws java.io.IOException , java.lang.Exception { java.io.File emptyLib = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "rsc" , ".jack" ) ; com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; toolchain.addResource ( com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.library.test001.lib" ) ) ; toolchain.srcToLib ( null , emptyLib , true ) ; return emptyLib ; }

Target:
private java.io.File createRscLibrary ( ) throws java.io.IOException , java.lang.Exception { com.android.jack.test.toolchain.JackBasedToolchain toolchain = com.android.jack.test.toolchain.AbstractTestTools.getCandidateToolchain ( com.android.jack.test.toolchain.JackBasedToolchain.class ) ; java.io.File emptyLib = com.android.jack.test.toolchain.AbstractTestTools.createTempFile ( "rsc" , toolchain.getLibraryExtension ( ) ) ; toolchain.addResource ( com.android.jack.test.toolchain.AbstractTestTools.getTestRootDir ( "com.android.jack.library.test001.lib" ) ) ; toolchain.srcToLib ( emptyLib , true ) ; return emptyLib ; }
Source:
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 ) ; }

Target:
public void setPictureListener ( final android.webkit.WebView.PictureListener listener ) { if ( checkNeedsPost ( ) ) { mRunQueue.addTask ( new java.lang.Runnable ( ) { @ java.lang.Override public void run ( ) { setPictureListener ( listener ) ; } } ) ; return ; } mContentsClientAdapter.setPictureListener ( listener ) ; mAwContents.enableOnNewPicture ( ( listener != null ) , ( ( mAppTargetSdkVersion ) >= ( Build.VERSION_CODES.JELLY_BEAN_MR2 ) ) ) ; }
Source:
public android.net.NetworkStats getVtDataUsage ( boolean perUidStats ) { try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getVtDataUsage ( getSubId ( ) , perUidStats ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getVtDataUsage" , e ) ; } return null ; }

Target:
public android.net.NetworkStats getVtDataUsage ( int how ) { boolean perUidStats = how == ( android.net.NetworkStats.STATS_PER_UID ) ; try { com.android.internal.telephony.ITelephony service = getITelephony ( ) ; if ( service != null ) { return service.getVtDataUsage ( getSubId ( ) , perUidStats ) ; } } catch ( android.os.RemoteException e ) { android.util.Log.e ( android.telephony.TelephonyManager.TAG , "Error calling ITelephony#getVtDataUsage" , e ) ; } return null ; }
Source:
public void run ( ) { while ( mRun ) { android.graphics.Canvas c = null ; try { c = mSurfaceHolder.lockCanvas ( null ) ; synchronized ( mSurfaceHolder ) { if ( ( mMode ) == ( com.example.android.lunarlander.LunarView.LunarThread.STATE_RUNNING ) ) updatePhysics ( ) ; doDraw ( c ) ; } } finally { if ( c != null ) { mSurfaceHolder.unlockCanvasAndPost ( c ) ; } } } }

Target:
public void run ( ) { while ( mRun ) { android.graphics.Canvas c = null ; try { c = mSurfaceHolder.lockCanvas ( null ) ; synchronized ( mSurfaceHolder ) { if ( ( mMode ) == ( com.example.android.lunarlander.LunarView.LunarThread.STATE_RUNNING ) ) updatePhysics ( ) ; synchronized ( mRunLock ) { if ( mRun ) doDraw ( c ) ; } } } finally { if ( c != null ) { mSurfaceHolder.unlockCanvasAndPost ( c ) ; } } } }
Source:
public static java.lang.String map2OID ( java.lang.String algName ) { java.lang.String result = org.apache.harmony.security.utils.AlgNameMapper.alg2OidMap.get ( algName.toUpperCase ( java.util.Locale.US ) ) ; if ( result != null ) { return result ; } org.apache.harmony.security.utils.AlgNameMapperSource s = org.apache.harmony.security.utils.AlgNameMapper.source ; if ( s != null ) { return s.mapNameToOid ( algName ) ; } return null ; }

Target:
public static java.lang.String map2OID ( java.lang.String algName ) { org.apache.harmony.security.utils.AlgNameMapper.checkCacheVersion ( ) ; java.lang.String result = org.apache.harmony.security.utils.AlgNameMapper.alg2OidMap.get ( algName.toUpperCase ( java.util.Locale.US ) ) ; if ( result != null ) { return result ; } org.apache.harmony.security.utils.AlgNameMapperSource s = org.apache.harmony.security.utils.AlgNameMapper.source ; if ( s != null ) { return s.mapNameToOid ( algName ) ; } return null ; }
Source:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { org.bouncycastle.math.ec.ECCurve cFp239v3 = new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "883423532389192164791648750360308885314476597252960362792450860609699839" ) , new java.math.BigInteger ( "7fffffffffffffffffffffff7fffffffffff8000000000007ffffffffffc" , 16 ) , new java.math.BigInteger ( "255705fa2a306654b1f4cb03d6a750a30c250102d4988717d9ba15ab6d3e" , 16 ) ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( cFp239v3 , cFp239v3.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "036768ae8e18bb92cfcf005c949aa2c6d94853d0e660bbf854b1c9505fe95a" ) ) , new java.math.BigInteger ( "7fffffffffffffffffffffff7fffff975deb41b3a6057c3c432146526551" , 16 ) , java.math.BigInteger.valueOf ( 1 ) , org.bouncycastle.util.encoders.Hex.decode ( "7d7374168ffe3471b60a857686a19475d3bfa2ff" ) ) ; }

Target:
protected org.bouncycastle.asn1.x9.X9ECParameters createParameters ( ) { java.math.BigInteger n = new java.math.BigInteger ( "7fffffffffffffffffffffff800000cfa7e8594377d414c03821bc582063" , 16 ) ; java.math.BigInteger h = java.math.BigInteger.valueOf ( 1 ) ; org.bouncycastle.math.ec.ECCurve cFp239v2 = new org.bouncycastle.math.ec.ECCurve.Fp ( new java.math.BigInteger ( "883423532389192164791648750360308885314476597252960362792450860609699839" ) , new java.math.BigInteger ( "7fffffffffffffffffffffff7fffffffffff8000000000007ffffffffffc" , 16 ) , new java.math.BigInteger ( "617fab6832576cbbfed50d99f0249c3fee58b94ba0038c7ae84c8c832f2c" , 16 ) , n , h ) ; return new org.bouncycastle.asn1.x9.X9ECParameters ( cFp239v2 , cFp239v2.decodePoint ( org.bouncycastle.util.encoders.Hex.decode ( "0238af09d98727705120c921bb5e9e26296a3cdcf2f35757a0eafd87b830e7" ) ) , n , h , org.bouncycastle.util.encoders.Hex.decode ( "e8b4011604095303ca3b8099982be09fcb9ae616" ) ) ; }
Source:
private java.lang.CharSequence getDialerTos ( ) { if ( ! ( isVoicemailTranscriptionEnabled ( ) ) ) { return "" ; } if ( isVvm3 ( ) ) { return context.getString ( R.string.dialer_terms_and_conditions_for_verizon_1_0 ) ; } else { java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return context.getString ( R.string.dialer_terms_and_conditions_1_0 , learnMoreText ) ; } }

Target:
private java.lang.CharSequence getExistingUserDialerTos ( ) { if ( ! ( isVoicemailTranscriptionEnabled ( ) ) ) { return "" ; } java.lang.String learnMoreText = context.getString ( R.string.dialer_terms_and_conditions_learn_more ) ; return context.getString ( R.string.dialer_terms_and_conditions_existing_user , learnMoreText ) ; }
Source:
public void testStageInstallWithErrorCode_missingTzLookupFile ( ) throws java.lang.Exception { com.android.timezone.distro.TimeZoneDistro stagedDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( stagedDistro ) ) ; assertInstallDistroStaged ( stagedDistro ) ; com.android.timezone.distro.TimeZoneDistro incompleteDistro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEWER_RULES_VERSION , 1 ) . setTzLookupXml ( null ) . buildUnvalidated ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_STRUCTURE , installer.stageInstallWithErrorCode ( incompleteDistro ) ) ; assertInstallDistroStaged ( stagedDistro ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withNewerDistroVersion ( ) throws java.lang.Exception { byte [ ] distroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBuilder ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) . replaceFormatVersionForTests ( 2 , 1 ) . buildUnvalidatedBytes ( ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_FAIL_BAD_DISTRO_FORMAT_VERSION , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) ) ) ; assertNoDistroOperationStaged ( ) ; assertNoInstalledDistro ( ) ; }
Source:
public com.android.ddmlib.SyncService.SyncResult pullFile ( com.android.ddmlib.FileListingService.FileEntry remote , java.lang.String localFilename , com.android.ddmlib.SyncService.ISyncProgressMonitor monitor ) { int total = remote.getSizeValue ( ) ; monitor.start ( total ) ; com.android.ddmlib.SyncService.SyncResult result = doPullFile ( remote.getFullPath ( ) , localFilename , monitor ) ; monitor.stop ( ) ; return result ; }

Target:
public void pullFile ( com.android.ddmlib.FileListingService.FileEntry remote , java.lang.String localFilename , com.android.ddmlib.SyncService.ISyncProgressMonitor monitor ) throws com.android.ddmlib.SyncException , com.android.ddmlib.TimeoutException , java.io.FileNotFoundException , java.io.IOException { int total = remote.getSizeValue ( ) ; monitor.start ( total ) ; doPullFile ( remote.getFullPath ( ) , localFilename , monitor ) ; monitor.stop ( ) ; }
Source:
public boolean isAlive ( ) { if ( mClosed ) { return false ; } int state = getState ( ) ; switch ( state ) { case com.android.ims.internal.ImsCallSession.State.IDLE : case com.android.ims.internal.ImsCallSession.State.INITIATED : case com.android.ims.internal.ImsCallSession.State.NEGOTIATING : case com.android.ims.internal.ImsCallSession.State.ESTABLISHING : case com.android.ims.internal.ImsCallSession.State.ESTABLISHED : case com.android.ims.internal.ImsCallSession.State.RENEGOTIATING : case com.android.ims.internal.ImsCallSession.State.REESTABLISHING : return true ; default : return false ; } }

Target:
public boolean isAlive ( ) { if ( mClosed ) { return false ; } int state = getState ( ) ; switch ( state ) { case android.telephony.ims.ImsCallSession.State.IDLE : case android.telephony.ims.ImsCallSession.State.INITIATED : case android.telephony.ims.ImsCallSession.State.NEGOTIATING : case android.telephony.ims.ImsCallSession.State.ESTABLISHING : case android.telephony.ims.ImsCallSession.State.ESTABLISHED : case android.telephony.ims.ImsCallSession.State.RENEGOTIATING : case android.telephony.ims.ImsCallSession.State.REESTABLISHING : return true ; default : return false ; } }
Source:
public boolean waitFor ( com.google.common.util.concurrent.Monitor.Guard guard , long time , java.util.concurrent.TimeUnit unit ) throws java.lang.InterruptedException { if ( ( guard.monitor ) != ( this ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( lock.isHeldByCurrentThread ( ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } return waitInterruptibly ( guard , unit.toNanos ( time ) , true ) ; }

Target:
public void waitForUninterruptibly ( com.google.common.util.concurrent.Monitor.Guard guard ) { if ( ! ( ( ( guard.monitor ) == ( this ) ) & ( lock.isHeldByCurrentThread ( ) ) ) ) { throw new java.lang.IllegalMonitorStateException ( ) ; } if ( ! ( guard.isSatisfied ( ) ) ) { awaitUninterruptibly ( guard , true ) ; } }
Source:
public void sendPassThroughCmd ( android.bluetooth.BluetoothDevice device , int keyCode , int keyState ) { if ( com.android.bluetooth.avrcp.AvrcpControllerService.DBG ) android.util.Log.d ( com.android.bluetooth.avrcp.AvrcpControllerService.TAG , "sendPassThroughCmd" ) ; android.util.Log.v ( com.android.bluetooth.avrcp.AvrcpControllerService.TAG , ( ( ( "keyCode: " + keyCode ) + " keyState: " ) + keyState ) ) ; if ( device == null ) { throw new java.lang.NullPointerException ( "device == null" ) ; } enforceCallingOrSelfPermission ( com.android.bluetooth.avrcp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; android.os.Message msg = mHandler.obtainMessage ( com.android.bluetooth.avrcp.AvrcpControllerService.MESSAGE_SEND_PASS_THROUGH_CMD , keyCode , keyState , device ) ; mHandler.sendMessage ( msg ) ; }

Target:
public android.bluetooth.BluetoothAvrcpPlayerSettings getPlayerSettings ( android.bluetooth.BluetoothDevice device ) { if ( com.android.bluetooth.avrcp.AvrcpControllerService.DBG ) android.util.Log.d ( com.android.bluetooth.avrcp.AvrcpControllerService.TAG , "getPlayerApplicationSetting " ) ; enforceCallingOrSelfPermission ( com.android.bluetooth.avrcp.BLUETOOTH_PERM , "Need BLUETOOTH permission" ) ; return getCurrentPlayerAppSetting ( ) ; }
Source:
public void testAddObserverReturnValue ( ) { org.chromium.base.ObserverList < java.lang.Object > observerList = new org.chromium.base.ObserverList < java.lang.Object > ( ) ; java.lang.Object a = new java.lang.Object ( ) ; assertTrue ( observerList.addObserver ( a ) ) ; assertFalse ( observerList.addObserver ( a ) ) ; java.lang.Object b = new java.lang.Object ( ) ; assertTrue ( observerList.addObserver ( b ) ) ; assertFalse ( observerList.addObserver ( null ) ) ; }

Target:
public void testAddObserverReturnValue ( ) { org.chromium.base.ObserverList < java.lang.Object > observerList = new org.chromium.base.ObserverList < java.lang.Object > ( ) ; java.lang.Object a = new java.lang.Object ( ) ; org.junit.Assert.assertTrue ( observerList.addObserver ( a ) ) ; org.junit.Assert.assertFalse ( observerList.addObserver ( a ) ) ; java.lang.Object b = new java.lang.Object ( ) ; org.junit.Assert.assertTrue ( observerList.addObserver ( b ) ) ; org.junit.Assert.assertFalse ( observerList.addObserver ( null ) ) ; }
Source:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { checkCipherState ( ) ; if ( input == null ) { throw new java.lang.IllegalArgumentException ( "Null input buffer" ) ; } chooseFirstProvider ( ) ; return spi.engineDoFinal ( input , 0 , input.length ) ; }

Target:
public final byte [ ] doFinal ( byte [ ] input ) throws javax.crypto.BadPaddingException , javax.crypto.IllegalBlockSizeException { checkCipherState ( ) ; if ( input == null ) { throw new java.lang.IllegalArgumentException ( "Null input buffer" ) ; } updateProviderIfNeeded ( ) ; return spi.engineDoFinal ( input , 0 , input.length ) ; }
Source:
public int enableSystemApp ( @ android.annotation.NonNull android.content.ComponentName admin , android.content.Intent intent ) { throwIfParentInstance ( "enableSystemApp" ) ; if ( ( mService ) != null ) { try { return mService.enableSystemAppWithIntent ( admin , intent ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return 0 ; }

Target:
public boolean setPermittedCrossProfileNotificationListeners ( @ android.annotation.NonNull android.content.ComponentName admin , @ android.annotation.Nullable java.util.List < java.lang.String > packageList ) { throwIfParentInstance ( "setPermittedCrossProfileNotificationListeners" ) ; if ( ( mService ) != null ) { try { return mService.setPermittedCrossProfileNotificationListeners ( admin , packageList ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowFromSystemServer ( ) ; } } return false ; }
Source:
public void testAesCbcHmacSha512Udp6 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_SHA512 , getAuthKey ( 512 ) , 256 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV6_LOOPBACK , crypt , auth ) ; }

Target:
public void testInterfaceCountersUdp4 ( ) throws java.lang.Exception { android.net.IpSecAlgorithm crypt = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.CRYPT_AES_CBC , android.net.cts.IpSecManagerTest.CRYPT_KEY ) ; android.net.IpSecAlgorithm auth = new android.net.IpSecAlgorithm ( android.net.IpSecAlgorithm.AUTH_HMAC_MD5 , getAuthKey ( 128 ) , 96 ) ; checkTransform ( android.system.OsConstants.IPPROTO_UDP , android.net.cts.IpSecManagerTest.IPV4_LOOPBACK , crypt , auth , false , 1000 ) ; }
Source:
public void putExtras ( java.lang.String callId , android.os.Bundle extras ) { com.android.server.telecom.Log.startSession ( "CSW.pE" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { android.os.Bundle.setDefusable ( extras , true ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.putExtras ( Call.SOURCE_CONNECTION_SERVICE , extras ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; com.android.server.telecom.Log.endSession ( ) ; } }

Target:
public void putExtras ( java.lang.String callId , android.os.Bundle extras ) { android.telecom.Log.startSession ( "CSW.pE" ) ; long token = android.os.Binder.clearCallingIdentity ( ) ; try { synchronized ( mLock ) { android.os.Bundle.setDefusable ( extras , true ) ; com.android.server.telecom.Call call = mCallIdMapper.getCall ( callId ) ; if ( call != null ) { call.putExtras ( Call.SOURCE_CONNECTION_SERVICE , extras ) ; } } } finally { android.os.Binder.restoreCallingIdentity ( token ) ; android.telecom.Log.endSession ( ) ; } }
Source:
public void onPreferencesMenuSelected ( ) { com.android.sdkuilib.internal.repository.SettingsController.Settings settings1 = new com.android.sdkuilib.internal.repository.SettingsController.Settings ( mSettingsController.getSettings ( ) ) ; com.android.sdkuilib.internal.repository.SettingsDialog sd = new com.android.sdkuilib.internal.repository.SettingsDialog ( mShell , mSwtUpdaterData ) ; sd.open ( ) ; com.android.sdkuilib.internal.repository.SettingsController.Settings settings2 = mSettingsController.getSettings ( ) ; if ( ( ( settings1.getForceHttp ( ) ) != ( settings2.getForceHttp ( ) ) ) || ( ( settings1.getEnablePreviews ( ) ) != ( settings2.getEnablePreviews ( ) ) ) ) { mPkgPage.onSdkReload ( ) ; } }

Target:
public void onPreferencesMenuSelected ( ) { com.android.sdklib.internal.repository.updater.SettingsController.Settings settings1 = new com.android.sdklib.internal.repository.updater.SettingsController.Settings ( mSettingsController.getSettings ( ) ) ; com.android.sdkuilib.internal.repository.SettingsDialog sd = new com.android.sdkuilib.internal.repository.SettingsDialog ( mShell , mSwtUpdaterData ) ; sd.open ( ) ; com.android.sdklib.internal.repository.updater.SettingsController.Settings settings2 = mSettingsController.getSettings ( ) ; if ( ( ( settings1.getForceHttp ( ) ) != ( settings2.getForceHttp ( ) ) ) || ( ( settings1.getEnablePreviews ( ) ) != ( settings2.getEnablePreviews ( ) ) ) ) { mPkgPage.onSdkReload ( ) ; } }
Source:
private void checkMetadataTagAndCategoryRationality ( javax.lang.model.element.VariableElement optionField ) throws com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException { com.google.devtools.common.options.Option annotation = optionField.getAnnotation ( com.google.devtools.common.options.Option.class ) ; com.google.devtools.common.options.OptionMetadataTag [ ] metadataTags = annotation.metadataTags ( ) ; com.google.devtools.common.options.OptionDocumentationCategory category = annotation.documentationCategory ( ) ; for ( com.google.devtools.common.options.OptionMetadataTag tag : metadataTags ) { if ( ( tag == ( com.google.devtools.common.options.OptionMetadataTag.HIDDEN ) ) || ( tag == ( com.google.devtools.common.options.OptionMetadataTag.INTERNAL ) ) ) { if ( category != ( com.google.devtools.common.options.OptionDocumentationCategory.UNDOCUMENTED ) ) { throw new com.google.devtools.common.options.processor.OptionProcessor.OptionProcessorException ( optionField , "Option has metadata tag %s but does not have category UNDOCUMENTED. Please fix." , tag ) ; } } } }

Target:
private void checkMetadataTagAndCategoryRationality ( javax.lang.model.element.VariableElement optionField ) throws com.google.devtools.common.options.processor.OptionProcessorException { com.google.devtools.common.options.Option annotation = optionField.getAnnotation ( com.google.devtools.common.options.Option.class ) ; com.google.devtools.common.options.OptionMetadataTag [ ] metadataTags = annotation.metadataTags ( ) ; com.google.devtools.common.options.OptionDocumentationCategory category = annotation.documentationCategory ( ) ; for ( com.google.devtools.common.options.OptionMetadataTag tag : metadataTags ) { if ( ( tag == ( com.google.devtools.common.options.OptionMetadataTag.HIDDEN ) ) || ( tag == ( com.google.devtools.common.options.OptionMetadataTag.INTERNAL ) ) ) { if ( category != ( com.google.devtools.common.options.OptionDocumentationCategory.UNDOCUMENTED ) ) { throw new com.google.devtools.common.options.processor.OptionProcessorException ( optionField , "Option has metadata tag %s but does not have category UNDOCUMENTED. Please fix." , tag ) ; } } } }
Source:
public void setResourceImportCollisionPolicy ( @ javax.annotation.Nonnull com.android.jack.api.v01.ResourceCollisionPolicy resourceImportCollisionPolicy ) throws com.android.jack.api.v01.ConfigurationException { java.lang.String collissionPolicy = null ; switch ( resourceImportCollisionPolicy ) { case FAIL : { collissionPolicy = "fail" ; break ; } case KEEP_FIRST : { collissionPolicy = "keep-first" ; break ; } default : { throw new com.android.jack.api.v01.ConfigurationException ( ( ( "Resource collision policy '" + resourceImportCollisionPolicy ) + "' is unsupported" ) ) ; } } options.addProperty ( ResourceImporter.RESOURCE_COLLISION_POLICY.getName ( ) , collissionPolicy ) ; }

Target:
public void setResourceImportCollisionPolicy ( @ javax.annotation.Nonnull com.android.jack.api.v01.ResourceCollisionPolicy resourceImportCollisionPolicy ) throws com.android.jack.api.v01.ConfigurationException { java.lang.String collisionPolicy = null ; switch ( resourceImportCollisionPolicy ) { case FAIL : { collisionPolicy = "fail" ; break ; } case KEEP_FIRST : { collisionPolicy = "keep-first" ; break ; } default : { throw new com.android.jack.api.v01.ConfigurationException ( ( ( "Resource collision policy '" + ( resourceImportCollisionPolicy.toString ( ) ) ) + "' is unsupported" ) ) ; } } options.addProperty ( ResourceImporter.RESOURCE_COLLISION_POLICY.getName ( ) , collisionPolicy ) ; }
Source:
private boolean shouldShowEndCallButton ( com.android.incallui.call.DialerCall primary , int callState ) { if ( primary == null ) { return false ; } if ( ( ( ( ! ( DialerCall.State.isConnectingOrConnected ( callState ) ) ) && ( callState != ( com.android.incallui.call.DialerCall.State.DISCONNECTING ) ) ) && ( callState != ( com.android.incallui.call.DialerCall.State.DISCONNECTED ) ) ) || ( callState == ( com.android.incallui.call.DialerCall.State.INCOMING ) ) ) { return false ; } if ( ( this . primary.getVideoTech ( ) . getSessionModificationState ( ) ) == ( com.android.incallui.videotech.utils.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST ) ) { return false ; } return true ; }

Target:
private boolean shouldShowEndCallButton ( com.android.incallui.call.DialerCall primary , int callState ) { if ( primary == null ) { return false ; } if ( ( ( ( ! ( com.android.incallui.call.state.DialerCallState.isConnectingOrConnected ( callState ) ) ) && ( callState != ( com.android.incallui.call.state.DialerCallState.DISCONNECTING ) ) ) && ( callState != ( com.android.incallui.call.state.DialerCallState.DISCONNECTED ) ) ) || ( callState == ( com.android.incallui.call.state.DialerCallState.INCOMING ) ) ) { return false ; } if ( ( this . primary.getVideoTech ( ) . getSessionModificationState ( ) ) == ( com.android.incallui.videotech.utils.SessionModificationState.RECEIVED_UPGRADE_TO_VIDEO_REQUEST ) ) { return false ; } return true ; }
Source:
public void markBootComplete ( java.lang.String instructionSet ) throws com.android.internal.os.InstallerConnection.InstallerException { com.android.server.pm.Installer.assertValidInstructionSet ( instructionSet ) ; checkLock ( ) ; try { mInstalld.markBootComplete ( instructionSet ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }

Target:
public void createUserData ( java.lang.String uuid , int userId , int userSerial , int flags ) throws com.android.internal.os.InstallerConnection.InstallerException { if ( ! ( checkBeforeRemote ( ) ) ) return ; try { mInstalld.createUserData ( uuid , userId , userSerial , flags ) ; } catch ( android.os.RemoteException | android.os.ServiceSpecificException e ) { throw new com.android.internal.os.InstallerConnection.InstallerException ( e.getMessage ( ) ) ; } }