auphong2707/dl4se-code-review-dataset huggingface dataset:
Source:
public void test_toString ( ) { java.text.FieldPosition fpos = new java.text.FieldPosition ( 1 ) ; fpos.setBeginIndex ( 2 ) ; fpos.setEndIndex ( 3 ) ; assertEquals ( "ToString returned the wrong value:" , "java.text.FieldPosition[attribute=null, field=1, beginIndex=2, endIndex=3]" , fpos.toString ( ) ) ; java.text.FieldPosition fpos2 = new java.text.FieldPosition ( java.text.DateFormat.Field.ERA ) ; fpos2.setBeginIndex ( 4 ) ; fpos2.setEndIndex ( 5 ) ; assertEquals ( "ToString returned the wrong value:" , ( ( "java.text.FieldPosition[attribute=" + ( java.text.DateFormat.Field.ERA ) ) + ", field=-1, beginIndex=4, endIndex=5]" ) , fpos2.toString ( ) ) ; }

Target:
public void test_toString ( ) { java.text.FieldPosition fpos = new java.text.FieldPosition ( 1 ) ; fpos.setBeginIndex ( 2 ) ; fpos.setEndIndex ( 3 ) ; assertEquals ( "ToString returned the wrong value:" , "java.text.FieldPosition[attribute=null,field=1,beginIndex=2,endIndex=3]" , fpos.toString ( ) ) ; java.text.FieldPosition fpos2 = new java.text.FieldPosition ( java.text.DateFormat.Field.ERA ) ; fpos2.setBeginIndex ( 4 ) ; fpos2.setEndIndex ( 5 ) ; assertEquals ( "ToString returned the wrong value:" , ( ( "java.text.FieldPosition[attribute=" + ( java.text.DateFormat.Field.ERA ) ) + ",field=-1,beginIndex=4,endIndex=5]" ) , fpos2.toString ( ) ) ; }
Source:
public com.android.jack.test.toolchain.JackApiV01Toolchain build ( ) { return new com.android.jack.test.toolchain.JackApiV01IncrementalToolchain ( com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) ) ; }

Target:
public com.android.jack.test.toolchain.JillApiV01Toolchain build ( ) { java.io.File jillPrebuilt = ( com.android.jack.test.toolchain.AbstractTestTools.isPrebuiltAvailable ( "jill" ) ) ? com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jill" ) : null ; return new com.android.jack.test.toolchain.JillApiV01Toolchain ( jillPrebuilt , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jack" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "legacy-java-compiler" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "jarjar" ) , com.android.jack.test.toolchain.AbstractTestTools.getPrebuilt ( "proguard" ) ) ; }
Source:
public void binderDied ( ) { if ( DEBUG_ALL ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "Death received in " + ( this ) ) + " for thread " ) + ( mAppThread.asBinder ( ) ) ) ) ; synchronized ( this ) { appDiedLocked ( mApp , mPid , mAppThread , true ) ; } }

Target:
public void binderDied ( ) { if ( com.android.server.am.ActivityManagerDebugConfig.DEBUG_ALL ) android.util.Slog.v ( com.android.server.am.ActivityManagerService.TAG , ( ( ( "Death received in " + ( this ) ) + " for thread " ) + ( mAppThread.asBinder ( ) ) ) ) ; synchronized ( this ) { appDiedLocked ( mApp , mPid , mAppThread , true ) ; } }
Source:
public boolean putAll ( com.google.common.collect.Multimap < ? extends K , ? extends V > multimap ) { boolean changed = false ; for ( java.util.Map.Entry < ? extends K , ? extends V > entry : multimap.entries ( ) ) { changed |= put ( entry.getKey ( ) , entry.getValue ( ) ) ; } return changed ; }

Target:
V transform ( java.util.Map.Entry < K , V > entry ) { return entry.getValue ( ) ; }
Source:
public void testStageInstallWithErrorCode_withWorkingDir ( ) throws java.lang.Exception { java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.TimeZoneDistroInstallerTest.createFile ( new java.io.File ( workingDir , "myFile" ) , new byte [ ] { 'a' } ) ; com.android.timezone.distro.TimeZoneDistro distro = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistro ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( distro ) ) ; assertInstallDistroStaged ( distro ) ; assertNoInstalledDistro ( ) ; }

Target:
public void testStageInstallWithErrorCode_withWorkingDir ( ) throws java.lang.Exception { java.io.File workingDir = installer.getWorkingDir ( ) ; assertTrue ( workingDir.mkdir ( ) ) ; libcore.tzdata.update2.TimeZoneDistroInstallerTest.createFile ( new java.io.File ( workingDir , "myFile" ) , new byte [ ] { 'a' } ) ; byte [ ] distroBytes = libcore.tzdata.update2.TimeZoneDistroInstallerTest.createValidTimeZoneDistroBytes ( libcore.tzdata.update2.TimeZoneDistroInstallerTest.NEW_RULES_VERSION , 1 ) ; assertEquals ( TimeZoneDistroInstaller.INSTALL_SUCCESS , installer.stageInstallWithErrorCode ( new com.android.timezone.distro.TimeZoneDistro ( distroBytes ) ) ) ; assertInstallDistroStaged ( distroBytes ) ; assertNoInstalledDistro ( ) ; }
Source:
synchronized void nAllocationData3D ( long id , int xoff , int yoff , int zoff , int mip , int w , int h , int depth , int [ ] d , int sizeBytes ) { validate ( ) ; rsnAllocationData3D ( mContext , id , xoff , yoff , zoff , mip , w , h , depth , d , sizeBytes ) ; }

Target:
synchronized void nScriptSetVarV ( long id , int slot , byte [ ] val , boolean mUseInc ) { validate ( ) ; long curCon = mContext ; if ( mUseInc ) { curCon = mIncCon ; } rsnScriptSetVarV ( curCon , id , slot , val , mUseInc ) ; }
Source:
public void test_isDaemon ( ) { st = new java.lang.Thread ( new org.apache.harmony.tests.java.lang.ThreadTest.SimpleThread ( 1 ) , "SimpleThread10" ) ; assertTrue ( "Non-Daemon thread returned true" , ( ! ( st.isDaemon ( ) ) ) ) ; st.setDaemon ( true ) ; assertTrue ( "Daemon thread returned false" , st.isDaemon ( ) ) ; st.start ( ) ; }

Target:
public void test_isDaemon ( ) { st = new java.lang.Thread ( new org.apache.harmony.tests.java.lang.ThreadTest.SimpleThread ( 1 ) , "SimpleThread10" ) ; assertEquals ( java.lang.Thread.currentThread ( ) . isDaemon ( ) , st.isDaemon ( ) ) ; st.setDaemon ( true ) ; assertTrue ( "Daemon thread returned false" , st.isDaemon ( ) ) ; st.start ( ) ; try { st.join ( ) ; } catch ( java.lang.InterruptedException ie ) { fail ( ) ; } }
Source:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.PatchFileCreator.create ( myOlderDir , myNewerDir , myFile , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , java.util.Collections.< java.lang.String > emptyList ( ) , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }

Target:
public void testApplyingWithCaseChangedNames ( ) throws java.lang.Exception { com.intellij.openapi.util.io.FileUtil.rename ( new java.io.File ( myOlderDir , "Readme.txt" ) , new java.io.File ( myOlderDir , "README.txt" ) ) ; com.intellij.updater.Patch patch = com.intellij.updater.PatchFileCreator.create ( myPatchSpec , myFile , com.intellij.updater.TEST_UI ) ; assertAppliedAndRevertedCorrectly ( patch , com.intellij.updater.PatchFileCreator.prepareAndValidate ( myFile , myOlderDir , com.intellij.updater.TEST_UI ) ) ; }
Source:
public void onResume ( ) { super . onResume ( ) ; com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( DialerImpression.Type.VVM_SETTINGS_VIEWED ) ; voicemailClient.addActivationStateListener ( this ) ; android.preference.PreferenceScreen preferenceScreen = getPreferenceScreen ( ) ; if ( preferenceScreen != null ) { preferenceScreen.removeAll ( ) ; } addPreferencesFromResource ( R.xml.voicemail_settings ) ; initializePreferences ( ) ; setupVisualVoicemailPreferences ( ) ; setupNotificationsPreference ( ) ; setupAdvancedSettingsPreference ( ) ; }

Target:
public void onResume ( ) { super . onResume ( ) ; com.android.dialer.logging.Logger.get ( getContext ( ) ) . logImpression ( DialerImpression.Type.VVM_SETTINGS_VIEWED ) ; voicemailClient.addActivationStateListener ( this ) ; android.preference.PreferenceScreen preferenceScreen = getPreferenceScreen ( ) ; if ( preferenceScreen != null ) { preferenceScreen.removeAll ( ) ; } addPreferencesFromResource ( R.xml.voicemail_settings ) ; initializeXmlPreferences ( ) ; setupVisualVoicemailPreferences ( ) ; setupNotificationsPreference ( ) ; setupAdvancedSettingsPreference ( ) ; }
Source:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( com.android.internal.telephony.CarrierSignalAgent.DBG ) log ( ( "CarrierSignalAgent receiver action: " + action ) ) ; if ( action.equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { loadCarrierConfig ( ) ; } }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String action = intent.getAction ( ) ; if ( com.android.internal.telephony.CarrierSignalAgent.DBG ) log ( ( "CarrierSignalAgent receiver action: " + action ) ) ; if ( action.equals ( CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED ) ) { if ( ( IccCardConstants.State.ABSENT ) == ( mPhone.getIccCard ( ) . getState ( ) ) ) { notifyCarrierSignalReceivers ( new android.content.Intent ( TelephonyIntents.ACTION_CARRIER_SIGNAL_RESET ) ) ; } loadCarrierConfig ( ) ; } }
Source:
public void testStyles ( ) throws java.lang.Exception { assertEquals ( ( "pxsp.xml:12: Warning: Should use \"sp\" instead of \"dp\" for text sizes\n" + ( ( ( "pxsp.xml:17: Warning: Avoid using \"px\" as units; use \"dp\" instead\n" + "pxsp.xml:18: Warning: Avoid using \"px\" as units; use \"dp\" instead\n" ) + "pxsp.xml:6: Warning: Should use \"sp\" instead of \"dp\" for text sizes\n" ) + "pxsp.xml:9: Warning: Avoid using \"px\" as units; use \"dp\" instead" ) ) , lintFiles ( "res/values/pxsp.xml" ) ) ; }

Target:
public void testStyles ( ) throws java.lang.Exception { assertEquals ( ( "res/values/pxsp.xml:9: Warning: Avoid using \"px\" as units; use \"dp\" instead [PxUsage]\n" + ( ( ( ( ( ( ( ( ( ( ( ( ( ( ( " <item name=\"android:textSize\">50px</item>\n" + " ^\n" ) + "res/values/pxsp.xml:17: Warning: Avoid using \"px\" as units; use \"dp\" instead [PxUsage]\n" ) + " <item name=\"android:paddingRight\"> 50px </item>\n" ) + " ^\n" ) + "res/values/pxsp.xml:18: Warning: Avoid using \"px\" as units; use \"dp\" instead [PxUsage]\n" ) + " <item name=\"android:paddingTop\">50px</item>\n" ) + " ^\n" ) + "res/values/pxsp.xml:6: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" ) + " <item name=\"android:textSize\">50dp</item>\n" ) + " ^\n" ) + "res/values/pxsp.xml:12: Warning: Should use \"sp\" instead of \"dp\" for text sizes [SpUsage]\n" ) + " <item name=\"android:textSize\"> 50dip </item>\n" ) + " ^\n" ) + "0 errors, 5 warnings\n" ) + "" ) ) , lintFiles ( "res/values/pxsp.xml" ) ) ; }
Source:
private java.util.List < java.lang.String > getStringList ( java.lang.StringBuilder stringAccumulator ) { java.util.List < java.lang.String > filteredStrings = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String s : getString ( mStringAccumulator ) . split ( com.android.sdklib.devices.DeviceParser.DeviceHandler.sSpaceRegex ) ) { if ( ( s != null ) && ( ! ( s.isEmpty ( ) ) ) ) { filteredStrings.add ( s.trim ( ) ) ; } } return filteredStrings ; }

Target:
private java.util.List < java.lang.String > getStringList ( java.lang.StringBuilder stringAccumulator ) { java.util.List < java.lang.String > filteredStrings = new java.util.ArrayList < java.lang.String > ( ) ; for ( java.lang.String s : com.android.sdklib.devices.DeviceParser.DeviceHandler.getString ( mStringAccumulator ) . split ( com.android.sdklib.devices.DeviceParser.DeviceHandler.sSpaceRegex ) ) { if ( ( s != null ) && ( ! ( s.isEmpty ( ) ) ) ) { filteredStrings.add ( s.trim ( ) ) ; } } return filteredStrings ; }
Source:
private void handleServiceCategoryProgramData ( com.android.internal.telephony.cdma.SmsMessage sms ) { java.util.ArrayList < android.telephony.cdma.CdmaSmsCbProgramData > programDataList = sms.getSmsCbProgramData ( ) ; if ( programDataList == null ) { android.util.Log.e ( com.android.internal.telephony.cdma.CdmaSMSDispatcher.TAG , "handleServiceCategoryProgramData: program data list is null!" ) ; return ; } android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED_ACTION ) ; intent.putExtra ( "sender" , sms.getOriginatingAddress ( ) ) ; intent.putParcelableArrayListExtra ( "program_data" , programDataList ) ; dispatch ( intent , com.android.internal.telephony.cdma.RECEIVE_SMS_PERMISSION , mScpResultsReceiver ) ; }

Target:
private void handleServiceCategoryProgramData ( com.android.internal.telephony.cdma.SmsMessage sms ) { java.util.ArrayList < android.telephony.cdma.CdmaSmsCbProgramData > programDataList = sms.getSmsCbProgramData ( ) ; if ( programDataList == null ) { android.telephony.Rlog.e ( com.android.internal.telephony.cdma.CdmaSMSDispatcher.TAG , "handleServiceCategoryProgramData: program data list is null!" ) ; return ; } android.content.Intent intent = new android.content.Intent ( android.provider.Telephony.Sms.Intents.SMS_SERVICE_CATEGORY_PROGRAM_DATA_RECEIVED_ACTION ) ; intent.putExtra ( "sender" , sms.getOriginatingAddress ( ) ) ; intent.putParcelableArrayListExtra ( "program_data" , programDataList ) ; dispatch ( intent , com.android.internal.telephony.cdma.RECEIVE_SMS_PERMISSION , mScpResultsReceiver ) ; }
Source:
public boolean process ( java.util.Set < ? extends javax.lang.model.element.TypeElement > annotations , javax.annotation.processing.RoundEnvironment roundEnv ) { try { for ( javax.lang.model.element.Element annotatedElement : roundEnv.getElementsAnnotatedWith ( com.google.devtools.common.options.Option.class ) ) { checkInOptionBase ( annotatedElement ) ; } } catch ( com.google.devtools.common.options.OptionProcessor.OptionProcessorException e ) { error ( e.elementInError , e.getMessage ( ) ) ; } return true ; }

Target:
public boolean process ( java.util.Set < ? extends javax.lang.model.element.TypeElement > annotations , javax.annotation.processing.RoundEnvironment roundEnv ) { try { for ( javax.lang.model.element.Element annotatedElement : roundEnv.getElementsAnnotatedWith ( com.google.devtools.common.options.Option.class ) ) { checkModifiers ( annotatedElement ) ; checkInOptionBase ( annotatedElement ) ; } } catch ( com.google.devtools.common.options.OptionProcessor.OptionProcessorException e ) { error ( e.elementInError , e.getMessage ( ) ) ; } return true ; }
Source:
public void run ( ) { uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_X , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.x ) , false ) ; uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_Y , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.y ) , false ) ; uiNode.commitDirtyAttributesToXml ( ) ; }

Target:
public void run ( ) { uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_X , SdkConstants.NS_RESOURCES , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.x ) , false ) ; uiNode.setAttributeValue ( LayoutConstants.ATTR_LAYOUT_Y , SdkConstants.NS_RESOURCES , java.lang.String.format ( LayoutConstants.VALUE_N_DIP , where.y ) , false ) ; uiNode.commitDirtyAttributesToXml ( ) ; }
Source:
public void run ( ) { if ( mIsHttps ) { mResult = sendHttpProbe ( httpsUrl , ValidationProbeEvent.PROBE_HTTPS ) ; } else { mResult = sendHttpProbe ( httpUrl , ValidationProbeEvent.PROBE_HTTP ) ; } if ( ( ( mIsHttps ) && ( mResult.isSuccessful ( ) ) ) || ( ( ! ( mIsHttps ) ) && ( mResult.isPortal ( ) ) ) ) { while ( ( latch.getCount ( ) ) > 0 ) { latch.countDown ( ) ; } } latch.countDown ( ) ; }

Target:
public void run ( ) { if ( mIsHttps ) { mResult = sendDnsAndHttpProbes ( proxy , httpsUrl , ValidationProbeEvent.PROBE_HTTPS ) ; } else { mResult = sendDnsAndHttpProbes ( proxy , httpUrl , ValidationProbeEvent.PROBE_HTTP ) ; } if ( ( ( mIsHttps ) && ( mResult.isSuccessful ( ) ) ) || ( ( ! ( mIsHttps ) ) && ( mResult.isPortal ( ) ) ) ) { while ( ( latch.getCount ( ) ) > 0 ) { latch.countDown ( ) ; } } latch.countDown ( ) ; }
Source:
private com.android.jack.ir.ast.JFieldId getOrCreateAssertionstatusField ( @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest request ) { try { com.android.jack.ir.ast.JFieldId id = currentType.getFieldId ( com.android.jack.transformations.AssertionTransformer.Visitor.ASSERTION_FIELD_NAME , JPrimitiveTypeEnum.BOOLEAN.getType ( ) , FieldKind.STATIC ) ; com.android.jack.ir.ast.JField field = id.getField ( ) ; assert field != null ; if ( field.getEnclosingType ( ) . equals ( currentType ) ) { return id ; } } catch ( com.android.jack.lookup.JLookupException e ) { } return addAssertionStatusToType ( currentType , request ) ; }

Target:
private com.android.jack.ir.ast.JFieldId getOrCreateAssertionstatusField ( @ javax.annotation.Nonnull com.android.jack.transformations.request.TransformationRequest request ) { try { com.android.jack.ir.ast.JFieldId id = currentType.getFieldId ( com.android.jack.transformations.AssertionTransformer.Visitor.ASSERTION_FIELD_NAME , JPrimitiveTypeEnum.BOOLEAN.getType ( ) , FieldKind.STATIC ) ; com.android.jack.ir.ast.JField field = id.getField ( ) ; assert field != null ; if ( field.getEnclosingType ( ) . isSameType ( currentType ) ) { return id ; } } catch ( com.android.jack.lookup.JLookupException e ) { } return addAssertionStatusToType ( currentType , request ) ; }
Source:
public java.lang.String toString ( ) { return java.lang.String.format ( "%s[%d], valInt=%d, valInt2=%d, valString=%s, device=%s" , getTypeString ( ) , type , valueInt , valueInt2 , valueString , device ) ; }

Target:
public void buildString ( java.lang.StringBuilder builder ) { if ( builder == null ) { return ; } builder.append ( getTypeString ( ) ) . append ( "[" ) . append ( type ) . append ( "]" ) . append ( ", valInt=" ) . append ( valueInt ) . append ( ", valInt2=" ) . append ( valueInt2 ) . append ( ", valString=" ) . append ( valueString ) . append ( ", device=" ) . append ( device ) ; }
Source:
public long getContext ( ) throws javax.net.ssl.SSLException { long sslCtx = super . getContext ( ) ; org.conscrypt.NativeCrypto.SSL_CTX_add_client_custom_ext ( sslCtx , TEST_EXTENSION_TYPEA ) ; org.conscrypt.NativeCrypto.SSL_CTX_add_client_custom_ext ( sslCtx , TEST_EXTENSION_TYPEB ) ; return sslCtx ; }

Target:
public void afterHandshake ( long session , long ssl , long context , java.net.Socket socket , java.io.FileDescriptor fd , org.conscrypt.NativeCrypto.SSLHandshakeCallbacks callback ) throws java.lang.Exception { org.conscrypt.NativeCryptoTest.assertEqualByteArrays ( OCSP_TEST_DATA , org.conscrypt.NativeCrypto.SSL_get_ocsp_response ( ssl ) ) ; super . afterHandshake ( session , ssl , context , socket , fd , callback ) ; }
Source:
public void tearDown ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { switch ( mTarget ) { case DEVICE : if ( ( ( ! ( e instanceof com.android.tradefed.device.DeviceNotAvailableException ) ) && ( mCleanup ) ) && ( ( mFilePushed ) != null ) ) { device.executeShellCommand ( ( "rm -r " + ( mFilePushed ) ) ) ; } break ; case HOST : if ( ( mFilePushed ) != null ) { com.android.tradefed.util.FileUtil.deleteFile ( new java.io.File ( mFilePushed ) ) ; } } }

Target:
public void tearDown ( com.android.tradefed.device.ITestDevice device , com.android.tradefed.build.IBuildInfo buildInfo , java.lang.Throwable e ) throws com.android.tradefed.device.DeviceNotAvailableException { switch ( mTarget ) { case DEVICE : if ( ( ( ! ( e instanceof com.android.tradefed.device.DeviceNotAvailableException ) ) && ( mCleanup ) ) && ( ( mFilePushed ) != null ) ) { device.executeShellCommand ( ( "rm -r " + ( mFilePushed ) ) ) ; } break ; case HOST : com.android.tradefed.util.FileUtil.recursiveDelete ( new java.io.File ( mFilePushed ) ) ; break ; } }
Source:
public void onResume ( ) { com.android.dialer.common.LogUtil.d ( "CallLogFragment.onResume" , toString ( ) ) ; super . onResume ( ) ; final boolean hasReadCallLogPermission = com.android.dialer.util.PermissionsUtil.hasPermission ( getActivity ( ) , android.Manifest.permission.READ_CALL_LOG ) ; if ( ( ! ( mHasReadCallLogPermission ) ) && hasReadCallLogPermission ) { mRefreshDataRequired = true ; updateEmptyMessage ( mCallTypeFilter ) ; } mHasReadCallLogPermission = hasReadCallLogPermission ; mAdapter.clearFilteredNumbersCache ( ) ; refreshData ( ) ; mAdapter.onResume ( ) ; rescheduleDisplayUpdate ( ) ; }

Target:
public void onResume ( ) { com.android.dialer.common.LogUtil.enterBlock ( "CallLogFragment.onResume" ) ; super . onResume ( ) ; final boolean hasReadCallLogPermission = com.android.dialer.util.PermissionsUtil.hasPermission ( getActivity ( ) , android.Manifest.permission.READ_CALL_LOG ) ; if ( ( ! ( mHasReadCallLogPermission ) ) && hasReadCallLogPermission ) { mRefreshDataRequired = true ; updateEmptyMessage ( mCallTypeFilter ) ; } mHasReadCallLogPermission = hasReadCallLogPermission ; mAdapter.clearFilteredNumbersCache ( ) ; refreshData ( ) ; mAdapter.onResume ( ) ; rescheduleDisplayUpdate ( ) ; }
Source:
public static javax.net.ssl.TrustManager wrap ( javax.net.ssl.TrustManager trustManager ) { if ( ! ( trustManager instanceof javax.net.ssl.X509TrustManager ) ) { return trustManager ; } return new libcore.javax.net.ssl.TestTrustManager ( ( ( javax.net.ssl.X509TrustManager ) ( trustManager ) ) ) ; }

Target:
public static javax.net.ssl.TrustManager wrap ( javax.net.ssl.TrustManager trustManager ) { if ( trustManager instanceof javax.net.ssl.X509ExtendedTrustManager ) { return new libcore.javax.net.ssl.TestTrustManager ( ( ( javax.net.ssl.X509ExtendedTrustManager ) ( trustManager ) ) ) ; } else if ( trustManager instanceof javax.net.ssl.X509TrustManager ) { return new libcore.javax.net.ssl.TestTrustManager ( ( ( javax.net.ssl.X509TrustManager ) ( trustManager ) ) ) ; } return trustManager ; }
Source:
public void testCorruptOverrideFile ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.makeCorruptFile ( ) , libcore.util.ZoneInfoDBTest.DEFAULT_FILE_1 , libcore.util.ZoneInfoDBTest.DEFAULT_FILE_2 ) ; assertEquals ( libcore.util.ZoneInfoDBTest.CURRENT_VERSION , data.getVersion ( ) ) ; assertEquals ( java.util.TimeZone.getAvailableIDs ( ) . length , data.getAvailableIDs ( ) . length ) ; }

Target:
public void testCorruptOverrideFile ( ) throws java.lang.Exception { libcore.util.ZoneInfoDB.TzData data = new libcore.util.ZoneInfoDB.TzData ( libcore.util.ZoneInfoDBTest.makeCorruptFile ( ) , libcore.util.ZoneInfoDBTest.TZDATA_IN_DATA , libcore.util.ZoneInfoDBTest.TZDATA_IN_ROOT ) ; assertEquals ( libcore.util.ZoneInfoDBTest.CURRENT_VERSION , data.getVersion ( ) ) ; assertEquals ( java.util.TimeZone.getAvailableIDs ( ) . length , data.getAvailableIDs ( ) . length ) ; }
Source:
public void test1 ( ) throws java.lang.Exception { check ( ( "<root>\n" + ( ( ( "[ <element/>\n" + " <second/>\n" ) + "]\n" ) + "</root>\n" ) ) , ( " <element/>\n" + " <second/>\n" ) , ( "<root>\n" + ( ( ( " <element/>\n" + " <second/>\n" ) + "\n" ) + "</root>\n" ) ) , com.android.ide.eclipse.adt.internal.editors.formatting.XmlFormatPreferences.defaults ( ) ) ; }

Target:
public void test1 ( ) throws java.lang.Exception { check ( ( "<root>\n" + ( ( ( "[ <element/>\n" + " <second/>\n" ) + "]\n" ) + "</root>\n" ) ) , ( " <element/>\n" + " <second/>\n" ) , ( "<root>\n" + ( ( ( " <element/>\n" + " <second/>\n" ) + "\n" ) + "</root>\n" ) ) , com.android.ide.common.xml.XmlFormatPreferences.defaults ( ) ) ; }
Source:
private com.android.jack.ir.ast.JExpression makeLocalRef ( com.android.jack.ir.sourceinfo.SourceInfo info , org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding b ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.ir.ast.JVariable variable = curMethod.getJVariable ( b ) ; assert variable != null ; if ( variable instanceof com.android.jack.ir.ast.JLocal ) { return new com.android.jack.ir.ast.JLocalRef ( info , ( ( com.android.jack.ir.ast.JLocal ) ( variable ) ) ) ; } else { return new com.android.jack.ir.ast.JParameterRef ( info , ( ( com.android.jack.ir.ast.JParameter ) ( variable ) ) ) ; } }

Target:
private com.android.jack.ir.ast.JExpression makeLocalRef ( com.android.jack.ir.sourceinfo.SourceInfo info , org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding b ) throws com.android.jack.ir.ast.JTypeLookupException { com.android.jack.ir.ast.JVariable variable = curMethod.getJVariable ( b ) ; assert variable != null ; return variable.makeRef ( info ) ; }
Source:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , "build/proguard/release" ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }

Target:
public void testLibProguard ( ) throws java.lang.Exception { java.io.File project = new java.io.File ( testDir , "libProguard" ) ; java.io.File fileOutput = new java.io.File ( project , ( ( "build/" + ( com.android.build.gradle.BasePlugin.FD_OUTPUTS ) ) + "/proguard/release" ) ) ; runGradleTasks ( sdkDir , ndkDir , BasePlugin.GRADLE_MIN_VERSION , project , "clean" , "build" ) ; com.android.build.gradle.ManualBuildTest.checkFile ( fileOutput , "mapping.txt" , new java.lang.String [ ] { "int proguardInt -> a" } ) ; }
Source:
public static com.android.dx.rop.code.RopMethod convert ( com.android.dx.cf.code.ConcreteMethod method , com.android.dx.rop.code.TranslationAdvice advice , com.android.dx.cf.iface.MethodList methods ) { try { com.android.dx.cf.code.Ropper r = new com.android.dx.cf.code.Ropper ( method , advice , methods ) ; r.doit ( ) ; return r.getRopMethod ( ) ; } catch ( com.android.dx.cf.code.SimException ex ) { ex.addContext ( ( "...while working on method " + ( method.getNat ( ) . toHuman ( ) ) ) ) ; throw ex ; } }

Target:
public static com.android.dx.rop.code.RopMethod convert ( com.android.dx.cf.code.ConcreteMethod method , com.android.dx.rop.code.TranslationAdvice advice , com.android.dx.cf.iface.MethodList methods , com.android.dx.dex.DexOptions dexOptions ) { try { com.android.dx.cf.code.Ropper r = new com.android.dx.cf.code.Ropper ( method , advice , methods , dexOptions ) ; r.doit ( ) ; return r.getRopMethod ( ) ; } catch ( com.android.dx.cf.code.SimException ex ) { ex.addContext ( ( "...while working on method " + ( method.getNat ( ) . toHuman ( ) ) ) ) ; throw ex ; } }
Source:
public com.android.sched.vfs.InputOutputVDir checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.direct.DirectDir ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }

Target:
public com.android.sched.vfs.InputOutputVDir checkString ( @ javax.annotation.Nonnull com.android.sched.util.codec.CodecContext context , @ javax.annotation.Nonnull final java.lang.String string ) throws com.android.sched.util.codec.ParsingException { try { return new com.android.sched.vfs.DirectDir ( new com.android.sched.util.file.Directory ( string , context.getRunnableHooks ( ) , existence , permissions , change ) ) ; } catch ( java.io.IOException e ) { throw new com.android.sched.util.codec.ParsingException ( e ) ; } }
Source:
final int startActivitiesInPackage ( int uid , java.lang.String callingPackage , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle options , int userId ) { userId = handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , com.android.server.am.ActivityManagerService.ALLOW_FULL_ONLY , "startActivityInPackage" , null ) ; int ret = mStackSupervisor.startActivities ( null , uid , callingPackage , intents , resolvedTypes , resultTo , options , userId ) ; return ret ; }

Target:
final int startActivitiesInPackage ( int uid , java.lang.String callingPackage , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo , android.os.Bundle bOptions , int userId ) { userId = mUserController.handleIncomingUser ( android.os.Binder.getCallingPid ( ) , android.os.Binder.getCallingUid ( ) , userId , false , com.android.server.am.ActivityManagerService.ALLOW_FULL_ONLY , "startActivityInPackage" , null ) ; int ret = mActivityStarter.startActivities ( null , uid , callingPackage , intents , resolvedTypes , resultTo , bOptions , userId ) ; return ret ; }
Source:
public void testEmptyStringException ( ) { try { new java.text.RuleBasedCollator ( "" ) ; fail ( ( "Constructor RuleBasedCollator(\"\") " + "should throw ParseException" ) ) ; } catch ( java.text.ParseException e ) { assertEquals ( "java.text.ParseException" , e.getClass ( ) . getName ( ) ) ; assertEquals ( 0 , e.getErrorOffset ( ) ) ; } }

Target:
public void testCompareNull ( ) throws java.lang.Exception { try { new java.text.RuleBasedCollator ( "< a" ) . compare ( null , null ) ; fail ( ) ; } catch ( java.lang.NullPointerException expected ) { } }
Source:
private void reportResumedActivityLocked ( com.android.server.am.HistoryRecord r ) { final int identHash = java.lang.System.identityHashCode ( r ) ; updateUsageStats ( r , true ) ; int i = mWatchers.beginBroadcast ( ) ; while ( i > 0 ) { i -- ; android.app.IActivityWatcher w = mWatchers.getBroadcastItem ( i ) ; if ( w != null ) { try { w.activityResuming ( identHash ) ; } catch ( android.os.RemoteException e ) { } } } mWatchers.finishBroadcast ( ) ; }

Target:
public final int startActivitiesInPackage ( int uid , android.content.Intent [ ] intents , java.lang.String [ ] resolvedTypes , android.os.IBinder resultTo ) { final int callingUid = android.os.Binder.getCallingUid ( ) ; if ( ( callingUid != 0 ) && ( callingUid != ( java.lang.Process.myUid ( ) ) ) ) { throw new java.lang.SecurityException ( "startActivityInPackage only available to the system" ) ; } return mMainStack.startActivities ( null , uid , intents , resolvedTypes , resultTo ) ; }
Source:
public void loadComponentsInApMode ( ) throws java.lang.Exception { when ( mWifiNative.startHal ( anyBoolean ( ) ) ) . thenReturn ( true ) ; mWsm.setHostApRunning ( new android.net.wifi.WifiConfiguration ( ) , true ) ; mLooper.dispatchAll ( ) ; org.junit.Assert.assertEquals ( "SoftApState" , getCurrentState ( ) . getName ( ) ) ; verify ( mWifiNative ) . startHal ( eq ( false ) ) ; verify ( mSoftApManager ) . start ( ) ; }

Target:
public void canRemoveNetworkConfigInClientMode ( ) throws java.lang.Exception { boolean result ; when ( mWifiConfigManager.removeNetwork ( eq ( 0 ) , anyInt ( ) ) ) . thenReturn ( true ) ; addNetworkAndVerifySuccess ( ) ; mLooper.startAutoDispatch ( ) ; result = mWsm.syncRemoveNetwork ( mWsmAsyncChannel , 0 ) ; mLooper.stopAutoDispatch ( ) ; org.junit.Assert.assertTrue ( result ) ; }
Source:
public void onProgressChanged ( com.android.browser.Tab tab ) { mCrashRecoveryHandler.backupState ( ) ; int newProgress = tab.getLoadProgress ( ) ; if ( newProgress == 100 ) { android.webkit.CookieSyncManager.getInstance ( ) . sync ( ) ; if ( tab.inPageLoad ( ) ) { updateInLoadMenuItems ( mCachedMenu , tab ) ; } } else { if ( ! ( tab.inPageLoad ( ) ) ) { updateInLoadMenuItems ( mCachedMenu , tab ) ; } } mUi.onProgressChanged ( tab ) ; }

Target:
public void onPageFinished ( com.android.browser.Tab tab ) { mCrashRecoveryHandler.backupState ( ) ; mUi.onTabDataChanged ( tab ) ; if ( ( mActivityPaused ) && ( pauseWebViewTimers ( tab ) ) ) { releaseWakeLock ( ) ; } if ( false ) { com.android.browser.Performance.onPageFinished ( tab.getUrl ( ) ) ; } com.android.browser.Performance.tracePageFinished ( ) ; }
Source:
public void onClick ( android.view.View view ) { com.android.apps.tag.record.RecordUtils.ClickInfo info = ( ( com.android.apps.tag.record.RecordUtils.ClickInfo ) ( view.getTag ( ) ) ) ; try { info.activity.startActivity ( info.intent ) ; info.activity.finish ( ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Log.e ( com.android.apps.tag.record.UriRecord.TAG , ( "Failed to launch activity for intent " + ( info.intent ) ) , e ) ; } }

Target:
public void onClick ( android.view.View view ) { com.android.apps.tag.record.RecordUtils.ClickInfo info = ( ( com.android.apps.tag.record.RecordUtils.ClickInfo ) ( view.getTag ( ) ) ) ; if ( requestPermissionIfNeeded ( info.activity , info.intent ) ) { return ; } try { info.activity.startActivity ( info.intent ) ; info.activity.finish ( ) ; } catch ( android.content.ActivityNotFoundException e ) { android.util.Log.e ( com.android.apps.tag.record.UriRecord.TAG , ( "Failed to launch activity for intent " + ( info.intent ) ) , e ) ; } }
Source:
static void deadSequence ( ) { int dead = 0 ; for ( int i = 0 ; i < ( Main.a.length ) ; i ++ ) { Main.a [ i ] = 3 ; dead += i ; } }

Target:
static void deadCycleWithException ( int k ) { int dead = 0 ; for ( int i = 0 ; i < ( Main.a.length ) ; i ++ ) { Main.a [ i ] = ( Main.novec [ ( 2 * i ) ] ) + 4 ; dead += Main.a [ k ] ; } }
Source:
public void handleMessage ( int messageType , java.lang.Object message ) throws com.google.android.exoplayer.ExoPlaybackException { if ( messageType == ( MSG_SET_PLAYBACK_PARAMS ) ) { try { super . handleMessage ( messageType , message ) ; } catch ( java.lang.IllegalArgumentException e ) { if ( com.android.tv.tuner.exoplayer.ac3.Ac3TrackRenderer.isAudioTrackSetPlaybackParamsError ( e ) ) { notifyAudioTrackSetPlaybackParamsError ( e ) ; } } return ; } super . handleMessage ( messageType , message ) ; }

Target:
public void handleMessage ( int messageType , java.lang.Object message ) throws com.google.android.exoplayer.ExoPlaybackException { if ( messageType == ( MSG_SET_PLAYBACK_PARAMS ) ) { try { super . handleMessage ( messageType , message ) ; } catch ( java.lang.IllegalArgumentException e ) { if ( com.android.tv.tuner.exoplayer.ac3.Ac3MediaCodecTrackRenderer.isAudioTrackSetPlaybackParamsError ( e ) ) { notifyAudioTrackSetPlaybackParamsError ( e ) ; } } return ; } super . handleMessage ( messageType , message ) ; }
Source:
public void onShowCustomView ( android.view.View view , android.webkit.WebChromeClient.CustomViewCallback cb ) { org.chromium.base.TraceEvent.begin ( ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onShowCustomView" ) ; mWebChromeClient.onShowCustomView ( view , cb ) ; } org.chromium.base.TraceEvent.end ( ) ; }

Target:
public void onShowCustomView ( android.view.View view , android.webkit.WebChromeClient.CustomViewCallback cb ) { try { org.chromium.base.TraceEvent.begin ( "WebViewContentsClientAdapter.onShowCustomView" ) ; if ( ( mWebChromeClient ) != null ) { if ( com.android.webview.chromium.WebViewContentsClientAdapter.TRACE ) android.util.Log.d ( com.android.webview.chromium.WebViewContentsClientAdapter.TAG , "onShowCustomView" ) ; mWebChromeClient.onShowCustomView ( view , cb ) ; } } finally { org.chromium.base.TraceEvent.end ( "WebViewContentsClientAdapter.onShowCustomView" ) ; } }
Source:
public void copy1DRangeFromUnchecked ( int off , int count , byte [ ] d ) { android.os.Trace.traceBegin ( RenderScript.TRACE_TAG , "copy1DRangeFromUnchecked" ) ; int dataSize = ( mType.mElement.getBytesSize ( ) ) * count ; data1DChecks ( off , count , d.length , dataSize ) ; mRS.nAllocationData1D ( getIDSafe ( ) , off , mSelectedLOD , count , d , dataSize , Element.DataType.SIGNED_8 ) ; android.os.Trace.traceEnd ( RenderScript.TRACE_TAG ) ; }

Target:
public void copy1DRangeFrom ( int off , int count , int [ ] d ) { validateIsInt32 ( ) ; copy1DRangeFromUnchecked ( off , count , d , Element.DataType.SIGNED_32 , d.length ) ; }
Source:
public java.lang.String [ ] getHttpAuthUsernamePassword ( final java.lang.String host , final java.lang.String realm ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { java.lang.String [ ] ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.String [ ] > ( ) { @ java.lang.Override public java.lang.String [ ] call ( ) { return getHttpAuthUsernamePassword ( host , realm ) ; } } ) ; return ret ; } return mAwContents.getHttpAuthUsernamePassword ( host , realm ) ; }

Target:
public android.net.http.SslCertificate getCertificate ( ) { mFactory.startYourEngines ( true ) ; if ( checkNeedsPost ( ) ) { android.net.http.SslCertificate ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < android.net.http.SslCertificate > ( ) { @ java.lang.Override public android.net.http.SslCertificate call ( ) { return getCertificate ( ) ; } } ) ; return ret ; } return mAwContents.getCertificate ( ) ; }
Source:
public void performReceive ( android.content.Intent intent , int resultCode , java.lang.String data , android.os.Bundle extras , boolean ordered , boolean sticky ) throws android.os.RemoteException { synchronized ( this ) { mDidUpdate = true ; } systemReady ( goingCallback ) ; }

Target:
public void onReceive ( android.content.Context context , android.content.Intent intent ) { java.lang.String [ ] pkgs = intent.getStringArrayExtra ( Intent.EXTRA_PACKAGES ) ; if ( pkgs != null ) { for ( java.lang.String pkg : pkgs ) { if ( forceStopPackageLocked ( pkg , ( - 1 ) , false , false , false ) ) { setResultCode ( Activity.RESULT_OK ) ; return ; } } } }
Source:
public static java.lang.String getIndent ( org.eclipse.wst.sse.core.internal.provisional.text.IStructuredDocument document , org.w3c.dom.Node xmlNode ) { if ( xmlNode instanceof org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( xmlNode ) ) ; int startOffset = region.getStartOffset ( ) ; return com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.getIndentAtOffset ( document , startOffset ) ; } return "" ; }

Target:
public static java.lang.String getIndent ( org.eclipse.jface.text.IDocument document , org.w3c.dom.Node xmlNode ) { if ( xmlNode instanceof org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) { org.eclipse.wst.sse.core.internal.provisional.IndexedRegion region = ( ( org.eclipse.wst.sse.core.internal.provisional.IndexedRegion ) ( xmlNode ) ) ; int startOffset = region.getStartOffset ( ) ; return com.android.ide.eclipse.adt.internal.editors.AndroidXmlEditor.getIndentAtOffset ( document , startOffset ) ; } return "" ; }
Source:
public final java.lang.String getClassName ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Snapshot snapshot ) { com.android.tools.perflib.heap.ClassObj theClass ; if ( ( mType ) == ( RootType.SYSTEM_CLASS ) ) { theClass = snapshot.findClass ( mId ) ; } else { theClass = snapshot.findReference ( mId ) . getClassObj ( ) ; } if ( theClass == null ) { return com.android.tools.perflib.heap.RootObj.UNDEFINED_CLASS_NAME ; } return theClass.mClassName ; }

Target:
public final java.lang.String getClassName ( @ com.android.annotations.NonNull com.android.tools.perflib.heap.Snapshot snapshot ) { com.android.tools.perflib.heap.ClassObj theClass ; if ( ( mType ) == ( RootType.SYSTEM_CLASS ) ) { theClass = snapshot.findClass ( mId ) ; } else { theClass = snapshot.findInstance ( mId ) . getClassObj ( ) ; } if ( theClass == null ) { return com.android.tools.perflib.heap.RootObj.UNDEFINED_CLASS_NAME ; } return theClass.mClassName ; }
Source:
public boolean onGenericMotionEvent ( final android.view.MotionEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onGenericMotionEvent ( event ) ; } } ) ; return ret ; } return mAwContents.onGenericMotionEvent ( event ) ; }

Target:
public boolean onHoverEvent ( final android.view.MotionEvent event ) { mFactory.startYourEngines ( false ) ; if ( checkNeedsPost ( ) ) { boolean ret = runOnUiThreadBlocking ( new java.util.concurrent.Callable < java.lang.Boolean > ( ) { @ java.lang.Override public java.lang.Boolean call ( ) { return onHoverEvent ( event ) ; } } ) ; return ret ; } return mAwContents.onHoverEvent ( event ) ; }
Source:
public int beginConfigure ( ) { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "beginConfigure called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot begin configure, device has been closed." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.ENODEV ; } synchronized ( mConfigureLock ) { if ( mConfiguring ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot begin configure, configuration change already in progress." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.INVALID_OPERATION ; } mConfiguring = true ; } return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }

Target:
public int beginConfigure ( ) { if ( android.hardware.camera2.legacy.CameraDeviceUserShim.DEBUG ) { android.util.Log.d ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "beginConfigure called." ) ; } if ( mLegacyDevice.isClosed ( ) ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot begin configure, device has been closed." ) ; return - ( android.system.OsConstants.ENODEV ) ; } synchronized ( mConfigureLock ) { if ( mConfiguring ) { android.util.Log.e ( android.hardware.camera2.legacy.CameraDeviceUserShim.TAG , "Cannot begin configure, configuration change already in progress." ) ; return android.hardware.camera2.utils.CameraBinderDecorator.INVALID_OPERATION ; } mConfiguring = true ; } return android.hardware.camera2.utils.CameraBinderDecorator.NO_ERROR ; }
Source:
public com.google.common.collect.Multiset.Entry < E > lastEntry ( ) { return delegate ( ) . lastEntry ( ) ; }

Target:
java.util.Set < com.google.common.collect.Multiset.Entry < E > > createEntrySet ( ) { return com.google.common.collect.Sets.filter ( unfiltered.entrySet ( ) , new com.google.common.base.Predicate < com.google.common.collect.Multiset.Entry < E > > ( ) { @ java.lang.Override public boolean apply ( com.google.common.collect.Multiset.Entry < E > entry ) { return predicate.apply ( entry.getElement ( ) ) ; } } ) ; }
Source:
public void close ( ) { android.util.Log.d ( android.net.IpSecTransform.TAG , ( "Removing Transform with Id " + ( mResourceId ) ) ) ; if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { mCloseGuard.close ( ) ; return ; } try { android.net.IIpSecService svc = getIpSecService ( ) ; svc.deleteTransportModeTransform ( mResourceId ) ; stopKeepalive ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowAsRuntimeException ( ) ; } finally { mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; mCloseGuard.close ( ) ; } }

Target:
public void close ( ) { android.util.Log.d ( android.net.IpSecTransform.TAG , ( "Removing Transform with Id " + ( mResourceId ) ) ) ; if ( ( mResourceId ) == ( android.net.IpSecManager.INVALID_RESOURCE_ID ) ) { mCloseGuard.close ( ) ; return ; } try { android.net.IIpSecService svc = getIpSecService ( ) ; svc.deleteTransform ( mResourceId ) ; stopKeepalive ( ) ; } catch ( android.os.RemoteException e ) { throw e.rethrowAsRuntimeException ( ) ; } finally { mResourceId = android.net.IpSecManager.INVALID_RESOURCE_ID ; mCloseGuard.close ( ) ; } }
Source:
private boolean hasFormattingPatternForNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { int countryCallingCode = number.getCountryCode ( ) ; java.lang.String phoneNumberRegion = getRegionCodeForCountryCode ( countryCallingCode ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCallingCode , phoneNumberRegion ) ; if ( metadata == null ) { return false ; } java.lang.String nationalNumber = getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.nano.Phonemetadata.NumberFormat formatRule = chooseFormattingPatternForNumber ( metadata.numberFormat , nationalNumber ) ; return formatRule != null ; }

Target:
private boolean hasFormattingPatternForNumber ( com.google.i18n.phonenumbers.Phonenumber.PhoneNumber number ) { int countryCallingCode = number.getCountryCode ( ) ; java.lang.String phoneNumberRegion = getRegionCodeForCountryCode ( countryCallingCode ) ; com.google.i18n.phonenumbers.Phonemetadata.PhoneMetadata metadata = getMetadataForRegionOrCallingCode ( countryCallingCode , phoneNumberRegion ) ; if ( metadata == null ) { return false ; } java.lang.String nationalNumber = getNationalSignificantNumber ( number ) ; com.google.i18n.phonenumbers.Phonemetadata.NumberFormat formatRule = chooseFormattingPatternForNumber ( metadata.numberFormats ( ) , nationalNumber ) ; return formatRule != null ; }
Source:
protected boolean stop ( ) { try { unregisterReceiver ( mPbapBroadcastReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to unregister pbapclient receiver" , e ) ; } mPbapClientStateMachine.disconnect ( null ) ; return true ; }

Target:
protected boolean stop ( ) { try { unregisterReceiver ( mPbapBroadcastReceiver ) ; } catch ( java.lang.Exception e ) { android.util.Log.w ( com.android.bluetooth.pbapclient.PbapClientService.TAG , "Unable to unregister pbapclient receiver" , e ) ; } if ( ( mPbapClientStateMachine ) != null ) { mPbapClientStateMachine.doQuit ( ) ; } return true ; }
Source:
public void onSdkLoaded ( ) { com.android.sdklib.IAndroidTarget oldTarget = getRenderingTarget ( ) ; preRenderingTargetChangeCleanUp ( oldTarget ) ; computeSdkVersion ( ) ; com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigChooser.onSdkLoaded ( target ) ; changed ( ( ( CHANGED_FOLDER ) | ( CHANGED_RENDER_TARGET ) ) ) ; } } }

Target:
public void onSdkLoaded ( ) { com.android.sdklib.IAndroidTarget oldTarget = getRenderingTarget ( ) ; preRenderingTargetChangeCleanUp ( oldTarget ) ; computeSdkVersion ( ) ; com.android.ide.eclipse.adt.internal.sdk.Sdk currentSdk = com.android.ide.eclipse.adt.internal.sdk.Sdk.getCurrent ( ) ; if ( currentSdk != null ) { com.android.sdklib.IAndroidTarget target = currentSdk.getTarget ( mEditedFile.getProject ( ) ) ; if ( target != null ) { mConfigChooser.onSdkLoaded ( target ) ; changed ( ( ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration.CFG_FOLDER ) | ( com.android.ide.eclipse.adt.internal.editors.layout.configuration.Configuration.CFG_TARGET ) ) ) ; } } }
Source:
private void finishInitializing ( ) { if ( ( mCurrentCall ) == null ) { java.lang.String number = getAddress ( ) . getSchemeSpecificPart ( ) ; android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "Dialing " + number ) ) ; mHeadsetProfile.dial ( mDevice , number ) ; setDialing ( ) ; } else { handleCallChanged ( mCurrentCall ) ; } }

Target:
public synchronized void onDisconnect ( ) { android.util.Log.d ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , ( "onDisconnect " + ( mCurrentCall ) ) ) ; if ( ( mHeadsetProfile ) != null ) { mHeadsetProfile.terminateCall ( mDevice , mCurrentCall ) ; mLocalDisconnect = true ; } else if ( ( mCurrentCall ) == null ) { android.util.Log.w ( com.android.bluetooth.hfpclient.connserv.HfpClientConnection.TAG , "Call disconnected but call handle not received." ) ; } }